Merge branch 'develop' of git.divio.com:wwwtagesschule-elementach into develop

This commit is contained in:
2018-03-27 12:39:56 +02:00
2 changed files with 13 additions and 10 deletions

View File

@@ -1,17 +1,15 @@
{% with field.field.widget.input_type as type %}
<div class="form__field{% if label or type == 'checkbox' or type == 'radio' %} form__field--label{% endif %}">
<div style="display: none;">
{{ field.field.widget.input_type }}
{{ field.widget.input_type }}
{{ field.input_type }}
</div>
{% if label or type == 'checkbox' or type == 'radio' %}
{% load util_tags %}
{% with type=field|field_type|upper type_checkbox='CHECKBOXSELECTMULTIPLE' type_radio='RADIOSELECT' %}
<div class="form__field{% if label or type == type_checkbox or type == type_radio %} form__field--label{% endif %}">
{% if label or type == type_checkbox or type == type_radio %}
<label class="form__field__label" for="{{ field.id_for_label }}"><span>{{ field.label }}:</span></label>
{% endif %}
{% if type == 'checkbox' or type == 'radio' %}
{% if type == type_checkbox or type == type_radio %}
{% for value, text in field.field.choices %}
<input type="{{ type }}" value="{{ value }}" name="{{ field.name }}"
<input type="{% if type == type_checkbox %}checkbox{% else %}radio{% endif %}"
value="{{ value }}" name="{{ field.name }}"
id="{{ field.auto_id }}_{{ forloop.counter0 }}">
<label for="{{ field.auto_id }}_{{ forloop.counter0 }}">
<span class="form__field__choice__icon">