Mercurial > moin > 2.0
view MoinMoin/apps/admin/templates/admin/item_acl_report.html @ 2738:5243e696d247
Made default acl string green in item acl report and made submit acl button smaller
author | Ajitesh Gupta <ajgupta93@gmail.com> |
---|---|
date | Sun, 17 Aug 2014 03:06:12 +0530 |
parents | 63267bfa9099 |
children | 5a49eeb1f307 |
line wrap: on
line source
{% extends theme("layout.html") %} {% import "utils.html" as utils %} {% block content %} <h1>{{ _("Item ACL Report") }}</h1> <table class="zebra table table-hover tablesorter tablesorter-default moin-sortable" data-sortlist="[[0,0]]"> <thead> <tr> <th>{{ _("Item Names") }}</th> <th>{{ _("ACL") }}</th> </tr> </thead> <tbody> {% for item in items_acls %} <tr> <td> <a href="{{ url_for('frontend.show_item', item_name=item['fqname']) }}"> {% if item['name'] %} {{ item['name'] | join(', ') }} {% else %} {{ _("Item Id") }}: {{ item['itemid'] }} {% endif %} </a> </td> <td> {% if user.may.admin(item['fqname']) %} <form id="moin-acl-form" action="{{ url_for('admin.modify_acl', item_name=item['fqname']) }}" method="POST"> <input type="text" class="moin-acl-string" {%if item['acl_default'] %}style="color:green;"{%endif%} name="{{ item['itemid'] }}" value="{{ item['acl'] }}"/> <input type="submit" value="{{ _("Modify ACL") }}"/> </form> {% else %} {{ item['acl'] }} {% endif %} </td> </tr> {% endfor %} </tbody> </table> {% endblock %}