view MoinMoin/apps/admin/templates/admin/userbrowser.html @ 1117:f2d8c602dbb6

Improved table style to be more consistent. Fixes #13.
author Julian Brost <julian.brost@googlemail.com>
date Sun, 04 Dec 2011 00:42:48 +0100
parents 7a6b116afa20
children 4ac437141bbe
line wrap: on
line source
{% extends theme("layout.html") %}
{% block content %}
    <table class="zebra">
    <tr>
        <th>{{ _("User name") }}</th>
        <th>{{ _("Member of Groups") }}</th>
        <th>{{ _("Email address") }}</th>
        <th>{{ _("Actions") }}</th>
    </tr>
    {% for u in user_accounts %}
    <tr>
        <td><a href="{{ url_for('frontend.show_item', item_name=u.name) }}">{{ u.name }}</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) }}" method="GET">
                <input type="hidden" name="key" value="disabled" />
                <input type="hidden" name="val" value="{{ u.disabled and "0" or "1" }}" />
                <input type="submit" name="userprofile" value="{{ u.disabled and _("Enable user") or _("Disable user") }}" />
            </form>
            <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 type="submit" name="recoverpass" value="{{ _("Mail account data") }}" />
            </form>
        </td>
    </tr>
    {% endfor %}
</table>
{% endblock %}