* Mon Sep 15 2025 Brian Read <brianr@koozali.org> 11.0.0-116.sme

- Fix other buttons in lists for elinks [SME: 13113]
This commit is contained in:
2025-09-15 11:11:20 +01:00
parent a0524a7484
commit 7cb9591eb8
11 changed files with 360 additions and 327 deletions

View File

@@ -51,73 +51,77 @@
% my $csrf_token = "TOKEN"; # CSRF token for security
% my $domain_name = $domain->{Domain}; # Domain name extracted from the data structure
% my $actionModify = qq{
% <a href="domains2?CsrfDef=$csrf_token&trt=UPD&Domain=$domain_name">
% <button type='button' class='sme-modify-button' title='$modify_text' >
% $modify_text
% </button>
% </a>
% };
% my $removable = ( $domain->{Removable} || 'yes' );
% my $actionRemove = '&nbsp;';
% if ($removable eq 'yes') {
% my $remove_text = l('REMOVE'); # Localized text
% my $csrf_token = "TOKEN"; # CSRF token for security
% my $domain_name = $domain->{Domain}; # Domain name extracted from the data structure
% $actionRemove = qq{
% <a href="domains2?CsrfDef=$csrf_token&trt=DEL&Domain=$domain_name">
% <button type='button' class='sme-remove-button' title='$remove_text' >
% $remove_text
% </button>
% </a>
% };
%# $actionRemove = "<a href='domains2?CsrfDef=TOKEN&trt=DEL&Domain=" . $domain->{Domain} . "'>" . "<button class='sme-remove-button' title=".l('REMOVE').">".l('REMOVE')."</button>" . "</a>";
% <a href="domains2?CsrfDef=$csrf_token&trt=UPD&Domain=$domain_name"
% class="sme-modify-button unset ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$modify_text" aria-label="$modify_text"
% style="background:white;">
% <span class="ui-icon ui-icon-pencil"></span>
% <span class="ui-button-text">$modify_text</span>
% </a>
% };
<td class='sme-border' style="min-width:15em">
<%= $c->render_to_string( inline => $actionModify ) %> <%= $c->render_to_string( inline => $actionRemove ) %>
</td>
</tr>
% }
% my $removable = ( $domain->{Removable} || 'yes' );
% my $actionRemove = '&nbsp;';
% if ($removable eq 'yes') {
% my $remove_text = l('REMOVE'); # Localized text
% my $csrf_token = "TOKEN"; # CSRF token for security
% my $domain_name = $domain->{Domain}; # Domain name extracted from the data structure
% $actionRemove = qq{
% <a href="domains2?CsrfDef=$csrf_token&trt=DEL&Domain=$domain_name"
% class="sme-remove-button unset ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$remove_text" aria-label="$remove_text"
% style="background:white;">
% <span class="ui-icon ui-icon-delete"></span>
% <span class="ui-button-text">$remove_text</span>
% </a>
% };
%# $actionRemove = "<a href='domains2?CsrfDef=TOKEN&trt=DEL&Domain=" . $domain->{Domain} . "'>" . "<button class='sme-remove-button' title=".l('REMOVE').">".l('REMOVE')."</button>" . "</a>";
% };
<td class='sme-border' style="min-width:15em">
<%= $c->render_to_string( inline => $actionModify ) %> <%= $c->render_to_string( inline => $actionRemove ) %>
</td>
</tr>
% }
</tbody>
</table>
</tbody>
</table>
%= hidden_field 'trt' => 'ADD'
%= hidden_field 'trt' => 'ADD'
%= form_for '/domains' => ( method => 'POST' ) => begin
%= form_for '/domains' => ( method => 'POST' ) => begin
<!-- <HR class="sectionbar">-->
<br>
<!-- <HR class="sectionbar">-->
<br>
% my $btn2 = l('dom_DOMAINS_PAGE_CORPORATE_DNS');
% my $btn2 = l('dom_DOMAINS_PAGE_CORPORATE_DNS');
<h3>
%= l 'dom_DESC_CORPORATE_DNS_CURRENT'
</h3>
<p>
<span class=label>
%= l 'dom_LABEL_CORPORATE_DNS_PRIMARY'
</span><span class=data>
%= $dom_datas->{forwarder}
</span>
</p>
% if ($dom_datas->{forwarder2}) {
<p>
<span class=label>
%= l 'dom_LABEL_CORPORATE_DNS_SECONDARY'
</span><span class=data>
%= $dom_datas->{forwarder2}
</span>
</p>
% }
<h3>
%= l 'dom_DESC_CORPORATE_DNS_CURRENT'
</h3>
<p>
%= submit_button "$btn2", class => 'action'
<span class=label>
%= l 'dom_LABEL_CORPORATE_DNS_PRIMARY'
</span><span class=data>
%= $dom_datas->{forwarder}
</span>
</p>
%= hidden_field 'trt' => 'UP2'
% end
% if ($dom_datas->{forwarder2}) {
<p>
<span class=label>
%= l 'dom_LABEL_CORPORATE_DNS_SECONDARY'
</span><span class=data>
%= $dom_datas->{forwarder2}
</span>
</p>
% }
<p>
%= submit_button "$btn2", class => 'action'
</p>
%= hidden_field 'trt' => 'UP2'
% end
</div>
</div>

