PHP Classes
elePHPant
Icontem

File: src/Cabin/Bridge/View/perms/user.twig

Recommend this page to a friend!
  Classes of Scott Arciszewski  >  CMS Airship  >  src/Cabin/Bridge/View/perms/user.twig  >  Download  
File: src/Cabin/Bridge/View/perms/user.twig
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: CMS Airship
Content management system with security features
Author: By
Last change:
Date: 1 year ago
Size: 1,644 bytes
 

Contents

Class file image Download
{% 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 %}