Skip to content

Commit a2438a4

Browse files
committed
Don't render form errors twice
1 parent 3c98798 commit a2438a4

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

pretalx_media_ccc_de/templates/pretalx_media_ccc_de/settings.html

+1-10
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<h2>{% trans "Set up media.ccc.de sync" %}</h2>
77
<form method="post">
88
{% csrf_token %}
9-
{% include "common/forms/errors.html" with errors=form.non_field_errors %}
109
{{ form }}
1110
<div class="submit-group panel">
1211
<span></span>
@@ -32,15 +31,7 @@ <h2>{% trans "Set up media.ccc.de sync" %}</h2>
3231
{% if url_form %}
3332
<h3>{% trans "Change URLs" %}</h3>
3433

35-
<form method="post">
36-
{% csrf_token %}
37-
{% include "common/forms/errors.html" with errors=url_form.non_field_errors %}
38-
{{ url_form }}
39-
40-
<button type="submit" name="action" value="urls" class="btn btn-success btn-lg float-right">
41-
{% trans "Save" %}
42-
</button>
43-
</form>
34+
{% include "orga/includes/base_form.html" with form=url_form %}
4435
{% endif %}
4536

4637
{% endblock %}

0 commit comments

Comments
 (0)