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

36 lines
1.3 KiB
HTML

{% extends 'administrator/_layout.auth.html' %}
{% block title %}Settings{% endblock %}
{% block subtitle %}Update{% 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_update', id=setting.id) }}" method="post">
<input type="hidden" name="id" value="{{ setting.id }}">
<table class="table table-bordered">
<thead>
<tr>
<th>ID</th>
<th>Key</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td><input type="text" value="{{ setting.id }}" class="form-control" disabled /></td>
<td><input type="text" name="key" value="{{ setting.key }}" class="form-control"></td>
<td><input type="text" name="val" value="{{ setting.val }}" class="form-control"></td>
</tr>
</tbody>
</table>
<input type="submit" value="Update" class="btn btn-danger" />
<a href="{{ url_for('administrator.settings_index') }}">Cancel</a>
</form>
{% endblock %}