diff --git a/root/usr/share/smanager/themes/default/templates/partials/_pse_list.html.ep b/root/usr/share/smanager/themes/default/templates/partials/_pse_list.html.ep index 9e51b05..8d54fcd 100644 --- a/root/usr/share/smanager/themes/default/templates/partials/_pse_list.html.ep +++ b/root/usr/share/smanager/themes/default/templates/partials/_pse_list.html.ep @@ -54,19 +54,35 @@ %= t td => (class => 'sme-border') => $pseudonym->key %= t td => (class => 'sme-border') => $account - % my ($actionModify, $actionRemove) = ' '; - % if ($modifiable eq 'yes') { - % $actionModify = "" . "" . ""; - % } - % if ($removable eq 'yes') { - % $actionRemove = "" . "" . ""; - % } + + %my ($actionModify, $actionRemove) = ' '; + %if ($modifiable eq 'yes') { + %my $modify_text = l('MODIFY'); # Localized text + %my $csrf_token = "TOKEN"; # CSRF token for security + %my $pseudonyms_entry_name = $pseudonym->key; # pseudonyms_entry name extracted from the data structure + %$actionModify = qq{ + % + %}; + %} - - <%= $c->render_to_string(inline => $actionModify) %> <%= $c->render_to_string(inline => $actionRemove) %> - - + %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{ + % + %}; + %} + <%= $c->render_to_string(inline => $actionModify) %> <%= $c->render_to_string(inline => $actionRemove) %> + + % } @@ -75,5 +91,4 @@ - - + \ No newline at end of file diff --git a/root/usr/share/smanager/themes/default/templates/partials/_quo_list.html.ep b/root/usr/share/smanager/themes/default/templates/partials/_quo_list.html.ep index 5074888..bc159ec 100644 --- a/root/usr/share/smanager/themes/default/templates/partials/_quo_list.html.ep +++ b/root/usr/share/smanager/themes/default/templates/partials/_quo_list.html.ep @@ -57,7 +57,18 @@ %= t td => (class => 'sme-border') => sprintf("%.2f", $bs / 1024 ) %= t td => (class => 'sme-border') => sprintf("%.2f", $bh / 1024 ) %= t td => (class => 'sme-border') => sprintf("%.2f", $bc / 1024 ) - + + %my $modify_text = l('MODIFY'); # Localized text + %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{ + % + %}; + <%= $c->render_to_string(inline => $actionModify) %> + % } @@ -67,4 +78,4 @@ %= hidden_field 'trt' => $quo_datas->{trt} - + \ No newline at end of file diff --git a/root/usr/share/smanager/themes/default/templates/partials/_quo_upd.html.ep b/root/usr/share/smanager/themes/default/templates/partials/_quo_upd.html.ep index 68d2961..b4777e7 100644 --- a/root/usr/share/smanager/themes/default/templates/partials/_quo_upd.html.ep +++ b/root/usr/share/smanager/themes/default/templates/partials/_quo_upd.html.ep @@ -37,7 +37,7 @@ %= $ic %=l 'quo_FILES' %=l 'quo_OCCUPYING' - %= $bc + %= $c->toMB($bc) %=l 'quo_MEGABYTES'

@@ -81,4 +81,4 @@ % end - + \ No newline at end of file