39 lines
1.2 KiB
HTML
39 lines
1.2 KiB
HTML
{% extends 'administrator/_layout.auth.html' %}
|
|
|
|
{% block title %}Rules{% endblock %}
|
|
|
|
{% block subtitle %}Rules list{% endblock %}
|
|
|
|
{% block content %}
|
|
Total: {{ rules.total }}
|
|
<table class="table table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>Id</th>
|
|
<th>Email</th>
|
|
<th>Status</th>
|
|
<th>Source</th>
|
|
<th>Alias</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% if rules.total == 0 %}
|
|
<tr>
|
|
<td colspan="6">Нет ни одного правила</td>
|
|
</tr>
|
|
{% else %}
|
|
{% for rule in rules['items'] %}
|
|
<tr>
|
|
<td>{{ rule.id }}</td>
|
|
<td>{{ rule.user.email }}</td>
|
|
<td>{{ rule.status }}</td>
|
|
<td>{{ rule.source }}</td>
|
|
<td>{{ rule.alias }}</td>
|
|
<td><a href="#">Edit</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</tbody>
|
|
</table>
|
|
{% endblock %}
|