forked from TagesschuleElementa/www.tagesschule-elementa.ch
fixes
This commit is contained in:
@@ -1,19 +1,5 @@
|
||||
{% load i18n aldryn_forms_tags %}
|
||||
|
||||
{% if field %}
|
||||
<div class="form__field reveal_self reveal reveal_animation">
|
||||
{% render_form_widget field class=instance.custom_classes %}
|
||||
|
||||
{% if field.errors %}
|
||||
<p class="form__field__errors">
|
||||
{% for error in field.errors %}
|
||||
{{ error }}{% if not forloop.last %}<br>{% endif %}
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
{% if field.help_text %}
|
||||
<p class="form__field__help_text">{{ field.help_text }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% include 'project/includes/field.html' %}
|
||||
{% endif %}
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
|
||||
<form method="post" action="." id="{{ instance.id }}"
|
||||
{% if form.is_multipart %}enctype="multipart/form-data"{% endif %}
|
||||
class="form {% if instance.custom_classes %}{{ instance.custom_classes }}{% endif %}">
|
||||
class="form {% if instance.custom_classes %}{{ instance.custom_classes }}{% endif %}
|
||||
{% if not form_success_url %}reveal_self reveal reveal_animation{% endif %}">
|
||||
|
||||
{% if form.non_field_errors %}
|
||||
{% for error in form.non_field_errors %}
|
||||
|
||||
Reference in New Issue
Block a user