Source

django-swingcms / swingcms / custodian / templates / custodian / edit_group.html

{% load i18n %}


<div id='custodian'>

    <h2>Group {{ group.name }}</h2>
    <br />
        <table>
            <tr>
                <td><a href='/edit_group/{{ group_id }}/by_id'>Id</a></td>
                <td><a href='/edit_group/{{ group_id }}/by_username'>Username</a></td>
                <td><a href='/edit_group/{{ group_id }}/by_first_name'>First Name</a></td>
                <td><a href='/edit_group/{{ group_id }}/by_last_name'>Last Name</a></td>
                <td><a href='/edit_group/{{ group_id }}/by_is_active'>Is active</a></td>
                <td><a href='/edit_group/{{ group_id }}/by_last_login'>Last login</a></td>
                        <td></td>
            </tr>
            {% for u in users %}
            <tr>
                <td>{{u.id}}</td>
                <td>{{u.username}}</td>
                <td>{{u.first_name}}</td>
                <td>{{u.last_name}}</td>
                <td>{{u.is_active}}</td>
                <td>{{u.last_login}}</td>
                <td>
                <a href='/exclude_group/{{ group_id }}/user/{{ u.id }}'>exclude</a>
            </td>
            </tr>
            {% endfor %}
        </table>
        <br />
        <br />


    <form enctype='multipart/form-data' method='post' action='/include_group/{{ group_id }}' onsubmit="return js_single_submit(this.submit);">

        {% csrf_token %}

        {{ form.included }}
        <br />
        <br />
        <input type='submit' name='submit' value='Include'>

    </form>

</div>