templates: divide formdata_filling in django blocks (#32864)

This commit is contained in:
Frédéric Péters 2019-05-07 13:27:00 +02:00
parent 93ffe3f9dc
commit 6a1428b92c
1 changed files with 6 additions and 1 deletions

View File

@ -2,9 +2,13 @@
{% load i18n %}
{% block body %}
{% block form-side %}
{{ form_side|default:"" }}
{{ publisher.get_request.session.display_message|safe }}
{% endblock %}
{% block form-main %}
{% block drafts-recall %}
{% if view.initial_hit and user.is_authenticated and not request.quixote_request.is_in_backoffice %}
{% with formdef.objects.current_user.drafts as drafts %}
@ -33,6 +37,7 @@
{% endwith %}
{% endif %}
{% endblock %}
{{ form.render|safe }}
{% endblock %}
{% endblock %}