summaryrefslogtreecommitdiff
path: root/templates/chimere/edit.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/chimere/edit.html')
-rw-r--r--templates/chimere/edit.html10
1 files changed, 6 insertions, 4 deletions
diff --git a/templates/chimere/edit.html b/templates/chimere/edit.html
index ddd6888..129097f 100644
--- a/templates/chimere/edit.html
+++ b/templates/chimere/edit.html
@@ -1,4 +1,4 @@
-{% load i18n chimere_tags inline_formset staticfiles bootstrap %}
+{% load i18n chimere_tags inline_formset staticfiles bootstrap startswith %}
{% if submited %}{% submited %}{% endif %}
{% if error_message %}<div class='edit errorlist'>
<legend>{% trans "Error" %}</legend>
@@ -73,14 +73,16 @@
<p class="help">{{ form.end_date.help_text }}</p>
</div>
</div>{% endif %}
- {% for field in form %}{% for property in properties %}{% ifequal field.name property.getNamedId %}
<div class="row">
- <div class="col-xs-6">
+ {% for field in form %}{% if field.name|startswith:'property_' %}
+ {% for property in properties %}{% ifequal field.name property.getNamedId %}
+ <div class="col-xs-12 col-md-6 col-xl-4">
<label for="id_{{field.name}}">{% trans field.label %}{% if property.mandatory %} *{% endif %}</label>
{% if field.errors %}<div class='errors'>{{ field.errors }}</div>{% endif %}
{{ field }}
</div>
- </div>{% endifequal %}{% endfor %}{% endfor %}
+ {% endifequal %}{% endfor %}{% endif %}{% endfor %}
+ </div>
</div>
<div class='bottomform'>