diff options
| author | Étienne Loks <etienne@peacefrogs.net> | 2019-08-04 18:27:02 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne@peacefrogs.net> | 2019-08-04 18:27:02 +0200 |
| commit | 9e90b94b755d8d3fd19add3864a79ff8210be77e (patch) | |
| tree | 9e747e6cea258320707d5bca16d30db476337858 /chimere/templates | |
| parent | 710b02aca2a27cf16452aea209c418c670cc9f92 (diff) | |
| download | Chimère-9e90b94b755d8d3fd19add3864a79ff8210be77e.tar.bz2 Chimère-9e90b94b755d8d3fd19add3864a79ff8210be77e.zip | |
Fix BS CSS for forms
Diffstat (limited to 'chimere/templates')
| -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> |