View File

@@ -43,30 +43,34 @@
% my $csrf_token = "TOKEN"; # CSRF token for security
% my $group_name = $group->key; # group name extracted from the data structure
% my $actionModify = qq{
% <a href="groups2?CsrfDef=$csrf_token&trt=UPD&group=$group_name">
% <button type='button' class='sme-modify-button' title='$modify_text' >
% $modify_text
% </button>
% </a>
% };
% my $remove_text = l('REMOVE'); # Localized text
% my $csrf_token = "TOKEN"; # CSRF token for security
% my $group_name = $group->key; # group name extracted from the data structure
% my $actionRemove = qq{
% <a href="groups2?CsrfDef=$csrf_token&trt=DEL&group=$group_name">
% <button type='button' class='sme-remove-button' title='$remove_text' >
% $remove_text
% </button>
% <a href="groups2?CsrfDef=$csrf_token&trt=UPD&group=$group_name"
% class="sme-modify-button unset ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$modify_text" aria-label="$modify_text"
% style="background:white;">
% <span class="ui-icon ui-icon-pencil"></span>
% <span class="ui-button-text">$modify_text</span>
% </a>
% };
<%= $c->render_to_string( inline => $actionModify ) %> <%= $c->render_to_string( inline => $actionRemove ) %>
</td>
</tr>
% }
</tbody>
</table>
<% } %>
</p>
% my $remove_text = l('REMOVE'); # Localized text
% my $csrf_token = "TOKEN"; # CSRF token for security
% my $group_name = $group->key; # group name extracted from the data structure
% my $actionRemove = qq{
% <a href="groups2?CsrfDef=$csrf_token&trt=DEL&group=$group_name"
% class="sme-remove-button unset ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$remove_text" aria-label="$remove_text"
% style="background:white;">
% <span class="ui-icon ui-icon-delete"></span>
% <span class="ui-button-text">$remove_text</span>
% </a>
% };
<%= $c->render_to_string( inline => $actionModify ) %> <%= $c->render_to_string( inline => $actionRemove ) %>
</td>
</tr>
% }
</tbody>
</table>
<% } %>
</p>
</div>
</div>

View File

