Fix form syntax issues and more cleaning

This commit is contained in:
John Crisp
2025-04-16 18:09:49 +02:00
parent cc4e08b14a
commit 93b8d4cb6f
15 changed files with 140 additions and 77 deletions

View File

@@ -1,5 +1,5 @@
<div id="flag-container" class = "flag-style">
<div id="flag-container" class="flag-style">
<!-- class=flag-style" -->
<!-- The flag icon will be inserted here -->
</div>

View File

@@ -18,7 +18,7 @@
%=l 'PASSWORD_NEW', class => ""
</span>
<span class="">
%= password_field 'newPass', class => "" , class="">'sme-password'
%= password_field 'newPass', class => "" , class=> 'sme-password'
</span>
</p>
@@ -27,7 +27,7 @@
%=l 'PASSWORD_VERIFY_NEW', class => ""
</span>
<span class="">
%= password_field 'newPassVerify', class => "", class="">'sme-password'
%= password_field 'newPassVerify', class => "", class=> 'sme-password'
</span>
</p>
@@ -41,4 +41,4 @@
% end
</div>
</div>

View File

@@ -25,19 +25,19 @@
<a href='letsencryptd?trt=PARAMS' class="">
%= l('lets_CONFIG')
</a>
%#= link_to l('lets_CONFIG'), 'letsencryptd?trt=PARAMS' , class="">'link link2'
%#= link_to l('lets_CONFIG'), 'letsencryptd?trt=PARAMS' , class=> 'link link2'
<a href='letsencryptd?trt=CHECKALLDOMAINS' class="">
%= l('lets_CHECK_ALL_DOMAINS')
</a>
%#= link_to l('lets_CHECK_ALL_DOMAINS'), 'letsencryptd?trt=CHECKALLDOMAINS' , class="">'link link3'
%#= link_to l('lets_CHECK_ALL_DOMAINS'), 'letsencryptd?trt=CHECKALLDOMAINS' , class=> 'link link3'
<a href='letsencryptd?trt=CHECKALLENABLEDDOMAINS' class="">
%= l('lets_CHECK_ALL_ENABLED_DOMAINS')
</a>
%#= link_to l('lets_CHECK_ALL_ENABLED_DOMAINS'), 'letsencryptd?trt=CHECKALLENABLEDDOMAINS' , class="">'link link4'
%#= link_to l('lets_CHECK_ALL_ENABLED_DOMAINS'), 'letsencryptd?trt=CHECKALLENABLEDDOMAINS' , class=> 'link link4'
</div>
@@ -105,7 +105,8 @@
<p>
<span class="">
%=l('lets_Not_Before')
</span><span class="">
</span>
<span class="">
% param 'NotBefore' => $lets_data->{NotBefore} unless param 'NotBefore';
%= text_field 'NotBefore', size => '50', class => "" , pattern=>'.*' , placeholder=>'NotBefore', Readonly=>'true'
<br>
@@ -148,4 +149,4 @@
%# Probably finally by a submit.
%end
</div>
</div>

View File

@@ -29,7 +29,8 @@
<p>
<span class="">
%=l('lets_SERVICE_STATUS')
</span><span class="">
</span>
<span class="">
%# my @status_options = [['Disabled' => 'disabled'], ['Enabled' => 'enabled'], ['TEST' => 'test']];
% my @status_options = selected_field([['Disabled' => 'disabled'], ['Enabled' => 'enabled'], ['TEST' => 'test']], $lets_data->{status});
%# param 'status' => $lets_data->{status} unless param 'status';
@@ -77,7 +78,8 @@
<p>
<span class="">
%=l('lets_API_STATUS')
</span><span class="">
</span>
<span class="">
% my @API_options = [['2' => '2']];
% param 'API' => $lets_data->{API} unless param 'API';
%= select_field 'API' => @API_options, class => ""

View File

@@ -26,7 +26,7 @@
<a href='nutupsd?trt=CONFIG' class="">
%= l('nut_Configure_NutUPS')
</a>
%#= link_to l('nut_Configure_NutUPS'), 'nutupsd?trt=CONFIG' , class="">'link link1'
%#= link_to l('nut_Configure_NutUPS'), 'nutupsd?trt=CONFIG' , class=> 'link link1'
</div>
@@ -53,4 +53,4 @@
%# Probably finally by a submit.
%end
</div>
</div>

View File

@@ -18,7 +18,7 @@
<span class="">
%=l 'PASSWORD_NEW', class => ""
</span><span class="">
%= password_field 'newPass', class => "", class="">'sme-password'
%= password_field 'newPass', class => "", class=> 'sme-password'
</span>
</p>
@@ -27,7 +27,7 @@
%=l 'PASSWORD_VERIFY_NEW', class => ""
</span>
<span class="">
%= password_field 'newPassVerify', class => "", class="">'sme-password'
%= password_field 'newPassVerify', class => "", class=> 'sme-password'
</span>
</p>
@@ -42,4 +42,4 @@
% end
</div>
</div>

View File

@@ -12,7 +12,7 @@
%=l 'usr_CURRENT_SYSTEM_PASSWORD', class => ""
</span>
<span class="">
%= password_field 'CurPass', class => "", class="">'sme-password'
%= password_field 'CurPass', class => "", class=> 'sme-password'
</span>
</p>
@@ -21,7 +21,7 @@
%=l 'usr_NEW_SYSTEM_PASSWORD', class => ""
</span>
<span class="">
%= password_field 'Pass', class => "", class="">'sme-password'
%= password_field 'Pass', class => "", class=> 'sme-password'
</span>
</p>
@@ -30,7 +30,7 @@
%=l 'usr_NEW_SYSTEM_PASSWORD_VERIFY', class => ""
</span>
<span class="">
%= password_field 'PassVerify', class => "", class="">'sme-password'
%= password_field 'PassVerify', class => "", class=> 'sme-password'
</span>
</p>

View File

@@ -29,7 +29,8 @@
<p>
<span class="">
%=l 'usr_FIRSTNAME'
</span><span class="">
</span>
<span class="">
% param 'FirstName' => $usr_datas->{firstname} unless param 'FirstName';
%= text_field 'FirstName', class => ""
</span>
@@ -64,7 +65,8 @@
<p>
<span class="">
%=l 'usr_STREET_ADDRESS'
</span><span class="">
</span>
<span class="">
% param 'Street' => $usr_datas->{street} unless param 'Street';
%= text_field 'Street', class => ""
</span>
@@ -141,15 +143,17 @@
<span class="">
<table class="tabel table-bordered">
<thead>
<tr><th class="">
<tr>
<th class="">
%=l 'usr_MEMBER'
</th><th class="">
%=l 'GROUP'
</th><th class="">
%=l 'DESCRIPTION'
</th>
</tr>
</thead><tbody>
</tr>
</thead>
<tbody>
% foreach my $g ( @groups) {
% my $user = $usr_datas->{user};