Slight style improvement

This commit is contained in:
Joachim Lusiardi 2016-07-18 21:30:06 +02:00
parent fd685c316d
commit 473c2a4f5b
1 changed files with 6 additions and 0 deletions

View File

@ -38,6 +38,12 @@
<option value="{{ choice[0] }}">{{ choice[1] }}</option> <option value="{{ choice[0] }}">{{ choice[1] }}</option>
{% endfor %} {% endfor %}
</select> </select>
{% elif field.type == 'SelectMultipleField' %}
<select id="{{ field.id }}" name="{{ field.id }}" class="form-control" multiple="multiple">
{% for choice in field.choices %}
<option value="{{ choice[0] }}">{{ choice[1] }}</option>
{% endfor %}
</select>
{% elif field.type == 'BooleanField' %} {% elif field.type == 'BooleanField' %}
<input class="form-control" type="checkbox" id="{{ field.id }}" name="{{ field.id }}" value="{{ field.default|none_filter }}" aria-describedby="{{ field.id }}_help" /> <input class="form-control" type="checkbox" id="{{ field.id }}" name="{{ field.id }}" value="{{ field.default|none_filter }}" aria-describedby="{{ field.id }}_help" />
{% elif field.type == 'StringField' %} {% elif field.type == 'StringField' %}