{% spaceless %}
<tr>
<td class="perm_row_user" id="perm_username_{{ user.username|e('html_attr') }}">{{ user.username }}</td>
{% for k, act in actions %}
<td class="permlist_perm permtable_{% if perms[act] %}on{% else %}off{% endif %}">
<input
class="perms_user_checkbox"
type="checkbox"
name="user_perms[{{ user.userid|e('html_attr') }}][{{ act|e('html_attr') }}]" value="1"
{% if perms[act] %}
checked="checked"
{% endif %}
id="user_{{ user.userid|e('html_attr') }}_{{ act|e('html_attr') }}_cbox"
data-action="{{ act|e('html_attr') }}"
data-id="{{ user.userid|e('html_attr') }}"
/>
<label
class="perms_user_label"
id="user_{{ user.userid|e('html_attr') }}_{{ act|e('html_attr') }}_indicator"
for="user_{{ user.userid|e('html_attr') }}_{{ act|e('html_attr') }}_cbox"
{% if perms[act] %}
data-default="on" data-state="on"
{% else %}
data-default="off" data-state="off"
{% endif %}
>
{% if perms[act] %}
<i class="fa fa-check perm-on"></i>
{% else %}
<i class="fa fa-close perm-off"></i>
{% endif %}
</label>
</td>
{% endfor %}
</tr>
{% endspaceless %}
|