From 307ee9dea443ee5f0092d3ac42a5c6b3779ada91 Mon Sep 17 00:00:00 2001 From: John Crisp Date: Wed, 4 Jun 2025 18:27:40 +0200 Subject: [PATCH] Proxy panel done --- .../AdminLTE/templates/emailsettings.html.ep | 2 +- .../themes/AdminLTE/templates/proxy.html.ep | 78 +++++++++++-------- smeserver-manager-AdminLTE.spec | 5 +- 3 files changed, 52 insertions(+), 33 deletions(-) diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/emailsettings.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/emailsettings.html.ep index 7d43887..1660dc4 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/emailsettings.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/emailsettings.html.ep @@ -24,8 +24,8 @@ %}

<%= $title%>

-
+
diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/proxy.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/proxy.html.ep index 6e8da37..7a1df56 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/proxy.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/proxy.html.ep @@ -5,56 +5,72 @@
% if (config->{debug} == 1) { -
- (DBG)route: <%= $c->current_route %>
- (DBG)ht stat: <%= $prx_datas->{http_proxy_status}%>
- (DBG)sm stat: <%=$prx_datas->{smtp_proxy_status} %> -
+
+            <%= dumper $c->current_route %>
+            <%= dumper $prx_datas->{http_proxy_status} %>
+            <%= dumper $prx_datas->{smtp_proxy_status} %>
+        
% } + +

<%= $title %>

+
+ <%= $modul %> - <% my $btn = l('SAVE'); %> - + +
+
-
- <%=l 'prx_HTTP_PROXY_STATUS_DESCRIPTION' %> + <%=l 'prx_HTTP_PROXY_STATUS_DESCRIPTION' %> +
-

+
-
- <%=l 'prx_HTTP_PROXY_STATUS_LABEL' %> -
- -
+
+
+ <%=l 'prx_HTTP_PROXY_STATUS_LABEL' %> +
+
% param 'http_proxy_status' => $prx_datas->{http_proxy_status} unless param 'http_proxy_status'; - <%= select_field 'http_proxy_status' => [[ (l 'ENABLED') => 'enabled'], [ (l 'DISABLED') => 'disabled']] %> -
+ <%= select_field 'http_proxy_status' => [[ (l 'ENABLED') => 'enabled'], [ (l 'DISABLED') => 'disabled']], class => "form-select" %> +
+
+ + % if ( $prx_datas->{smtp_proxy_status} ) { + +
+ +
+ <%=l 'prx_SMTP_PROXY_STATUS_DESCRIPTION' %>
- % if ( $prx_datas->{smtp_proxy_status} ) { -
- <%=l 'prx_SMTP_PROXY_STATUS_DESCRIPTION' %> -

-
- <%=l 'prx_SMTP_PROXY_STATUS_LABEL' %> -
-
- % param 'smtp_proxy_status' => $prx_datas->{smtp_proxy_status} unless param 'smtp_proxy_status'; - <%= select_field 'smtp_proxy_status' => [[ (l 'ENABLED') => 'transparent'], [ (l 'DISABLED') => 'disabled'], [ (l 'prx_BLOCKED') => 'blocked']], default => $prx_datas->{smtp_proxy_status} %> -

-
- % } +
- + <%=l 'prx_SMTP_PROXY_STATUS_LABEL' %> +
+
+ % param 'smtp_proxy_status' => $prx_datas->{smtp_proxy_status} unless param 'smtp_proxy_status'; + <%= select_field 'smtp_proxy_status' => [[ (l 'ENABLED') => 'transparent'], [ (l 'DISABLED') => 'disabled'], [ (l 'prx_BLOCKED') => 'blocked']], default => $prx_datas->{smtp_proxy_status} , class => "form-select" %>
+ % } + +
+ + % my $btn = l('SAVE'); + +
+
+ +
+
diff --git a/smeserver-manager-AdminLTE.spec b/smeserver-manager-AdminLTE.spec index 9cb5bd8..c5e06e5 100644 --- a/smeserver-manager-AdminLTE.spec +++ b/smeserver-manager-AdminLTE.spec @@ -1,6 +1,6 @@ %define name smeserver-manager-AdminLTE %define version 11.0.0 -%define release 28 +%define release 29 Summary: AdminLTE is an html framework for admin consoles - this rpm adds it to smeserver manager2 Name: %{name} Version: %{version} @@ -26,6 +26,9 @@ AdminLTE is an html framework for admin consoles wget https://github.com/ColorlibHQ/AdminLTE/archive/master.zip %changelog +* Wed Jun 04 2025 John Crisp 11.0.0-29.sme +- Proxy panel done + * Wed Jun 04 2025 John Crisp 11.0.0-28.sme - Reboot panel done