Fix templates
This commit is contained in:
parent
880ae577bd
commit
1ec81ff48c
4 changed files with 5 additions and 5 deletions
|
|
@ -5,6 +5,6 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<main id="rule--page" class="main">
|
<main id="rule--page" class="main">
|
||||||
{% url "news:collection:rules" as cancel_url %}
|
{% url "news:collection:rules" as cancel_url %}
|
||||||
{% include "form.html" with form=form title="Create rule" cancel_url=cancel_url only %}
|
{% include "form/form.html" with form=form title="Create rule" cancel_url=cancel_url only %}
|
||||||
</main>
|
</main>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,6 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<main id="rule--page" class="main">
|
<main id="rule--page" class="main">
|
||||||
{% url "news:collection:rules" as cancel_url %}
|
{% url "news:collection:rules" as cancel_url %}
|
||||||
{% include "form.html" with form=form title="Update rule" cancel_url=cancel_url only %}
|
{% include "form/form.html" with form=form title="Update rule" cancel_url=cancel_url only %}
|
||||||
</main>
|
</main>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
<section class="section form__section form__section--errors">
|
<section class="section form__section form__section--errors">
|
||||||
{{ form.non_field_errors }}
|
{{ errors }}
|
||||||
</section>
|
</section>
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
||||||
{% if form.non_field_errors %}
|
{% if form.non_field_errors %}
|
||||||
{% include "form/errors.html" title=title %}
|
{% include "form/errors.html" with errors=form.non_field_errors only %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if title %}
|
{% if title %}
|
||||||
{% include "form/title.html" title=title %}
|
{% include "form/title.html" with title=title only %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<section class="section form__section">
|
<section class="section form__section">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue