Commit 42b648a2 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

refactor(frontend): manage user form required action

parent ed3cf501
<div class="card">
<div class="card-body">
<form method="post">
<form method="post" action="/admin/user/<%= $user->id %>.html">
% my $checked = '';
% $checked = 'checked' if $user->is_admin;
<input type="checkbox" name="is_admin" value="1" <%= $checked %>>
......
<div class="card">
<div class="card-body">
<form method="post">
<form method="post" action="/admin/user/<%= $user->id %>.html">
% for my $perm ($_user->list_all_permissions) {
% my $can_do = $user->can_do($perm->{name});
% my $checked = $can_do ? 'checked' : '';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment