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
12
allauthdemo/templates/bootstrap3/accordion-group.html
Executable file
12
allauthdemo/templates/bootstrap3/accordion-group.html
Executable file
|
@ -0,0 +1,12 @@
|
|||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h4 class="panel-title">
|
||||
<a class="accordion-toggle" data-toggle="collapse" data-parent="#{{ div.data_parent }}" href="#{{ div.css_id }}">{{ div.name }}</a>
|
||||
</h4>
|
||||
</div>
|
||||
<div id="{{ div.css_id }}" class="panel-collapse collapse{% if div.active %} in{% endif %}" >
|
||||
<div class="panel-body">
|
||||
{{ fields|safe }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
3
allauthdemo/templates/bootstrap3/accordion.html
Executable file
3
allauthdemo/templates/bootstrap3/accordion.html
Executable file
|
@ -0,0 +1,3 @@
|
|||
<div class="panel-group" id="{{ accordion.css_id }}">
|
||||
{{ content|safe }}
|
||||
</div>
|
22
allauthdemo/templates/bootstrap3/betterform.html
Executable file
22
allauthdemo/templates/bootstrap3/betterform.html
Executable file
|
@ -0,0 +1,22 @@
|
|||
{% for fieldset in form.fieldsets %}
|
||||
<fieldset class="fieldset-{{ forloop.counter }} {{ fieldset.classes }}">
|
||||
{% if fieldset.legend %}
|
||||
<legend>{{ fieldset.legend }}</legend>
|
||||
{% endif %}
|
||||
|
||||
{% if fieldset.description %}
|
||||
<p class="description">{{ fieldset.description }}</p>
|
||||
{% endif %}
|
||||
|
||||
{% for field in fieldset %}
|
||||
{% if field.is_hidden %}
|
||||
{{ field }}
|
||||
{% else %}
|
||||
{% include "bootstrap3/field.html" %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if not forloop.last or not fieldset_open %}
|
||||
</fieldset>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
9
allauthdemo/templates/bootstrap3/display_form.html
Executable file
9
allauthdemo/templates/bootstrap3/display_form.html
Executable file
|
@ -0,0 +1,9 @@
|
|||
{% if form.form_html %}
|
||||
{% if include_media %}{{ form.media }}{% endif %}
|
||||
{% if form_show_errors %}
|
||||
{% include "bootstrap3/errors.html" %}
|
||||
{% endif %}
|
||||
{{ form.form_html }}
|
||||
{% else %}
|
||||
{% include "bootstrap3/uni_form.html" %}
|
||||
{% endif %}
|
8
allauthdemo/templates/bootstrap3/errors.html
Executable file
8
allauthdemo/templates/bootstrap3/errors.html
Executable file
|
@ -0,0 +1,8 @@
|
|||
{% if form.non_field_errors %}
|
||||
<div class="alert alert-block alert-danger">
|
||||
{% if form_error_title %}<h4 class="alert-heading">{{ form_error_title }}</h4>{% endif %}
|
||||
<ul>
|
||||
{{ form.non_field_errors|unordered_list }}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
9
allauthdemo/templates/bootstrap3/errors_formset.html
Executable file
9
allauthdemo/templates/bootstrap3/errors_formset.html
Executable file
|
@ -0,0 +1,9 @@
|
|||
{% if formset.non_form_errors %}
|
||||
<div class="alert alert-block alert-danger">
|
||||
{% if formset_error_title %}<h4 class="alert-heading">{{ formset_error_title }}</h4>{% endif %}
|
||||
<ul>
|
||||
{{ formset.non_form_errors|unordered_list }}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
48
allauthdemo/templates/bootstrap3/field.html
Executable file
48
allauthdemo/templates/bootstrap3/field.html
Executable file
|
@ -0,0 +1,48 @@
|
|||
{% load crispy_forms_field %}
|
||||
|
||||
{% if field.is_hidden %}
|
||||
{{ field }}
|
||||
{% else %}
|
||||
{% if field|is_checkbox %}
|
||||
<div class="form-group">
|
||||
{% if label_class %}
|
||||
<div class="controls col-{{ bootstrap_device_type }}-offset-{{ label_size }} {{ field_class }}">
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<{% if tag %}{{ tag }}{% else %}div{% endif %} id="div_{{ field.auto_id }}" {% if not field|is_checkbox %}class="form-group{% else %}class="checkbox{% endif %}{% if wrapper_class %} {{ wrapper_class }}{% endif %}{% if form_show_errors%}{% if field.errors %} has-error{% endif %}{% endif %}{% if field.css_classes %} {{ field.css_classes }}{% endif %}">
|
||||
{% if field.label and not field|is_checkbox and form_show_labels %}
|
||||
<label for="{{ field.id_for_label }}" class="control-label {{ label_class }}{% if field.field.required %} requiredField{% endif %}">
|
||||
{{ field.label|safe }}{% if field.field.required %}<span class="asteriskField">*</span>{% endif %}
|
||||
</label>
|
||||
{% endif %}
|
||||
|
||||
{% if field|is_checkboxselectmultiple %}
|
||||
{% include 'bootstrap3/layout/checkboxselectmultiple.html' %}
|
||||
{% endif %}
|
||||
|
||||
{% if field|is_radioselect %}
|
||||
{% include 'bootstrap3/layout/radioselect.html' %}
|
||||
{% endif %}
|
||||
|
||||
{% if not field|is_checkboxselectmultiple and not field|is_radioselect %}
|
||||
{% if field|is_checkbox and form_show_labels %}
|
||||
<label for="{{ field.id_for_label }}" class="{% if field.field.required %} requiredField{% endif %}">
|
||||
{% crispy_field field %}
|
||||
{{ field.label|safe }}
|
||||
{% include 'bootstrap3/layout/help_text_and_errors.html' %}
|
||||
</label>
|
||||
{% else %}
|
||||
<div class="controls {{ field_class }}">
|
||||
{% crispy_field field %}
|
||||
{% include 'bootstrap3/layout/help_text_and_errors.html' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</{% if tag %}{{ tag }}{% else %}div{% endif %}>
|
||||
{% if field|is_checkbox %}
|
||||
{% if label_class %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
13
allauthdemo/templates/bootstrap3/inputs.html
Executable file
13
allauthdemo/templates/bootstrap3/inputs.html
Executable file
|
@ -0,0 +1,13 @@
|
|||
{% if inputs %}
|
||||
<div class="form-group">
|
||||
{% if label_class %}
|
||||
<div class="aab controls {{ label_class }}"></div>
|
||||
{% endif %}
|
||||
|
||||
<div class="controls {{ field_class }}">
|
||||
{% for input in inputs %}
|
||||
{% include "bootstrap3/layout/baseinput.html" %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
4
allauthdemo/templates/bootstrap3/layout/alert.html
Executable file
4
allauthdemo/templates/bootstrap3/layout/alert.html
Executable file
|
@ -0,0 +1,4 @@
|
|||
<div{% if alert.css_id %} id="{{ alert.css_id }}"{% endif %}{% if alert.css_class %} class="{{ alert.css_class }}"{% endif %}>
|
||||
{% if dismiss %}<button type="button" class="close" data-dismiss="alert">×</button>{% endif %}
|
||||
{{ content|safe }}
|
||||
</div>
|
9
allauthdemo/templates/bootstrap3/layout/baseinput.html
Executable file
9
allauthdemo/templates/bootstrap3/layout/baseinput.html
Executable file
|
@ -0,0 +1,9 @@
|
|||
<input type="{{ input.input_type }}"
|
||||
name="{% if input.name|wordcount > 1 %}{{ input.name|slugify }}{% else %}{{ input.name }}{% endif %}"
|
||||
value="{{ input.value }}"
|
||||
{% if input.input_type != "hidden" %}
|
||||
class="{{ input.field_classes }}"
|
||||
id="{% if input.id %}{{ input.id }}{% else %}{{ input.input_type }}-id-{{ input.name|slugify }}{% endif %}"
|
||||
{% endif %}
|
||||
{{ input.flat_attrs|safe }}
|
||||
/>
|
1
allauthdemo/templates/bootstrap3/layout/button.html
Executable file
1
allauthdemo/templates/bootstrap3/layout/button.html
Executable file
|
@ -0,0 +1 @@
|
|||
<button {{ button.flat_attrs|safe }}>{{ button.content|safe }}</button>
|
4
allauthdemo/templates/bootstrap3/layout/buttonholder.html
Executable file
4
allauthdemo/templates/bootstrap3/layout/buttonholder.html
Executable file
|
@ -0,0 +1,4 @@
|
|||
<div {% if buttonholder.css_id %}id="{{ buttonholder.css_id }}"{% endif %}
|
||||
class="buttonHolder{% if buttonholder.css_class %} {{ buttonholder.css_class }}{% endif %}">
|
||||
{{ fields_output|safe }}
|
||||
</div>
|
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>
|
14
allauthdemo/templates/bootstrap3/layout/checkboxselectmultiple_inline.html
Executable file
14
allauthdemo/templates/bootstrap3/layout/checkboxselectmultiple_inline.html
Executable file
|
@ -0,0 +1,14 @@
|
|||
{% if field.is_hidden %}
|
||||
{{ field }}
|
||||
{% else %}
|
||||
<div id="div_{{ field.auto_id }}" class="form-group{% if form_show_errors and field.errors %} has-error{% endif %}{% if field.css_classes %} {{ field.css_classes }}{% endif %}">
|
||||
|
||||
{% if field.label %}
|
||||
<label for="{{ field.auto_id }}" class="control-label {{ label_class }}{% if field.field.required %} requiredField{% endif %}">
|
||||
{{ field.label|safe }}{% if field.field.required %}<span class="asteriskField">*</span>{% endif %}
|
||||
</label>
|
||||
{% endif %}
|
||||
|
||||
{% include 'bootstrap3/layout/checkboxselectmultiple.html' %}
|
||||
</div>
|
||||
{% endif %}
|
4
allauthdemo/templates/bootstrap3/layout/div.html
Executable file
4
allauthdemo/templates/bootstrap3/layout/div.html
Executable file
|
@ -0,0 +1,4 @@
|
|||
<div {% if div.css_id %}id="{{ div.css_id }}"{% endif %}
|
||||
{% if div.css_class %}class="{{ div.css_class }}"{% endif %} {{ div.flat_attrs|safe }}>
|
||||
{{ fields|safe }}
|
||||
</div>
|
5
allauthdemo/templates/bootstrap3/layout/field_errors.html
Executable file
5
allauthdemo/templates/bootstrap3/layout/field_errors.html
Executable file
|
@ -0,0 +1,5 @@
|
|||
{% if form_show_errors and field.errors %}
|
||||
{% for error in field.errors %}
|
||||
<span id="error_{{ forloop.counter }}_{{ field.auto_id }}" class="help-block"><strong>{{ error }}</strong></span>
|
||||
{% endfor %}
|
||||
{% endif %}
|
5
allauthdemo/templates/bootstrap3/layout/field_errors_block.html
Executable file
5
allauthdemo/templates/bootstrap3/layout/field_errors_block.html
Executable file
|
@ -0,0 +1,5 @@
|
|||
{% if form_show_errors and field.errors %}
|
||||
{% for error in field.errors %}
|
||||
<p id="error_{{ forloop.counter }}_{{ field.auto_id }}" class="help-block"><strong>{{ error }}</strong></p>
|
||||
{% endfor %}
|
||||
{% endif %}
|
17
allauthdemo/templates/bootstrap3/layout/field_with_buttons.html
Executable file
17
allauthdemo/templates/bootstrap3/layout/field_with_buttons.html
Executable file
|
@ -0,0 +1,17 @@
|
|||
{% load crispy_forms_field %}
|
||||
|
||||
<div{% if div.css_id %} id="{{ div.css_id }}"{% endif %} class="form-group{% if form_show_errors and field.errors %} has-error{% endif %}{% if field.css_classes %} {{ field.css_classes }}{% endif %}{% if div.css_class %} {{ div.css_class }}{% endif %}" {{ div.flat_attrs|safe }}>
|
||||
{% if field.label and form_show_labels %}
|
||||
<label for="{{ field.id_for_label }}" class="control-label {{ label_class }}{% if field.field.required %} requiredField{% endif %}">
|
||||
{{ field.label|safe }}{% if field.field.required %}<span class="asteriskField">*</span>{% endif %}
|
||||
</label>
|
||||
{% endif %}
|
||||
|
||||
<div class="controls {{ field_class }}">
|
||||
<div class="input-group">
|
||||
{% crispy_field field %}
|
||||
<span class="input-group-btn{% if active %} active{% endif %}{% if input_size %} {{ input_size }}{% endif %}">{{ buttons|safe }}</span>
|
||||
</div>
|
||||
{% include 'bootstrap3/layout/help_text_and_errors.html' %}
|
||||
</div>
|
||||
</div>
|
6
allauthdemo/templates/bootstrap3/layout/fieldset.html
Executable file
6
allauthdemo/templates/bootstrap3/layout/fieldset.html
Executable file
|
@ -0,0 +1,6 @@
|
|||
<fieldset {% if fieldset.css_id %}id="{{ fieldset.css_id }}"{% endif %}
|
||||
{% if fieldset.css_class or form_style %}class="{{ fieldset.css_class }} {{ form_style }}"{% endif %}
|
||||
{{ fieldset.flat_attrs|safe }}>
|
||||
{% if legend %}<legend>{{ legend|safe }}</legend>{% endif %}
|
||||
{{ fields|safe }}
|
||||
</fieldset>
|
9
allauthdemo/templates/bootstrap3/layout/formactions.html
Executable file
9
allauthdemo/templates/bootstrap3/layout/formactions.html
Executable file
|
@ -0,0 +1,9 @@
|
|||
<div{% if formactions.attrs %} {{ formactions.flat_attrs|safe }}{% endif %} class="form-group">
|
||||
{% if label_class %}
|
||||
<div class="aab controls {{ label_class }}"></div>
|
||||
{% endif %}
|
||||
|
||||
<div class="controls {{ field_class }}">
|
||||
{{ fields_output|safe }}
|
||||
</div>
|
||||
</div>
|
7
allauthdemo/templates/bootstrap3/layout/help_text.html
Executable file
7
allauthdemo/templates/bootstrap3/layout/help_text.html
Executable file
|
@ -0,0 +1,7 @@
|
|||
{% if field.help_text %}
|
||||
{% if help_text_inline %}
|
||||
<span id="hint_{{ field.auto_id }}" class="help-block">{{ field.help_text|safe }}</span>
|
||||
{% else %}
|
||||
<p id="hint_{{ field.auto_id }}" class="help-block">{{ field.help_text|safe }}</p>
|
||||
{% endif %}
|
||||
{% endif %}
|
13
allauthdemo/templates/bootstrap3/layout/help_text_and_errors.html
Executable file
13
allauthdemo/templates/bootstrap3/layout/help_text_and_errors.html
Executable file
|
@ -0,0 +1,13 @@
|
|||
{% if help_text_inline and not error_text_inline %}
|
||||
{% include 'bootstrap3/layout/help_text.html' %}
|
||||
{% endif %}
|
||||
|
||||
{% if error_text_inline %}
|
||||
{% include 'bootstrap3/layout/field_errors.html' %}
|
||||
{% else %}
|
||||
{% include 'bootstrap3/layout/field_errors_block.html' %}
|
||||
{% endif %}
|
||||
|
||||
{% if not help_text_inline %}
|
||||
{% include 'bootstrap3/layout/help_text.html' %}
|
||||
{% endif %}
|
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 %}
|
27
allauthdemo/templates/bootstrap3/layout/multifield.html
Executable file
27
allauthdemo/templates/bootstrap3/layout/multifield.html
Executable file
|
@ -0,0 +1,27 @@
|
|||
{% load crispy_forms_field %}
|
||||
|
||||
{% if field.is_hidden %}
|
||||
{{ field }}
|
||||
{% else %}
|
||||
|
||||
{% if field.label %}
|
||||
<label for="{{ field.id_for_label }}"{% if labelclass %} class="{{ labelclass }}"{% endif %}>
|
||||
{% endif %}
|
||||
|
||||
{% if field|is_checkbox %}
|
||||
{% crispy_field field %}
|
||||
{% endif %}
|
||||
|
||||
{% if field.label %}
|
||||
{{ field.label }}
|
||||
{% endif %}
|
||||
|
||||
{% if not field|is_checkbox %}
|
||||
{% crispy_field field %}
|
||||
{% endif %}
|
||||
|
||||
{% if field.label %}
|
||||
</label>
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
30
allauthdemo/templates/bootstrap3/layout/prepended_appended_text.html
Executable file
30
allauthdemo/templates/bootstrap3/layout/prepended_appended_text.html
Executable file
|
@ -0,0 +1,30 @@
|
|||
{% load crispy_forms_field %}
|
||||
|
||||
{% if field.is_hidden %}
|
||||
{{ field }}
|
||||
{% else %}
|
||||
<div id="div_{{ field.auto_id }}" class="form-group{% if wrapper_class %} {{ wrapper_class }}{% endif %}{% if form_show_errors and field.errors %} has-error{% endif %}{% if field.css_classes %} {{ field.css_classes }}{% endif %}">
|
||||
|
||||
{% if field.label and form_show_labels %}
|
||||
<label for="{{ field.id_for_label }}" class="control-label {{ label_class }}{% if field.field.required %} requiredField{% endif %}">
|
||||
{{ field.label|safe }}{% if field.field.required %}<span class="asteriskField">*</span>{% endif %}
|
||||
</label>
|
||||
{% endif %}
|
||||
|
||||
<div class="controls {{ field_class }}">
|
||||
{% if field|is_select %}
|
||||
{% if crispy_prepended_text %}<span class="input-group{% if active %} active{% endif %}{% if input_size %} {{ input_size }}{% endif %}">{{ crispy_prepended_text|safe }}</span>{% endif %}
|
||||
{% crispy_field field %}
|
||||
{% if crispy_appended_text %}<span class="input-group{% if active %} active{% endif %}{% if input_size %} {{ input_size }}{% endif %}">{{ crispy_appended_text|safe }}</span>{% endif %}
|
||||
{% else %}
|
||||
<div class="input-group">
|
||||
{% if crispy_prepended_text %}<span class="input-group-addon{% if active %} active{% endif %}{% if input_size %} {{ input_size }}{% endif %}">{{ crispy_prepended_text|safe }}</span>{% endif %}
|
||||
{% crispy_field field %}
|
||||
{% if crispy_appended_text %}<span class="input-group-addon{% if active %} active{% endif %}{% if input_size %} {{ input_size }}{% endif %}">{{ crispy_appended_text|safe }}</span>{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% include 'bootstrap3/layout/help_text_and_errors.html' %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
16
allauthdemo/templates/bootstrap3/layout/radioselect.html
Executable file
16
allauthdemo/templates/bootstrap3/layout/radioselect.html
Executable file
|
@ -0,0 +1,16 @@
|
|||
{% 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="radio">{% endif %}
|
||||
<label class="{% if inline_class %}radio-{{ inline_class }}{% endif %}">
|
||||
<input type="radio"{% if 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>
|
14
allauthdemo/templates/bootstrap3/layout/radioselect_inline.html
Executable file
14
allauthdemo/templates/bootstrap3/layout/radioselect_inline.html
Executable file
|
@ -0,0 +1,14 @@
|
|||
{% if field.is_hidden %}
|
||||
{{ field }}
|
||||
{% else %}
|
||||
<div id="div_{{ field.auto_id }}" class="form-group{% if wrapper_class %} {{ wrapper_class }}{% endif %}{% if form_show_errors and field.errors %} has-error{% endif %}{% if field.css_classes %} {{ field.css_classes }}{% endif %}">
|
||||
|
||||
{% if field.label %}
|
||||
<label for="{{ field.auto_id }}" class="control-label {{ label_class }}{% if field.field.required %} requiredField{% endif %}">
|
||||
{{ field.label|safe }}{% if field.field.required %}<span class="asteriskField">*</span>{% endif %}
|
||||
</label>
|
||||
{% endif %}
|
||||
|
||||
{% include 'bootstrap3/layout/radioselect.html' %}
|
||||
</div>
|
||||
{% endif %}
|
1
allauthdemo/templates/bootstrap3/layout/tab-link.html
Executable file
1
allauthdemo/templates/bootstrap3/layout/tab-link.html
Executable file
|
@ -0,0 +1 @@
|
|||
<li class="tab-pane{% if 'active' in link.css_class %} active{% endif %}"><a href="#{{ link.css_id }}" data-toggle="tab">{{ link.name|capfirst }}{% if tab.errors %}!{% endif %}</a></li>
|
6
allauthdemo/templates/bootstrap3/layout/tab.html
Executable file
6
allauthdemo/templates/bootstrap3/layout/tab.html
Executable file
|
@ -0,0 +1,6 @@
|
|||
<ul{% if tabs.css_id %} id="{{ tabs.css_id }}"{% endif %} class="nav nav-tabs">
|
||||
{{ links|safe }}
|
||||
</ul>
|
||||
<div class="tab-content panel-body">
|
||||
{{ content|safe }}
|
||||
</div>
|
10
allauthdemo/templates/bootstrap3/layout/uneditable_input.html
Executable file
10
allauthdemo/templates/bootstrap3/layout/uneditable_input.html
Executable file
|
@ -0,0 +1,10 @@
|
|||
{% load crispy_forms_field %}
|
||||
|
||||
|
||||
<div id="div_{{ field.auto_id }}" class="form-group{% if form_show_errors and field.errors %} error{% endif %}{% if field.css_classes %} {{ field.css_classes }}{% endif %}">
|
||||
<label class="control-label {{ label_class }}{% if field.field.required %} requiredField{% endif %}">{{ field.label|safe }}{% if field.field.required %}<span class="asteriskField">*</span>{% endif %}</label>
|
||||
<div class="controls {{ field_class }}">
|
||||
{% crispy_field field 'disabled' 'disabled' %}
|
||||
{% include 'bootstrap3/layout/help_text.html' %}
|
||||
</div>
|
||||
</div>
|
51
allauthdemo/templates/bootstrap3/table_inline_formset.html
Executable file
51
allauthdemo/templates/bootstrap3/table_inline_formset.html
Executable file
|
@ -0,0 +1,51 @@
|
|||
{% load crispy_forms_tags %}
|
||||
{% load crispy_forms_utils %}
|
||||
{% load crispy_forms_field %}
|
||||
|
||||
{% specialspaceless %}
|
||||
{% if formset_tag %}
|
||||
<form {{ flat_attrs|safe }} method="{{ form_method }}" {% if formset.is_multipart %} enctype="multipart/form-data"{% endif %}>
|
||||
{% endif %}
|
||||
{% if formset_method|lower == 'post' and not disable_csrf %}
|
||||
{% csrf_token %}
|
||||
{% endif %}
|
||||
|
||||
<div>
|
||||
{{ formset.management_form|crispy }}
|
||||
</div>
|
||||
|
||||
<table{% if form_id %} id="{{ form_id }}_table"{% endif%} class="table table-striped table-condensed">
|
||||
<thead>
|
||||
{% if formset.readonly and not formset.queryset.exists %}
|
||||
{% else %}
|
||||
<tr>
|
||||
{% for field in formset.forms.0 %}
|
||||
{% if field.label and not field|is_checkbox and not field.is_hidden %}
|
||||
<th for="{{ field.auto_id }}" class="control-label {% if field.field.required %}requiredField{% endif %}">
|
||||
{{ field.label|safe }}{% if field.field.required %}<span class="asteriskField">*</span>{% endif %}
|
||||
</th>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% endif %}
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{% for form in formset %}
|
||||
{% if form_show_errors and not form.is_extra %}
|
||||
{% include "bootstrap3/errors.html" %}
|
||||
{% endif %}
|
||||
|
||||
<tr>
|
||||
{% for field in form %}
|
||||
{% include 'bootstrap3/field.html' with tag="td" form_show_labels=False %}
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{% include "bootstrap3/inputs.html" %}
|
||||
|
||||
{% if formset_tag %}</form>{% endif %}
|
||||
{% endspecialspaceless %}
|
11
allauthdemo/templates/bootstrap3/uni_form.html
Executable file
11
allauthdemo/templates/bootstrap3/uni_form.html
Executable file
|
@ -0,0 +1,11 @@
|
|||
{% load crispy_forms_utils %}
|
||||
|
||||
{% specialspaceless %}
|
||||
{% if include_media %}{{ form.media }}{% endif %}
|
||||
{% if form_show_errors %}
|
||||
{% include "bootstrap3/errors.html" %}
|
||||
{% endif %}
|
||||
{% for field in form %}
|
||||
{% include "bootstrap3/field.html" %}
|
||||
{% endfor %}
|
||||
{% endspecialspaceless %}
|
8
allauthdemo/templates/bootstrap3/uni_formset.html
Executable file
8
allauthdemo/templates/bootstrap3/uni_formset.html
Executable file
|
@ -0,0 +1,8 @@
|
|||
{% with formset.management_form as form %}
|
||||
{% include 'bootstrap3/uni_form.html' %}
|
||||
{% endwith %}
|
||||
{% for form in formset %}
|
||||
<div class="multiField">
|
||||
{% include 'bootstrap3/uni_form.html' %}
|
||||
</div>
|
||||
{% endfor %}
|
14
allauthdemo/templates/bootstrap3/whole_uni_form.html
Executable file
14
allauthdemo/templates/bootstrap3/whole_uni_form.html
Executable file
|
@ -0,0 +1,14 @@
|
|||
{% load crispy_forms_utils %}
|
||||
|
||||
{% specialspaceless %}
|
||||
{% if form_tag %}<form {{ flat_attrs|safe }} method="{{ form_method }}" {% if form.is_multipart %} enctype="multipart/form-data"{% endif %}>{% endif %}
|
||||
{% if form_method|lower == 'post' and not disable_csrf %}
|
||||
{% csrf_token %}
|
||||
{% endif %}
|
||||
|
||||
{% include "bootstrap3/display_form.html" %}
|
||||
|
||||
{% include "bootstrap3/inputs.html" %}
|
||||
|
||||
{% if form_tag %}</form>{% endif %}
|
||||
{% endspecialspaceless %}
|
30
allauthdemo/templates/bootstrap3/whole_uni_formset.html
Executable file
30
allauthdemo/templates/bootstrap3/whole_uni_formset.html
Executable file
|
@ -0,0 +1,30 @@
|
|||
{% load crispy_forms_tags %}
|
||||
{% load crispy_forms_utils %}
|
||||
|
||||
{% specialspaceless %}
|
||||
{% if formset_tag %}
|
||||
<form {{ flat_attrs|safe }} method="{{ form_method }}" {% if formset.is_multipart %} enctype="multipart/form-data"{% endif %}>
|
||||
{% endif %}
|
||||
{% if formset_method|lower == 'post' and not disable_csrf %}
|
||||
{% csrf_token %}
|
||||
{% endif %}
|
||||
|
||||
<div>
|
||||
{{ formset.management_form|crispy }}
|
||||
</div>
|
||||
|
||||
{% include "bootstrap3/errors_formset.html" %}
|
||||
|
||||
{% for form in formset %}
|
||||
{% include "bootstrap3/display_form.html" %}
|
||||
{% endfor %}
|
||||
|
||||
{% if inputs %}
|
||||
<div class="form-actions">
|
||||
{% for input in inputs %}
|
||||
{% include "bootstrap3/layout/baseinput.html" %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if formset_tag %}</form>{% endif %}
|
||||
{% endspecialspaceless %}
|
Reference in a new issue