console/SWSCloudCore/templates/administrator/settings/delete.html

34 lines
1.1 KiB
HTML

{% extends 'administrator/_layout.auth.html' %}
{% block title %}Settings{% endblock %}
{% block subtitle %}Delete{% endblock %}
{% block content %}
{% if g.errors['total'] > 0 %}
<div class="alert alert-danger">
<ul>
{% for error in g.errors['items'] %}<li>{{ error }}</li>{% endfor %}
</ul>
</div>
{% endif %}
<form action="{{ url_for('administrator.settings_delete', id=setting.id) }}" method="post">
<input type="hidden" name="id" value="{{ setting.id }}">
<table class="table table-bordered">
<thead>
<tr>
<th>Key</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ setting.key }}</td>
<td>{{ setting.val }}</td>
</tr>
</tbody>
</table>
<input type="submit" value="Delete" class="btn btn-danger" />
<a href="{{ url_for('administrator.settings_index') }}">Cancel</a>
</form>
{% endblock %}