diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/layouts/AdminLTE.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/layouts/AdminLTE.html.ep index 54951a4..3bd1ef1 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/layouts/AdminLTE.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/layouts/AdminLTE.html.ep @@ -171,6 +171,7 @@ %= include 'partials/_panel_card_top' %= include 'partials/_panel_card_header' % } + %= content 'module' % if ($c->current_route ne 'login') { diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_list.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_list.html.ep index fde2a31..7ec5beb 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_list.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_usr_list.html.ep @@ -5,10 +5,10 @@ %= form_for '/useraccounts' => (method => 'POST') => begin -
@@ -16,6 +16,8 @@
-
- - %=l 'usr_ACCOUNT_NAME' - - - % if ( $usr_datas->{trt} eq 'ADD' ) { - % param 'user' => $usr_datas->{user} unless param 'user'; - %= text_field 'user', class => "" - % } else { - % $btn = l('SAVE'); - %= $usr_datas->{user}, class => "" - % } - -
- -- - %=l 'usr_FIRSTNAME' - - - % param 'FirstName' => $usr_datas->{firstname} unless param 'FirstName'; - %= text_field 'FirstName', class => "" - -
-- - %=l 'usr_LASTNAME' - - - % param 'LastName' => $usr_datas->{lastname} unless param 'LastName'; - %= text_field 'LastName', class => "" - -
- -- - %=l 'usr_DEPARTMENT' - - % param 'Dept' => $usr_datas->{dept} unless param 'Dept'; - %= text_field 'Dept', class => "" - -
-- - %=l 'usr_COMPANY' - - - % param 'Company' => $usr_datas->{company} unless param 'Company'; - %= text_field 'Company', class => "" - -
-- - %=l 'usr_STREET_ADDRESS' - - - % param 'Street' => $usr_datas->{street} unless param 'Street'; - %= text_field 'Street', class => "" - -
-- - %=l 'usr_CITY' - - - % param 'City' => $usr_datas->{city} unless param 'City'; - %= text_field 'City', class => "" - -
-- - %=l 'usr_PHONE_NUMBER' - - - % param 'Phone' => $usr_datas->{phone} unless param 'Phone'; - %= text_field 'Phone', class => "" - -
-- - %=l 'usr_EMAIL_DELIVERY' - - - % param 'EmailForward' => $usr_datas->{emailforward} unless param 'EmailForward'; - %= select_field 'EmailForward' => $c->emailForward_list(), class => "" - -
-- - %=l 'usr_FORWARDING_ADDRESS' - - - % param 'ForwardAddress' => $usr_datas->{forwardaddress} unless param 'ForwardAddress'; - %= text_field 'ForwardAddress', class => "" - -
- -- - %=l 'usr_VPN_CLIENT_ACCESS' - - - % param 'VPNClientAccess' => $usr_datas->{vpnclientaccess} unless param 'VPNClientAccess'; - %= select_field 'VPNClientAccess' => [[ (l 'NO') => 'no'], [ (l 'YES') => 'yes']], class => "" - -
- - % if ( $usr_datas->{trt} eq 'UPD' and $c->ipsec_for_acct eq 'OK' ) { - % my $btn2 = $c->l('DOWNLOAD'); - %= form_for '/useraccountso' => (method => 'POST') => begin -- - %=l 'usr_LABEL_IPSECRW_DOWNLOAD' - - - %= submit_button $btn2, class => "" - -
- %= hidden_field 'trt' => 'CRT' - %= hidden_field 'user' => $usr_datas->{user} - %end - % } - - % my @groups = @{$c->get_groups()}; - % if ( @groups ) { -
-
- %=l 'usr_GROUP_MEMBERSHIPS'
-
-
-
-
-
-
-
-
-
-
-
- % foreach my $g ( @groups) {
- % my $user = $usr_datas->{user};
- % my $groupname = $g->key();
- % my $description = $g->prop('Description');
- % my $checked = '';
- % if ( $user and $c->is_user_in_group($user, $groupname) ) {
- % $checked = 'checked';
- % }
-
- %=l 'usr_MEMBER'
-
- %=l 'GROUP'
-
- %=l 'DESCRIPTION'
-
-
-
-
- % }
-
-
- % if ( $checked eq 'checked' ) {
-
-
- %} else {
- %= check_box 'groupMemberships' => $groupname
- %}
-
-
- %= t td => (class => "") => $groupname
- %= t td => (class => "") => "$description"
-
-
- %= submit_button $btn, class => ""
-