12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- {% extends "misago/admin/generic/list.html" %}
- {% load i18n %}
- {% block page-actions %}
- <div class="page-actions">
- <a href="{% url 'misago:admin:permissions:forums:new' %}" class="btn btn-success">
- <span class="fa fa-plus-circle"></span>
- {% trans "New role" %}
- </a>
- </div>
- {% endblock %}
- {% block table-header %}
- <th>{% trans "Forum role" %}</th>
- <th style="width: 1%;"> </th>
- <th style="width: 1%;"> </th>
- {% endblock table-header %}
- {% block table-row %}
- <td class="item-name">
- {{ item }}
- </td>
- <td class="row-action">
- <a href="{% url 'misago:admin:permissions:forums:edit' role_id=item.id %}" class="btn btn-primary tooltip-top" title="{% trans "Edit" %}">
- <span class="fa fa-pencil"></span>
- </a>
- </td>
- <td class="row-action">
- <form action="{% url 'misago:admin:permissions:forums:delete' role_id=item.id %}" method="post" class="delete-prompt">
- <button class="btn btn-danger tooltip-top" title="{% trans "Delete" %}">
- {% csrf_token %}
- <span class="fa fa-times"></span>
- </button>
- </form>
- </td>
- {% endblock %}
- {% block emptylist %}
- <td colspan="3">
- <p>{% trans "No forum roles are currently defined." %}</p>
- </td>
- {% endblock emptylist %}
- {% block javascripts %}
- <script type="text/javascript">
- $(function() {
- $('.delete-prompt').submit(function() {
- var decision = confirm("{% trans "Are you sure you want to delete this role?" %}");
- return decision;
- });
- });
- </script>
- {% endblock %}
|