reboot panel done

This commit is contained in:
John Crisp 2025-06-04 18:06:02 +02:00
parent cd2de47aaf
commit 05d0b91138
3 changed files with 38 additions and 26 deletions

View File

@ -6,8 +6,8 @@
% if (config->{debug} == 1) {
<pre>
<<%= dumper $c->current_route %>
<<%= dumper $mai_datas %>
<%= dumper $c->current_route %>
<%= dumper $mai_datas %>
</pre>
% }
@ -19,7 +19,7 @@
</div>
% }
<h1><%= $title %></h1>
<h1><%= $title %></h1>
<br>

View File

@ -4,37 +4,46 @@
<div class="card-body">
%if (config->{debug} == 1) {
<p>
(DBG)route: <%= $c->current_route %><br>
</p>
%}
% if (config->{debug} == 1) {
<pre>
<%= dumper $c->current_route %>
</pre>
% }
<h1><%= $title %></h1>
<h1><%= $title %></h1>
<br>
%= $modul
<%= $modul %>
<% my $btn = l('PERFORM'); %>
%= form_for 'reboot' => (method => 'POST') => begin
<form action="/smanager/reboot" method="POST">
<p>
%= $c->render_to_string(inline => $c->l('rbo_DESCRIPTION'))
<br><br>
<div class="col-md-6">
<%= $c->render_to_string(inline => $c->l('rbo_DESCRIPTION')) %>
</div>
<span class="">
%=l 'rbo_LABEL_REBOOT'
</span>
<span class="">
%= select_field 'function' => $c->rebootFunction_list()
</span>
</p><br>
<br>
%= submit_button "$btn", class => ""
<div class="row g-3 align-items-center">
<div class="col-md-2">
<%= l 'rbo_LABEL_REBOOT' %>
</div>
<div class="col-auto">
<%= select_field 'function' => $c->rebootFunction_list(), class => "form-select" %>
</div>
</div>
% end
<br>
%= hidden_field 'debug' => '1'
% my $btn = l('PERFORM');
<%= hidden_field 'debug' => '1' %>
<div class="row g-3 align-items-center">
<div class="col-md-2">
<button type="submit" class="btn btn-primary"><%= $btn %></button>
</div>
</div>
</form>
</div>
%end

View File

@ -1,6 +1,6 @@
%define name smeserver-manager-AdminLTE
%define version 11.0.0
%define release 27
%define release 28
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 <jcrisp@safeandsoundit.co.uk> 11.0.0-28.sme
- Reboot panel done
* Wed Jun 04 2025 John Crisp <jcrisp@safeandsoundit.co.uk> 11.0.0-27.sme
- finish Email panels
- Fix login password toggle