@@ -57,28 +57,32 @@
% my $csrf_token = "TOKEN"; # CSRF token for security
% my $hostentries_name = $_->{'HostName'}; # hostentries name extracted from the data structure
% $actionModify = qq{
% <a href="hostentriesd?CsrfDef=$csrf_token&trt=UPD&Hostname=$hostentries_name">
% <button type='button' class='sme-modify-button' title='$modify_text' >
% $modify_text
% </button>
% </a>
% };
% my $remove_text = l('REMOVE'); # Localized text
% $csrf_token = "TOKEN"; # CSRF token for security
%# my $hostentries_name = $_->{'HostName'}; # hostentries name extracted from the data structure
% $actionRemove = qq{
% <a href="hostentriesd?CsrfDef=$csrf_token&trt=DEL&Hostname=$hostentries_name">
% <button type='button' class='sme-remove-button' title='$remove_text' >
% $remove_text
% </button>
% <a href="hostentriesd?CsrfDef=$csrf_token&trt=UPD&Hostname=$hostentries_name"
% class="sme-modify-button unset ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$modify_text" aria-label="$modify_text"
% style="background:white;">
% <span class="ui-icon ui-icon-pencil"></span>
% <span class="ui-button-text">$modify_text</span>
% </a>
% };
% }
<%= $c->render_to_string( inline => $actionModify ) %> <%= $c->render_to_string( inline => $actionRemove ) %>
</td>
</tr>
% my $remove_text = l('REMOVE'); # Localized text
% $csrf_token = "TOKEN"; # CSRF token for security
%# my $hostentries_name = $_->{'HostName'}; # hostentries name extracted from the data structure
% $actionRemove = qq{
% <a href="hostentriesd?CsrfDef=$csrf_token&trt=DEL&Hostname=$hostentries_name"
% class="sme-remove-button unset ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$remove_text" aria-label="$remove_text"
% style="background:white;">
% <span class="ui-icon ui-icon-delete"></span>
% <span class="ui-button-text">$remove_text</span>
% </a>
% };
% }
</tbody>
</table>
<%= $c->render_to_string( inline => $actionModify ) %> <%= $c->render_to_string( inline => $actionRemove ) %>
</td>
</tr>
% }
</div>
</tbody>
</table>
% }
</div>

View File

