diff options
Diffstat (limited to 'chimere/templates/chimere/edit.html')
-rw-r--r-- | chimere/templates/chimere/edit.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chimere/templates/chimere/edit.html b/chimere/templates/chimere/edit.html index b6e0963..f534b42 100644 --- a/chimere/templates/chimere/edit.html +++ b/chimere/templates/chimere/edit.html @@ -82,11 +82,17 @@ <div class="row"> {% for field in form %}{% if field.name|startswith:'property_' %} {% for property in properties %}{% ifequal field.name property.getNamedId %} - <div class="col-sm-12 col-md-6 col-xl-4"> + {% if property.type == 'L' and forloop.parentloop.counter0 %} + </div> + <div class="row">{% endif %} + <div class="{% if property.type == 'L' %}col-md-12 full{% else %}col-sm-12 col-md-6 col-xl-4{% endif %}"> <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> + {% if property.type == 'L' and forloop.parentloop.counter0 %} + </div> + <div class="row">{% endif %} {% endifequal %}{% endfor %}{% endif %}{% endfor %} </div> </div> |