Исправлена ошибка в шаблоне

This commit is contained in:
Vyacheslav Anzhiganov 2016-06-26 12:21:02 +03:00
parent 341d12a7fa
commit d5e3d22d48
5 changed files with 13 additions and 28 deletions

View file

@ -46,6 +46,19 @@
</div>
<div class="large-10 columns">
<div class="container-fluid">
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<div class="row">
<div class="large-12 columns">
<ul class="flashes">
{% for category, message in messages %}
<li class="{{ category }}">{{ message }}</li>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
{% endwith %}
<!-- Page Heading -->
<div class="row">
<div class="col-lg-12">

View file

@ -5,13 +5,6 @@
{% block subtitle %}Create{% 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_create') }}" method="post">
<table class="table table-bordered">
<thead>

View file

@ -5,13 +5,6 @@
{% 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">

View file

@ -5,13 +5,6 @@
{% block subtitle %}Create{% 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_create') }}" method="post">
<table class="table table-bordered">
<tr>

View file

@ -5,13 +5,6 @@
{% 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">