@@ -53,59 +53,65 @@
% my $csrf_token = "TOKEN"; # CSRF token for security
% my $ibays_entry_name = $ibay->key; # ibays_entry name extracted from the data structure
% $actionModify = qq{
% <a href="ibaysd?CsrfDef=$csrf_token&trt=UPD&ibay=$ibays_entry_name">
% <button type='button' class='sme-modify-button' title='$modify_text' >
% $modify_text
% </button>
% </a>
% };
% }
% <a href="ibaysd?CsrfDef=$csrf_token&trt=UPD&ibay=$ibays_entry_name"
% class="sme-modify-button unset ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$modify_text" aria-label="$modify_text"
% style="background:white;">
% <span class="ui-icon ui-icon-pencil"></span>
% <span class="ui-button-text">$modify_text</span>
% </a>
% };
% }
% if ($passwordable eq 'yes') {
% my $password_text = l('PASSWORD_RESET'); # Localized text
% my $csrf_token = "TOKEN"; # CSRF token for security
% my $ibays_entry_name = $ibay->key; # ibays_entry name extracted from the data structure
% if ($ibay->prop('PasswordSet') ne 'yes' && $needPassword) {
% $actionResetPw = qq{
% <a href="ibaysd?CsrfDef=$csrf_token&trt=PWD&ibay=$ibays_entry_name">
% <button type='button' class='sme-password-button unset' title="$password_text - currently unset" style = background:pink; >
% $password_text
% </button>
% </a>
% };
% } else {
% $actionResetPw = qq{
% <a href="ibaysd?CsrfDef=$csrf_token&trt=PWD&ibay=$ibays_entry_name">
% <button type='button' class='sme-password-button' title='$password_text' >
% $password_text
% </button>
% </a>
% };
% }
% }
% if ($removable eq 'yes') {
% my $remove_text = l('REMOVE'); # Localized text
% my $csrf_token = "TOKEN"; # CSRF token for security
% my $ibays_entry_name = $ibay->key; # ibays_entry name extracted from the data structure
% $actionRemove = qq{
% <a href="ibaysd?CsrfDef=$csrf_token&trt=DEL&ibay=$ibays_entry_name">
% <button type='button' class='sme-remove-button' title='$remove_text' >
% $remove_text
% if ($passwordable eq 'yes') {
% my $password_text = l('PASSWORD_RESET'); # Localized text
% my $csrf_token = "TOKEN"; # CSRF token for security
% my $ibays_entry_name = $ibay->key; # ibays_entry name extracted from the data structure
% if ($ibay->prop('PasswordSet') ne 'yes' && $needPassword) {
% $actionResetPw = qq{
% <a href="ibaysd?CsrfDef=$csrf_token&trt=PWD&ibay=$ibays_entry_name">
% <button type='button' class='sme-password-button unset' title="$password_text - currently unset" style = background:pink; >
% $password_text
% </button>
% </a>
% };
% }
<%= $c->render_to_string( inline => $actionModify ) %>
<%= $c->render_to_string( inline => $actionResetPw ) %>
<%= $c->render_to_string( inline => $actionRemove ) %>
</td>
</tr>
% } else {
% $actionResetPw = qq{
% <a href="ibaysd?CsrfDef=$csrf_token&trt=PWD&ibay=$ibays_entry_name"
% class="sme-password-button unset ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$password_text" aria-label="$password_text"
% style="background:white;">
% <span class="ui-icon ui-icon-refresh"></span>
% <span class="ui-button-text">$password_text</span>
% </a>
% };
% }
</tbody>
</table>
<% } %>
% }
% if ($removable eq 'yes') {
% my $remove_text = l('REMOVE'); # Localized text
% my $csrf_token = "TOKEN"; # CSRF token for security
% my $ibays_entry_name = $ibay->key; # ibays_entry name extracted from the data structure
% $actionRemove = qq{
% <a href="ibaysd?CsrfDef=$csrf_token&trt=DEL&ibay=$ibays_entry_name"
% class="sme-remove-button unset ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$remove_text" aria-label="$remove_text"
% style="background:white;">
% <span class="ui-icon ui-icon-delete"></span>
% <span class="ui-button-text">$remove_text</span>
% </a>
% };
% }
<%= $c->render_to_string( inline => $actionModify ) %>
<%= $c->render_to_string( inline => $actionResetPw ) %>
<%= $c->render_to_string( inline => $actionRemove ) %>
</td>
</tr>
% }
</tbody>
</table>
<% } %>
</div>
</div>

View File

@@ -80,18 +80,20 @@
% my $local_network_entry = $localnetwork->key;
% my $csrf_token = "TOKEN"; # CSRF token for security
% $actionRemove = qq{
% <a href="localnetworksd?CsrfDef=$csrf_token&trt=DEL&localnetwork=$local_network_entry">
% <button type='button' class='sme-remove-button' title='$remove_text' >
% $remove_text
% </button>
% </a>
% };
% }
<td class='sme-border'><%= $c->render_to_string( inline => $actionRemove ) %></td>
</tr>
% <a href="localnetworksd?CsrfDef=$csrf_token&trt=DEL&localnetwork=$local_network_entry"
% class="sme-remove-button unset ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$remove_text" aria-label="$remove_text"
% style="background:white;">
% <span class="ui-icon ui-icon-delete"></span>
% <span class="ui-button-text">$remove_text</span>
% </a>
% };
% }
</tbody>
</table>
%= hidden_field 'trt' => $ln_datas->{trt}
% }
</div>
<td class='sme-border'><%= $c->render_to_string( inline => $actionRemove ) %></td>
</tr>
% }
</tbody>
</table>
%= hidden_field 'trt' => $ln_datas->{trt}
% }
</div>

View File

