Fix templates

This commit is contained in:
sonny 2020-05-15 19:38:35 +02:00
parent 880ae577bd
commit 1ec81ff48c
4 changed files with 5 additions and 5 deletions

View file

@ -5,6 +5,6 @@
{% block content %}
<main id="rule--page" class="main">
{% 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>
{% endblock %}

View file

@ -5,6 +5,6 @@
{% block content %}
<main id="rule--page" class="main">
{% 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>
{% endblock %}

View file

@ -1,3 +1,3 @@
<section class="section form__section form__section--errors">
{{ form.non_field_errors }}
{{ errors }}
</section>

View file

@ -4,11 +4,11 @@
{% csrf_token %}
{% if form.non_field_errors %}
{% include "form/errors.html" title=title %}
{% include "form/errors.html" with errors=form.non_field_errors only %}
{% endif %}
{% if title %}
{% include "form/title.html" title=title %}
{% include "form/title.html" with title=title only %}
{% endif %}
<section class="section form__section">