Исправлена ошибка в шаблоне
This commit is contained in:
parent
341d12a7fa
commit
d5e3d22d48
5 changed files with 13 additions and 28 deletions
|
@ -46,6 +46,19 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="large-10 columns">
|
<div class="large-10 columns">
|
||||||
<div class="container-fluid">
|
<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 -->
|
<!-- Page Heading -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
|
|
|
@ -5,13 +5,6 @@
|
||||||
{% block subtitle %}Create{% endblock %}
|
{% block subtitle %}Create{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% 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">
|
<form action="{{ url_for('administrator.settings_create') }}" method="post">
|
||||||
<table class="table table-bordered">
|
<table class="table table-bordered">
|
||||||
<thead>
|
<thead>
|
||||||
|
|
|
@ -5,13 +5,6 @@
|
||||||
{% block subtitle %}Delete{% endblock %}
|
{% block subtitle %}Delete{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% 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">
|
<form action="{{ url_for('administrator.settings_delete', id=setting.id) }}" method="post">
|
||||||
<input type="hidden" name="id" value="{{ setting.id }}">
|
<input type="hidden" name="id" value="{{ setting.id }}">
|
||||||
<table class="table table-bordered">
|
<table class="table table-bordered">
|
||||||
|
|
|
@ -5,13 +5,6 @@
|
||||||
{% block subtitle %}Create{% endblock %}
|
{% block subtitle %}Create{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% 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">
|
<form action="{{ url_for('administrator.settings_create') }}" method="post">
|
||||||
<table class="table table-bordered">
|
<table class="table table-bordered">
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -5,13 +5,6 @@
|
||||||
{% block subtitle %}Update{% endblock %}
|
{% block subtitle %}Update{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% 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">
|
<form action="{{ url_for('administrator.settings_update', id=setting.id) }}" method="post">
|
||||||
<input type="hidden" name="id" value="{{ setting.id }}">
|
<input type="hidden" name="id" value="{{ setting.id }}">
|
||||||
<table class="table table-bordered">
|
<table class="table table-bordered">
|
||||||
|
|
Loading…
Add table
Reference in a new issue