@@ -96,21 +96,23 @@
% my $remove_text = l('REMOVE'); # Localized text
% my $csrf_token = "TOKEN"; # CSRF token for security
% my $actionRemove = qq{
% <a href="portforwardingd?CsrfDef=$csrf_token&trt=DEL&sport=$sport&proto=$proto">
% <button type='button' class='sme-remove-button' title='$remove_text' >
% $remove_text
% </button>
% </a>
% };
<%= $c->render_to_string( inline => $actionRemove ) %>
</td>
</tr>
% }
% <a href="portforwardingd?CsrfDef=$csrf_token&trt=DEL&sport=$sport&proto=$proto"
% class="sme-remove-button unset ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$remove_text" aria-label="$remove_text"
% style="background:white;">
% <span class="ui-icon ui-icon-delete"></span>
% <span class="ui-button-text">$remove_text</span>
% </a>
% };
<%= $c->render_to_string( inline => $actionRemove ) %>
</td>
</tr>
% }
% }
% }
</tbody>
</table>
%= hidden_field 'trt' => $pf_datas->{trt}
% }
% }
% }
</tbody>
</table>
%= hidden_field 'trt' => $pf_datas->{trt}
</div>
</div>

View File

@@ -62,20 +62,22 @@
% my $csrf_token = "TOKEN"; # CSRF token for security
% my $printer_name = $printer->key;
% my $actionRemove = qq{
% <a href="printers2?CsrfDef=$csrf_token&trt=DEL&&printer=$printer_name">
% <button type='button' class='sme-remove-button' title='$remove_text' >
% $remove_text
% </button>
% </a>
% };
<%= $c->render_to_string( inline => $actionRemove ) %>
</td>
</tr>
% }
</tbody>
</table>
<% } %>
</p>
% <a href="printers2?CsrfDef=$csrf_token&trt=DEL&&printer=$printer_name"
% class="sme-remove-button unset ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$remove_text" aria-label="$remove_text"
% style="background:white;">
% <span class="ui-icon ui-icon-delete"></span>
% <span class="ui-button-text">$remove_text</span>
% </a>
% };
<%= $c->render_to_string( inline => $actionRemove ) %>
</td>
</tr>
% }
</tbody>
</table>
<% } %>
</p>
</div>
</div>

View File

@@ -61,36 +61,40 @@
% my $csrf_token = "TOKEN"; # CSRF token for security
% my $pseudonyms_entry_name = $pseudonym->key; # pseudonyms_entry name extracted from the data structure
% $actionModify = qq{
% <a href="pseudonyms2?CsrfDef=$csrf_token&trt=UPD&pseudonym=$pseudonyms_entry_name">
% <button type='button' class='sme-modify-button' title='$modify_text' >
% $modify_text
% </button>
% </a>
% };
% }
% if ($removable eq 'yes') {
% my $remove_text = l('REMOVE'); # Localized text
% my $csrf_token = "TOKEN"; # CSRF token for security
% my $pseudonyms_entry_name = $pseudonym->key; # pseudonyms_entry name extracted from the data structure
% $actionRemove = qq{
% <a href="pseudonyms2?CsrfDef=$csrf_token&trt=DEL&pseudonym=$pseudonyms_entry_name">
% <button type='button' class='sme-remove-button' title='$remove_text' >
% $remove_text
% </button>
% <a href="pseudonyms2?CsrfDef=$csrf_token&trt=UPD&pseudonym=$pseudonyms_entry_name"
% class="sme-modify-button unset ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$modify_text" aria-label="$modify_text"
% style="background:white;">
% <span class="ui-icon ui-icon-pencil"></span>
% <span class="ui-button-text">$modify_text</span>
% </a>
% };
% }
<%= $c->render_to_string( inline => $actionModify ) %> <%= $c->render_to_string( inline => $actionRemove ) %>
% }
</td>
</tr>
% if ($removable eq 'yes') {
% my $remove_text = l('REMOVE'); # Localized text
% my $csrf_token = "TOKEN"; # CSRF token for security
% my $pseudonyms_entry_name = $pseudonym->key; # pseudonyms_entry name extracted from the data structure
% $actionRemove = qq{
% <a href="pseudonyms2?CsrfDef=$csrf_token&trt=DEL&pseudonym=$pseudonyms_entry_name"
% class="sme-remove-button unset ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$remove_text" aria-label="$remove_text"
% style="background:white;">
% <span class="ui-icon ui-icon-delete"></span>
% <span class="ui-button-text">$remove_text</span>
% </a>
% };
% }
</tbody>
</table>
<% } %>
</p>
<%= $c->render_to_string( inline => $actionModify ) %> <%= $c->render_to_string( inline => $actionRemove ) %>
</td>
</tr>
% }
</tbody>
</table>
<% } %>
</p>
</div>
</div>

