view MoinMoin/apps/admin/templates/admin/userbrowser.html @ 2867:1259233ad807

standardize look of tables within User, Admin, and Tickets; use zebra everywhere, remove table-hover
author RogerHaase <haaserd@gmail.com>
date Wed, 17 Dec 2014 12:32:26 -0700
parents c9a8ff6d00cc
children
line wrap: on
line source
{% extends theme("layout.html") %}
{% block content %}
    <h1>{{ _("Users") }}</h1>
    <table class="zebra moin-sortable" data-sortlist="[[0,0]]">
        <thead>
            <tr>
                <th>{{ _("User name") }}</th>
                <th>{{ _("Member of Groups") }}</th>
                <th>{{ _("Email address") }}</th>
                <th class="center" colspan="3" data-sorter="false">{{ _("Actions") }}</th>
            </tr>
        </thead>
        <tbody>
            {% for u in user_accounts %}
                <tr>
                    <td><a href="{{ url_for('frontend.show_item', item_name=u.fqname) }}">{{ u.name|join(', ') }}</a>{{ u.disabled and " (%s)" % _("disabled") or "" }}</td>
                    <td>{{ u.groups|join(', ') }}</td>
                    <td>
                        {% if u.email %}
                            <a href="mailto:{{ u.email|e }}" class="mailto">{{ u.email|e }}</a>
                        {% endif %}
                    </td>
                    <td>
                        <form action="{{ url_for('admin.userprofile', user_name=u.name[0]) }}" method="POST">
                            <input type="hidden" name="key" value="disabled" />
                            <input type="hidden" name="val" value="{{ u.disabled and "0" or "1" }}" />
                            <input class="moin-button" type="submit" name="userprofile" value="{{ u.disabled and _("Enable user") or _("Disable user") }}" />
                        </form>
                    </td>
                    <td>
                        <form action="{{ url_for('admin.mail_recovery_token') }}" method="GET">
                            <input type="hidden" name="email" value="{{ u.email }}" />
                            <input type="hidden" name="account_sendmail" value="1" />
                            <input class="moin-button" type="submit" name="recoverpass" value="{{ _("Mail account data") }}" />
                        </form>
                    </td>
                    <td>
                        <form action="{{ url_for('admin.user_acl_report', uid=u.uid) }}" method="GET">
                            <input class="moin-button" type="submit" value="{{ _("User ACL Info") }}" />
                        </form>
                    </td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
{% endblock %}