diff --git a/root/usr/share/smanager/themes/default/templates/partials/_hos_list.html.ep b/root/usr/share/smanager/themes/default/templates/partials/_hos_list.html.ep index 0811765..5b5a503 100644 --- a/root/usr/share/smanager/themes/default/templates/partials/_hos_list.html.ep +++ b/root/usr/share/smanager/themes/default/templates/partials/_hos_list.html.ep @@ -50,9 +50,9 @@ %= t td => (class => 'sme-border') => $_->{'MACAddress'}; %= t td => (class => 'sme-border') => $_->{'Comment'}; - % my ($actionModify, $actionRemove) = ' '; + %my ($actionModify, $actionRemove) = ' '; %my $static = $_->{'static'} || "no"; - % if ($static ne 'yes') { + %if ($static ne 'yes') { %my $modify_text = l('MODIFY'); # Localized text %my $csrf_token = "TOKEN"; # CSRF token for security %my $hostentries_name = $_->{'HostName'}; # hostentries name extracted from the data structure @@ -71,7 +71,7 @@ % $remove_text % %}; - % } + %} <%= $c->render_to_string(inline => $actionModify) %> <%= $c->render_to_string(inline => $actionRemove) %> diff --git a/root/usr/share/smanager/themes/default/templates/partials/_iba_list.html.ep b/root/usr/share/smanager/themes/default/templates/partials/_iba_list.html.ep index 1827218..16d92c0 100644 --- a/root/usr/share/smanager/themes/default/templates/partials/_iba_list.html.ep +++ b/root/usr/share/smanager/themes/default/templates/partials/_iba_list.html.ep @@ -46,33 +46,62 @@ %= t td => (class => 'sme-border') => $ibay->key %= t td => (class => 'sme-border') => $ibay->prop('Name') - % my ($actionModify, $actionResetPw, $actionRemove) = ' '; - % if ($modifiable eq 'yes') { - % $actionModify = "" . "" . ""; - % } - % if ($passwordable eq 'yes') { - % if ($ibay->prop('PasswordSet') ne 'yes' && $needPassword) { - %# $actionResetPw .= "" . l('PASSWORD_RESET') . ""; - % $actionResetPw .= "" . ""; -% } else { - % $actionResetPw .= "" . ""; - %# $actionResetPw .= "" . l('PASSWORD_RESET') . ""; - % } - % $actionResetPw .= ' '; - % } - % if ($removable eq 'yes') { - % $actionRemove = "" . "" . ""; - % } - + + %my ($actionModify, $actionResetPw, $actionRemove) = ' '; + %if ($modifiable eq 'yes') { + %my $modify_text = l('MODIFY'); # Localized text + %my $csrf_token = "TOKEN"; # CSRF token for security + %my $ibays_entry_name = $ibay->key; # ibays_entry name extracted from the data structure + %$actionModify = qq{ + % + %}; + %} + + %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{ + % + %}; + %} else { + %$actionResetPw = qq{ + % + %}; + %} + + %} + + %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{ + % + %}; + %} <%= $c->render_to_string(inline => $actionModify) %> <%= $c->render_to_string(inline => $actionResetPw)%> <%= $c->render_to_string(inline => $actionRemove) %> - - + + % } <%} %> - + \ No newline at end of file