+
+ % if (config->{debug} == 1) {
+
+ %= dumper $usp_data
+
+ % }
+ % my $btn = l('usp_APPLY');
+ %= form_for "userpanelsu" => (method => 'POST') => begin
+ %# param 'trt' => $usp_data->{trt} unless param 'trt';
+ %= hidden_field 'trt' => $usp_data->{trt}
+ %= hidden_field 'accounts_key' => $c->stash('accounts_key');
+ %# Inputs etc in here.
+
+
<%=l('usp_Allocate_panels_to_a_user')%>
+
+
<%=l('usp_Select_panels_for_user')%>
+
+
+
+
+ <%=l('Panel')%> |
+ <%=l('usp_Description')%> |
+ <%=l('usp_Select')%> |
+
+
+
+ % my $control_data = $c->stash('panels');
+ % foreach my $row (@$control_data) {
+
+ <%=$c->render_to_string(inline=>$row->{'Panel'})%> |
+ <%=$c->render_to_string(inline=>$row->{'Description'})%> |
+ <%=$c->render_to_string(inline=>$row->{'Select'})%> |
+
+ %}
+
+
+
+
+
+ %= submit_button l('usp_Save'), class => 'action subm'
+
+
+ %# Probably finally by a submit.
+ %end
+
\ No newline at end of file
diff --git a/root/usr/share/smanager/themes/default/templates/partials/_usp_USERTABLE.html.ep b/root/usr/share/smanager/themes/default/templates/partials/_usp_USERTABLE.html.ep
new file mode 100644
index 0000000..a38f5fe
--- /dev/null
+++ b/root/usr/share/smanager/themes/default/templates/partials/_usp_USERTABLE.html.ep
@@ -0,0 +1,52 @@
+%#
+%# Generated by SM2Gen version:0.9(20Jan2025) Chameleon version:4.5.4 On Python:3.12.3 at 2025-04-23 10:04:56
+%#
+
+
+ % if (config->{debug} == 1) {
+
+ %= dumper $usp_data
+
+ % }
+ % my $btn = l('usp_APPLY');
+ %= form_for "userpanelsu" => (method => 'POST') => begin
+ % param 'trt' => $usp_data->{trt} unless param 'trt';
+ %= hidden_field 'trt' => $usp_data->{trt}
+ %# Inputs etc in here.
+
+
<%=l('usp_Allocate_panels_to_a_user')%>
+
+
<%=l('usp_Choose_a_user')%>
+
+
+ %=l('usp_You_can_modify_individual_users')
+
+
+
+
+
+ <%=l('usp_Account')%> |
+ <%=l('usp_Name/Description')%> |
+ <%=l('usp_Modify')%> |
+
+
+
+ % my $control_data = $c->stash('users');
+ % foreach my $row (@$control_data) {
+
+ <%=$c->render_to_string(inline=>$row->{'Account'})%> |
+ <%=$c->render_to_string(inline=>$row->{'Description'})%> |
+ <%=$c->render_to_string(inline=>$row->{'Modify'})%> |
+
+ %}
+
+
+
+
+ %# Probably finally by a submit.
+ %end
+
\ No newline at end of file
diff --git a/root/usr/share/smanager/themes/default/templates/userpanels.html.ep b/root/usr/share/smanager/themes/default/templates/userpanels.html.ep
new file mode 100644
index 0000000..029a68c
--- /dev/null
+++ b/root/usr/share/smanager/themes/default/templates/userpanels.html.ep
@@ -0,0 +1,62 @@
+%#
+%# Generated by SM2Gen version:0.9(20Jan2025) Chameleon version:4.5.4 On Python:3.12.3 at 2025-04-23 10:18:18
+%#
+% layout 'default', title => "Sme server 2 - User panel access ", share_dir => './';
+%# css specific to this panel:
+% content_for 'module' => begin
+%= stylesheet '/css/userpanels.css'
+%= javascript '/js/userpanels.js'
+
+
+ % if (config->{debug} == 1) {
+
+ %= dumper $c->current_route
+ %= dumper $usp_data->{trt}
+ %= dumper stash('users')
+ %= dumper stash 'panels'
+
+ % }
+
+
<%=$title%>
+
+ % if ( stash('modul')) {
+ %= $c->render_to_string(inline => stash('modul') );
+ % }
+
+ %if ($c->stash('first')) {
+
+ %=$c->render_to_string(inline =>$c->l($c->stash('first')))
+
+
+ %} elsif ($c->stash('success')) {
+
+
+ %= $c->l($c->stash('success'));
+
+
+
+
+ %} elsif ($c->stash('error')) {
+
+
+ %= $c->l($c->stash('error'));
+
+
+
+ %}
+
+ %#Routing to partials according to trt parameter.
+ %#This ought to be cascading if/then/elsif, but is easier to just stack the if/then's rather like a case statement'
+
+ % if ($usp_data->{trt} eq "USERTABLE") {
+ %= include 'partials/_usp_USERTABLE'
+ %}
+
+ % if ($usp_data->{trt} eq "PANELTABLE") {
+ %= include 'partials/_usp_PANELTABLE'
+ %}
+
+
+
+
+%end
\ No newline at end of file
diff --git a/smeserver-userpanels.spec b/smeserver-userpanels.spec
index a75ff2b..119bff6 100644
--- a/smeserver-userpanels.spec
+++ b/smeserver-userpanels.spec
@@ -5,8 +5,8 @@
Summary: Panels to let users to change server settings.
%define name smeserver-userpanels
Name: %{name}
-%define version 1.3
-%define release 5
+%define version 11.0.0
+%define release 1
Version: %{version}
Release: %{release}%{?dist}
License: GNU GPL version 2
@@ -26,6 +26,9 @@ Change password,Forward mail, Backup users home directory,
Delegate creation of users with restrictions.
%changelog
+* Wed Apr 23 2025 Brian Read