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
21
allauthdemo/templates/bootstrap3/layout/inline_field.html
Executable file
21
allauthdemo/templates/bootstrap3/layout/inline_field.html
Executable file
|
@ -0,0 +1,21 @@
|
|||
{% load crispy_forms_field %}
|
||||
|
||||
{% if field.is_hidden %}
|
||||
{{ field }}
|
||||
{% else %}
|
||||
{% if field|is_checkbox %}
|
||||
<div id="div_{{ field.auto_id }}" class="checkbox">
|
||||
<label for="{{ field.id_for_label }}" class="{% if field.field.required %} requiredField{% endif %}">
|
||||
{% crispy_field field 'class' 'checkbox' %}
|
||||
{{ field.label|safe }}
|
||||
</label>
|
||||
</div>
|
||||
{% else %}
|
||||
<div id="div_{{ field.auto_id }}" class="form-group">
|
||||
<label for="{{ field.id_for_label }}" class="sr-only{% if field.field.required %} requiredField{% endif %}">
|
||||
{{ field.label|safe }}
|
||||
</label>
|
||||
{% crispy_field field 'placeholder' field.label %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
Reference in a new issue