Initial commit of DEMOS2 with the upgraded 'Create Event' UI. However, there is no input validation currently
This commit is contained in:
commit
7084bd1b16
155 changed files with 8102 additions and 0 deletions
17
allauthdemo/templates/bootstrap3/layout/checkboxselectmultiple.html
Executable file
17
allauthdemo/templates/bootstrap3/layout/checkboxselectmultiple.html
Executable file
|
@ -0,0 +1,17 @@
|
|||
{% load crispy_forms_filters %}
|
||||
{% load l10n %}
|
||||
|
||||
<div class="controls {{ field_class }}"{% if flat_attrs %} {{ flat_attrs|safe }}{% endif %}>
|
||||
{% include 'bootstrap3/layout/field_errors_block.html' %}
|
||||
|
||||
{% for choice in field.field.choices %}
|
||||
|
||||
{% if not inline_class %}<div class="checkbox">{% endif %}
|
||||
<label class="{% if inline_class %}checkbox-{{ inline_class }}{% endif %}">
|
||||
<input type="checkbox"{% if choice.0 in field.value or choice.0|stringformat:"s" in field.value or choice.0|stringformat:"s" == field.value|stringformat:"s" %} checked="checked"{% endif %} name="{{ field.html_name }}" id="id_{{ field.html_name }}_{{ forloop.counter }}" value="{{ choice.0|unlocalize }}" {{ field.field.widget.attrs|flatatt }}>{{ choice.1|unlocalize }}
|
||||
</label>
|
||||
{% if not inline_class %}</div>{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% include 'bootstrap3/layout/help_text.html' %}
|
||||
</div>
|
Reference in a new issue