console/app/templates/administrator/settings/index.html
2015-12-01 02:46:00 +03:00

38 lines
No EOL
1.3 KiB
HTML

{% extends 'administrator/_layout.auth.html' %}
{% block title %}Servers{% endblock %}
{% block subtitle %}Edit server{% endblock %}
{% block content %}
<table class="table table-bordered">
<thead>
<tr>
<th>Id</th>
<th>Key</th>
<th>Value</th>
<th>Action</th>
</tr>
</thead>
<tbody>
{% if settings.total == 0 %}
<tr>
<td colspan="4">Нет ни одного параметра.</td>
</tr>
{% else %}
{% for setting in settings['items'] %}
<tr>
<td>{{ setting.id }}</td>
<td>{{ setting.key }}</td>
<td>{{ setting.val }}</td>
<td>
[<a href="{{ url_for('administrator.settings_update', id=setting.id) }}">Edit</a>]
[<a href="{{ url_for('administrator.settings_delete', id=setting.id) }}">Delete</a>]
</td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
<a href="{{ url_for('administrator.settings_create') }}" class="btn btn-success">Create new</a>
{% endblock %}