fix css for form documents into data_wipe html

This commit is contained in:
Cayo Puigdefabregas 2022-02-09 11:28:57 +01:00
parent 1ed5d394c5
commit f2d6c198cc
1 changed files with 22 additions and 0 deletions

View File

@ -26,6 +26,28 @@
{{ field }}
{% elif field == form_new_datawipe.type %}
{{ field }}
{% elif field == form_new_datawipe.document %}
{% for _field in field %}
<div class="col-12">
{{ _field.label(class_="form-label") }}
{% if _field == field.success %}
<div class="form-check form-switch">
{{ _field(class_="form-check-input") }}
<small class="text-muted">{{ _field.description }}</small>
</div>
{% else %}
{{ _field(class_="form-control") }}
<small class="text-muted">{{ _field.description }}</small>
{% endif %}
{% if _field.errors %}
<p class="text-danger">
{% for error in _field.errors %}
{{ error }}<br/>
{% endfor %}
</p>
{% endif %}
</div>
{% endfor %}
{% else %}
<div class="col-12">
{{ field.label(class_="form-label") }}