Slight style improvement
This commit is contained in:
parent
fd685c316d
commit
473c2a4f5b
|
@ -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' %}
|
||||||
|
|
Loading…
Reference in New Issue