View File

@@ -62,21 +62,23 @@
% my $csrf_token = "TOKEN"; # CSRF token for security
% my $quota_user_name = $user->key; # quotas_entry name extracted from the data structure
% my $actionModify = qq{
% <a href="quotad?CsrfDef=$csrf_token&trt=UPD&user=$quota_user_name">
% <button type='button' class='sme-modify-button' title='$modify_text' >
% $modify_text
% </button>
% </a>
% };
<%= $c->render_to_string( inline => $actionModify ) %>
</td>
</tr>
% }
</tbody>
</table>
<% } %>
</p>
% <a href="quotad?CsrfDef=$csrf_token&trt=UPD&user=$quota_user_name"
% class="sme-modify-button unset ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$modify_text" aria-label="$modify_text"
% style="background:white;">
% <span class="ui-icon ui-icon-pencil"></span>
% <span class="ui-button-text">$modify_text</span>
% </a>
% };
<%= $c->render_to_string( inline => $actionModify ) %>
</td>
</tr>
% }
</tbody>
</table>
<% } %>
</p>
%= hidden_field 'trt' => $quo_datas->{trt}
%= hidden_field 'trt' => $quo_datas->{trt}
</div>
</div>

View File

@@ -65,103 +65,103 @@
% my $useraccounts_user_name = $user->key; # useraccountss_entry name extracted from the data structure
% my $password_text = l("PASSWORD_RESET");
% if ($useraccounts_user_name eq 'admin') {
% $actionModify = qq{
% <a href="useraccountsd?CsrfDef=$csrf_token&trt=UPS&user=$useraccounts_user_name"
% class="sme-modify-button ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$modify_text" aria-label="$modify_text">
% <span class="ui-icon ui-icon-pencil"></span>
% <span class="ui-button-text">$modify_text</span>
% </a>
% };
% $actionResetPw = qq{
% <a href="useraccountsd?CsrfDef=$csrf_token&trt=PWS&user=$useraccounts_user_name"
% class="sme-password-button ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$password_text" aria-label="$password_text">
% <span class="ui-icon ui-icon-refresh"></span>
% <span class="ui-button-text">$password_text</span>
% </a>
% };
% } else {
% $actionModify = qq{
% <a href="useraccountsd?CsrfDef=$csrf_token&trt=UPD&user=$useraccounts_user_name"
% class="sme-modify-button ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$modify_text" aria-label="$modify_text">
% <span class="ui-icon ui-icon-pencil"></span>
% <span class="ui-button-text">$modify_text</span>
% </a>
% };
% }
% if ($password_set ne 'yes') {
% $actionLock = l('ACCOUNT_LOCKED');
% $actionResetPw = qq{
% <a href="useraccountsd?CsrfDef=$csrf_token&trt=PWD&user=$useraccounts_user_name"
% class="sme-password-button unset ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$password_text - currently unset" aria-label="$password_text - currently unset"
% style="background:pink;">
% <span class="ui-icon ui-icon-refresh"></span>
% <span class="ui-button-text">$password_text</span>
% </a>
% };
% } elsif ($useraccounts_user_name ne 'admin') {
% my $lock_text = l('LOCK_ACCOUNT'); # Localized text
% my $csrf_token = "TOKEN"; # CSRF token for security
% my $useraccounts_user_name = $user->key; # useraccountss_entry name extracted from the data structure
% $actionModify = qq{
% <a href="useraccountsd?CsrfDef=$csrf_token&trt=UPS&user=$useraccounts_user_name"
% class="sme-modify-button ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$modify_text" aria-label="$modify_text">
% <span class="ui-icon ui-icon-pencil"></span>
% <span class="ui-button-text">$modify_text</span>
% </a>
% };
% $actionResetPw = qq{
% <a href="useraccountsd?CsrfDef=$csrf_token&trt=PWS&user=$useraccounts_user_name"
% class="sme-password-button ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$password_text" aria-label="$password_text">
% <span class="ui-icon ui-icon-refresh"></span>
% <span class="ui-button-text">$password_text</span>
% </a>
% };
% } else {
% $actionModify = qq{
% <a href="useraccountsd?CsrfDef=$csrf_token&trt=UPD&user=$useraccounts_user_name"
% class="sme-modify-button ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$modify_text" aria-label="$modify_text">
% <span class="ui-icon ui-icon-pencil"></span>
% <span class="ui-button-text">$modify_text</span>
% </a>
% };
% }
% if ($password_set ne 'yes') {
% $actionLock = l('ACCOUNT_LOCKED');
% $actionResetPw = qq{
% <a href="useraccountsd?CsrfDef=$csrf_token&trt=PWD&user=$useraccounts_user_name"
% class="sme-password-button unset ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$password_text" aria-label="$password_text"
% style="background:pink;">
% <span class="ui-icon ui-icon-refresh"></span>
% <span class="ui-button-text">$password_text</span>
% </a>
% };
% } elsif ($useraccounts_user_name ne 'admin') {
% my $lock_text = l('LOCK_ACCOUNT'); # Localized text
% my $csrf_token = "TOKEN"; # CSRF token for security
% my $useraccounts_user_name = $user->key; # useraccountss_entry name extracted from the data structure
% $actionLock = qq{
% <a href="useraccountsd?CsrfDef=$csrf_token&trt=LCK&user=$useraccounts_user_name"
% class="sme-lock-button ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$lock_text" aria-label="$lock_text">
% <span class="ui-icon ui-icon-locked"></span>
% <span class="ui-button-text">$lock_text</span>
% </a>
% <a href="useraccountsd?CsrfDef=$csrf_token&trt=LCK&user=$useraccounts_user_name"
% class="sme-lock-button ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$lock_text" aria-label="$lock_text">
% <span class="ui-icon ui-icon-locked"></span>
% <span class="ui-button-text">$lock_text</span>
% </a>
% };
% $actionResetPw = qq{
% <a href="useraccountsd?CsrfDef=$csrf_token&trt=PWD&user=$useraccounts_user_name"
% class="sme-password-button ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$password_text" aria-label="$password_text">
% <span class="ui-icon ui-icon-refresh"></span>
% <span class="ui-button-text">$password_text</span>
% </a>
% <a href="useraccountsd?CsrfDef=$csrf_token&trt=PWD&user=$useraccounts_user_name"
% class="sme-password-button ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$password_text" aria-label="$password_text">
% <span class="ui-icon ui-icon-refresh"></span>
% <span class="ui-button-text">$password_text</span>
% </a>
% };
% }
% if ( $removable eq 'yes' ) {
% my $remove_text = l('REMOVE'); # Localized text
% my $csrf_token = "TOKEN"; # CSRF token for security
% $actionRemove = qq{
% <a href="useraccountsd?CsrfDef=$csrf_token&trt=DEL&user=$useraccounts_user_name"
% class="sme-remove-button ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$remove_text" aria-label="$remove_text">
% <span class="ui-icon ui-icon-trash"></span>
% <span class="ui-button-text">$remove_text</span>
% </a>
% };
% }
% }
% if ( $removable eq 'yes' ) {
% my $remove_text = l('REMOVE'); # Localized text
% my $csrf_token = "TOKEN"; # CSRF token for security
% $actionRemove = qq{
% <a href="useraccountsd?CsrfDef=$csrf_token&trt=DEL&user=$useraccounts_user_name"
% class="sme-remove-button ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$remove_text" aria-label="$remove_text">
% <span class="ui-icon ui-icon-trash"></span>
% <span class="ui-button-text">$remove_text</span>
% </a>
% };
% }
% my $thisdomain = $c->req->url->to_abs->host;
% my $roundcube_text = l('Webmail'); # Localized text
% $csrf_token = "TOKEN"; # CSRF token for security
% $useraccounts_user_name = $user->key; # useraccountss_entry name extracted from the data structure
% my $thisdomain = $c->req->url->to_abs->host;
% my $roundcube_text = l('Webmail'); # Localized text
% $csrf_token = "TOKEN"; # CSRF token for security
% $useraccounts_user_name = $user->key; # useraccountss_entry name extracted from the data structure
% $actionroundcube = qq{
% <a href="roundcubepanel?CsrfDef=$csrf_token&url=https://$thisdomain/roundcube?_user=$useraccounts_user_name&height=600px"
% class="sme-email-button ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$roundcube_text" aria-label="$roundcube_text">
% <span class="ui-icon ui-icon-mail-closed"></span>
% <span class="ui-button-text">$roundcube_text</span>
% </a>
% <a href="roundcubepanel?CsrfDef=$csrf_token&url=https://$thisdomain/roundcube?_user=$useraccounts_user_name&height=600px"
% class="sme-email-button ui-button ui-corner-all ui-widget ui-button-icon-only"
% title="$roundcube_text" aria-label="$roundcube_text">
% <span class="ui-icon ui-icon-mail-closed"></span>
% <span class="ui-button-text">$roundcube_text</span>
% </a>
% };
<td class='sme-border' style="min-width:35em">
<%= $c->render_to_string( inline => $actionModify ) %>
<%= $c->render_to_string( inline => $actionResetPw ) %>
<%= $c->render_to_string( inline => $actionLock ) %>
<%= $c->render_to_string( inline => $actionRemove ) %>
<%= $c->render_to_string( inline => $actionroundcube ) %>
</td>
</tr>
% }
</tbody>
</table>
<td class='sme-border' style="min-width:35em">
<%= $c->render_to_string( inline => $actionModify ) %>
<%= $c->render_to_string( inline => $actionResetPw ) %>
<%= $c->render_to_string( inline => $actionLock ) %>
<%= $c->render_to_string( inline => $actionRemove ) %>
<%= $c->render_to_string( inline => $actionroundcube ) %>
</td>
</tr>
% }
</tbody>
</table>
<% } %>
<% } %>
%= hidden_field 'trt' => $usr_datas->{trt}
%= hidden_field 'trt' => $usr_datas->{trt}
</div>

View File

@@ -2,7 +2,7 @@ Summary: Sme Server Configuration : Manager 2
%define name smeserver-manager
Name: %{name}
%define version 11.0.0
%define release 115
%define release 116
Version: %{version}
Release: %{release}%{?dist}
License: GPL
@@ -147,6 +147,9 @@ true
%defattr(-,root,root)
%changelog
* Mon Sep 15 2025 Brian Read <brianr@koozali.org> 11.0.0-116.sme
- Fix other buttons in lists for elinks [SME: 13113]
* Sat Sep 13 2025 Brian Read <brianr@koozali.org> 11.0.0-115.sme
- Fix login and logout and user table buttons so that they are valid html and work for elinks [SME: 13113]