Added form errors to all bootstrap forms

This commit is contained in:
Raphael Michel
2015-10-21 16:32:13 +02:00
parent a2af3db771
commit 9d30f9fc64
12 changed files with 16 additions and 3 deletions

View File

@@ -5,7 +5,8 @@
<form action="" method="post" class="form-horizontal" enctype="multipart/form-data">
{% csrf_token %}
<fieldset>
<legend>{% trans "Ticket download" %}</legend>
<legend>{% trans "Ticket download" %}</legend>a
{% bootstrap_form_errors form %}
{% bootstrap_field form.ticket_download layout="horizontal" %}
{% bootstrap_field form.ticket_download_date layout="horizontal" %}
{% for provider in providers %}
@@ -18,7 +19,7 @@
</div>
</div>
<div class="panel-body">
{% bootstrap_form provider.form layout='horizontal' %}
{% bootstrap_form provider.form layout='horizontal' %}
{% with c=provider.settings_content %}
{% if c %}{{ c|safe }}{% endif %}
{% endwith %}