Skip to content

Commit

Permalink
Don't render form errors twice
Browse files Browse the repository at this point in the history
  • Loading branch information
rixx committed Oct 10, 2024
1 parent 3c98798 commit a2438a4
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<h2>{% trans "Set up media.ccc.de sync" %}</h2>
<form method="post">
{% csrf_token %}
{% include "common/forms/errors.html" with errors=form.non_field_errors %}
{{ form }}
<div class="submit-group panel">
<span></span>
Expand All @@ -32,15 +31,7 @@ <h2>{% trans "Set up media.ccc.de sync" %}</h2>
{% if url_form %}
<h3>{% trans "Change URLs" %}</h3>

<form method="post">
{% csrf_token %}
{% include "common/forms/errors.html" with errors=url_form.non_field_errors %}
{{ url_form }}

<button type="submit" name="action" value="urls" class="btn btn-success btn-lg float-right">
{% trans "Save" %}
</button>
</form>
{% include "orga/includes/base_form.html" with form=url_form %}
{% endif %}

{% endblock %}

0 comments on commit a2438a4

Please sign in to comment.