From 8b4cdf6221dabb449da5d7669e850629f64818cc Mon Sep 17 00:00:00 2001 From: John Crisp Date: Tue, 20 May 2025 21:03:30 +0200 Subject: [PATCH] Wogroup and other mods --- .../AdminLTE/templates/directory.html.ep | 25 ++- .../AdminLTE/templates/workgroup.html.ep | 143 +++++++++++------- 2 files changed, 99 insertions(+), 69 deletions(-) diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/directory.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/directory.html.ep index cce90c6..842e337 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/directory.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/directory.html.ep @@ -56,9 +56,8 @@
- - -
+ +
@@ -68,9 +67,8 @@
- - -
+ +
@@ -80,7 +78,8 @@
- + +

@@ -90,7 +89,8 @@
- + +

@@ -100,7 +100,8 @@
- + +


@@ -113,14 +114,12 @@
<%= l 'dir_EXISTING' %>
-
- <%= select_field 'existing'=> [[ (l 'dir_LEAVE') => 'leave'], [ (l 'dir_UPDATE') => 'update' ]], class => "form-select" %> + <%= select_field 'existing'=> [[ (l 'dir_LEAVE') => 'leave'], [ (l 'dir_UPDATE') => 'update' ]], class => "form-select" %>
- -
+
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/workgroup.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/workgroup.html.ep index 8bc2697..acf19ba 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/workgroup.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/workgroup.html.ep @@ -5,67 +5,98 @@
%if (config->{debug} == 1) { -

- (DBG)route: <%= $c->current_route %>
- (DBG)pdc: <%= $wkg_datas->{ServerRole}%>
- (DBG)roam: <%= $wkg_datas->{RoamingProfiles}%>
-

+
+ (DBG)route: <%= $c->current_route %>
+ (DBG)pdc: <%= $wkg_datas->{ServerRole}%>
+ (DBG)roam: <%= $wkg_datas->{RoamingProfiles}%>
+
%} - +

<%= $title %>


<%= $modul %> - <% my $btn = l('SAVE'); - %> + <% my $btn = l('SAVE'); %> - %= form_for 'workgroup' => (method => 'POST') => begin -

- %=l 'wkg_DESC_WORKGROUP', class => "" -

- - %=l 'wkg_LABEL_WORKGROUP', class => "" - - - %= text_field 'Workgroup' => $wkg_datas->{Workgroup}, class => "" , pattern=>".{1,15}", title=>"Limited to 15 characters by the NETBIOS" - -

-

- %=l 'wkg_DESC_SERVERNAME', class => "" -

- - %=l 'wkg_LABEL_SERVERNAME', class => "" - - - %= text_field 'ServerName' => $wkg_datas->{ServerName}, class => "" - -

-

- %= $c->render_to_string(inline => l 'wkg_DESC_PDC') -
- - %=l 'wkg_LABEL_PDC', class => "" - - - % param 'ServerRole' => $wkg_datas->{ServerRole} unless param 'ServerRole'; - %= select_field 'ServerRole' => [[ (l 'YES') => 'PDC'], [ (l 'NO') => 'WS']], class => "" - -

-

- %= $c->render_to_string(inline => l 'wkg_DESC_ROAM') -
- - %=l 'wkg_LABEL_ROAM', class => "" - - - % param 'RoamingProfiles' => $wkg_datas->{RoamingProfiles} unless param 'RoamingProfiles'; - %= select_field 'RoamingProfiles' => [[ (l 'YES') => 'yes'], [ (l 'NO') => 'no']], class => "" - -

-

-
- %= submit_button "$btn", class => "" -

- % end +
+
+ <%= l 'wkg_DESC_WORKGROUP' %> +
+ +
+
+
+ +
+
+ +
+
+ + Limited to 15 characters by the NETBIOS + +
+
+ +
+ +
+ <%= l 'wkg_DESC_SERVERNAME' %> +
+ +
+
+
+ +
+
+ +
+
+ +
+ +
+ %= $c->render_to_string(inline => l 'wkg_DESC_PDC') +
+ +
+ +
+
+ <%= l 'wkg_LABEL_PDC' %> +
+
+ % param 'ServerRole' => $wkg_datas->{ServerRole} unless param 'ServerRole'; + <%= select_field 'ServerRole' => [[ (l 'YES') => 'PDC'], [ (l 'NO') => 'WS']], class => "form-select" %> +
+
+ +
+ +
+ <%= $c->render_to_string(inline => l 'wkg_DESC_ROAM') %> +
+ +
+ +
+
+ <%= l 'wkg_LABEL_ROAM' %> +
+
+ % param 'RoamingProfiles' => $wkg_datas->{RoamingProfiles} unless param 'RoamingProfiles'; + <%= select_field 'RoamingProfiles' => [[ (l 'YES') => 'yes'], [ (l 'NO') => 'no']], class => "form-select" %> +
+
+ +
+
+ +
+
+ +
+ %end \ No newline at end of file