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

View File

@ -4,37 +4,46 @@
<div class="card-body"> <div class="card-body">
%if (config->{debug} == 1) { % if (config->{debug} == 1) {
<p> <pre>
(DBG)route: <%= $c->current_route %><br> <%= dumper $c->current_route %>
</p> </pre>
%} % }
<h1><%= $title %></h1>
<h1><%= $title %></h1>
<br> <br>
%= $modul <%= $modul %>
<% my $btn = l('PERFORM'); %> <form action="/smanager/reboot" method="POST">
%= form_for 'reboot' => (method => 'POST') => begin
<p> <div class="col-md-6">
%= $c->render_to_string(inline => $c->l('rbo_DESCRIPTION')) <%= $c->render_to_string(inline => $c->l('rbo_DESCRIPTION')) %>
<br><br> </div>
<span class=""> <br>
%=l 'rbo_LABEL_REBOOT'
</span>
<span class="">
%= select_field 'function' => $c->rebootFunction_list()
</span>
</p><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> </div>
%end %end

View File

@ -1,6 +1,6 @@
%define name smeserver-manager-AdminLTE %define name smeserver-manager-AdminLTE
%define version 11.0.0 %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 Summary: AdminLTE is an html framework for admin consoles - this rpm adds it to smeserver manager2
Name: %{name} Name: %{name}
Version: %{version} Version: %{version}
@ -26,6 +26,9 @@ AdminLTE is an html framework for admin consoles
wget https://github.com/ColorlibHQ/AdminLTE/archive/master.zip wget https://github.com/ColorlibHQ/AdminLTE/archive/master.zip
%changelog %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 * Wed Jun 04 2025 John Crisp <jcrisp@safeandsoundit.co.uk> 11.0.0-27.sme
- finish Email panels - finish Email panels
- Fix login password toggle - Fix login password toggle