filter students
This commit is contained in:
4
crispy_forms/templates/bootstrap3/layout/alert.html
Normal file
4
crispy_forms/templates/bootstrap3/layout/alert.html
Normal 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 }}
|
||||
</div>
|
1
crispy_forms/templates/bootstrap3/layout/attrs.html
Normal file
1
crispy_forms/templates/bootstrap3/layout/attrs.html
Normal file
@ -0,0 +1 @@
|
||||
{% for name, value in widget.attrs.items %}{% if value is not False %} {{ name }}{% if value is not True %}="{{ value|stringformat:'s' }}"{% endif %}{% endif %}{% endfor %}
|
9
crispy_forms/templates/bootstrap3/layout/baseinput.html
Normal file
9
crispy_forms/templates/bootstrap3/layout/baseinput.html
Normal 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="{{ input.id }}"
|
||||
{% endif %}
|
||||
{{ input.flat_attrs }}
|
||||
/>
|
1
crispy_forms/templates/bootstrap3/layout/button.html
Normal file
1
crispy_forms/templates/bootstrap3/layout/button.html
Normal file
@ -0,0 +1 @@
|
||||
<button {{ button.flat_attrs }}>{{ button.content }}</button>
|
@ -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 }}
|
||||
</div>
|
@ -0,0 +1,21 @@
|
||||
{% load crispy_forms_filters %}
|
||||
{% load l10n %}
|
||||
|
||||
<div class="controls {{ field_class }}"{% if flat_attrs %} {{ flat_attrs }}{% endif %}>
|
||||
{% include 'bootstrap3/layout/field_errors_block.html' %}
|
||||
|
||||
{% for group, options, index in field|optgroups %}
|
||||
{% if group %}<strong>{{ group }}</strong>{% endif %}
|
||||
{% for option in options %}
|
||||
|
||||
{% if not inline_class %}<div class="checkbox">{% endif %}
|
||||
<label class="{% if inline_class %}checkbox-{{ inline_class }}{% endif %}" for="{{ option.attrs.id }}">
|
||||
<input type="checkbox" name="{{ field.html_name }}" value="{{ option.value|unlocalize }}" {% include "bootstrap3/layout/attrs.html" with widget=option %}>
|
||||
{{ option.label|unlocalize }}
|
||||
</label>
|
||||
{% if not inline_class %}</div>{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
{% include 'bootstrap3/layout/help_text.html' %}
|
||||
</div>
|
@ -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 }}{% if field.field.required %}<span class="asteriskField">*</span>{% endif %}
|
||||
</label>
|
||||
{% endif %}
|
||||
|
||||
{% include 'bootstrap3/layout/checkboxselectmultiple.html' %}
|
||||
</div>
|
||||
{% endif %}
|
3
crispy_forms/templates/bootstrap3/layout/column.html
Normal file
3
crispy_forms/templates/bootstrap3/layout/column.html
Normal file
@ -0,0 +1,3 @@
|
||||
<div {% if div.css_id %}id="{{ div.css_id }}"{% endif %} class="formColumn {{ div.css_class|default:'' }}" {{ div.flat_attrs }}>
|
||||
{{ fields }}
|
||||
</div>
|
4
crispy_forms/templates/bootstrap3/layout/div.html
Normal file
4
crispy_forms/templates/bootstrap3/layout/div.html
Normal 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 }}>
|
||||
{{ fields }}
|
||||
</div>
|
@ -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 %}
|
@ -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 %}
|
@ -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 }}>
|
||||
{% 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 }}{% 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 }}</span>
|
||||
</div>
|
||||
{% include 'bootstrap3/layout/help_text_and_errors.html' %}
|
||||
</div>
|
||||
</div>
|
6
crispy_forms/templates/bootstrap3/layout/fieldset.html
Normal file
6
crispy_forms/templates/bootstrap3/layout/fieldset.html
Normal file
@ -0,0 +1,6 @@
|
||||
<fieldset {% if fieldset.css_id %}id="{{ fieldset.css_id }}"{% endif %}
|
||||
{% if fieldset.css_class %}class="{{ fieldset.css_class }}"{% endif %}
|
||||
{{ fieldset.flat_attrs }}>
|
||||
{% if legend %}<legend>{{ legend }}</legend>{% endif %}
|
||||
{{ fields }}
|
||||
</fieldset>
|
@ -0,0 +1,9 @@
|
||||
<div{% if formactions.flat_attrs %} {{ formactions.flat_attrs }}{% endif %} class="form-group {{ formactions.css_class }}"{% if formactions.id %} id="{{ formactions.id }}"{% endif %}>
|
||||
{% if label_class %}
|
||||
<div class="aab controls {{ label_class }}"></div>
|
||||
{% endif %}
|
||||
|
||||
<div class="controls {{ field_class }}">
|
||||
{{ fields_output }}
|
||||
</div>
|
||||
</div>
|
7
crispy_forms/templates/bootstrap3/layout/help_text.html
Normal file
7
crispy_forms/templates/bootstrap3/layout/help_text.html
Normal 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 %}
|
||||
<div id="hint_{{ field.auto_id }}" class="help-block">{{ field.help_text|safe }}</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
@ -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
crispy_forms/templates/bootstrap3/layout/inline_field.html
Normal file
21
crispy_forms/templates/bootstrap3/layout/inline_field.html
Normal 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{% if wrapper_class %} {{ wrapper_class }}{% endif %}">
|
||||
<label for="{{ field.id_for_label }}" class="{% if field.field.required %} requiredField{% endif %}">
|
||||
{% crispy_field field 'class' 'checkbox' %}
|
||||
{{ field.label }}
|
||||
</label>
|
||||
</div>
|
||||
{% else %}
|
||||
<div id="div_{{ field.auto_id }}" class="form-group{% if wrapper_class %} {{ wrapper_class }}{% endif %}">
|
||||
<label for="{{ field.id_for_label }}" class="sr-only{% if field.field.required %} requiredField{% endif %}">
|
||||
{{ field.label }}
|
||||
</label>
|
||||
{% crispy_field field 'placeholder' field.label %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
15
crispy_forms/templates/bootstrap3/layout/modal.html
Normal file
15
crispy_forms/templates/bootstrap3/layout/modal.html
Normal file
@ -0,0 +1,15 @@
|
||||
<div id="{{ modal.css_id }}" class="modal fade {{ modal.css_class }}" {{ modal.flat_attrs }}>
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title {{ modal.title_class }}" id="{{ modal.title_id }}">{{ modal.title }}</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true" style="float: left">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
{{ fields }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
25
crispy_forms/templates/bootstrap3/layout/multifield.html
Normal file
25
crispy_forms/templates/bootstrap3/layout/multifield.html
Normal file
@ -0,0 +1,25 @@
|
||||
<div {% if multifield.css_id or errors %}id="{{ multifield.css_id }}"{% endif %}
|
||||
{% if multifield.css_class %}class="{{ multifield.css_class }}"{% endif %}
|
||||
{{ multifield.flat_attrs }}>
|
||||
|
||||
{% if form_show_errors %}
|
||||
<div class="alert alert-danger" role="alert">
|
||||
{% for field in multifield.bound_fields %}
|
||||
{% if field.errors %}
|
||||
{% for error in field.errors %}
|
||||
<p id="error_{{ forloop.counter }}_{{ field.auto_id }}">{{ error }}</p>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if multifield.label_html %}
|
||||
<p {% if multifield.label_class %}class="{{ multifield.label_class }}"{% endif %}>{{ multifield.label_html }}</p>
|
||||
{% endif %}
|
||||
|
||||
<div class="multiField">
|
||||
{{ fields_output }}
|
||||
</div>
|
||||
|
||||
</div>
|
@ -0,0 +1,24 @@
|
||||
{% 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 }}{% if field.field.required %}<span class="asteriskField">*</span>{% endif %}
|
||||
</label>
|
||||
{% endif %}
|
||||
|
||||
<div class="controls {{ field_class }}">
|
||||
<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 }}</span>{% endif %}
|
||||
{% crispy_field field 'class' 'form-control' %}
|
||||
{% if crispy_appended_text %}<span class="input-group-addon{% if active %} active{% endif %}{% if input_size %} {{ input_size }}{% endif %}">{{ crispy_appended_text }}</span>{% endif %}
|
||||
</div>
|
||||
|
||||
{% include 'bootstrap3/layout/help_text_and_errors.html' %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
21
crispy_forms/templates/bootstrap3/layout/radioselect.html
Normal file
21
crispy_forms/templates/bootstrap3/layout/radioselect.html
Normal file
@ -0,0 +1,21 @@
|
||||
{% load crispy_forms_filters %}
|
||||
{% load l10n %}
|
||||
|
||||
<div class="controls {{ field_class }}"{% if flat_attrs %} {{ flat_attrs }}{% endif %}>
|
||||
{% include 'bootstrap3/layout/field_errors_block.html' %}
|
||||
|
||||
{% for group, options, index in field|optgroups %}
|
||||
{% if group %}<strong>{{ group }}</strong>{% endif %}
|
||||
{% for option in options %}
|
||||
|
||||
{% if not inline_class %}<div class="radio">{% endif %}
|
||||
<label for="{{ option.attrs.id }}" class="{% if inline_class %}radio-{{ inline_class }}{% endif %}">
|
||||
<input type="radio" name="{{ field.html_name }}" value="{{ option.value|unlocalize }}" {% include "bootstrap3/layout/attrs.html" with widget=option %}>
|
||||
{{ option.label|unlocalize }}
|
||||
</label>
|
||||
{% if not inline_class %}</div>{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
{% include 'bootstrap3/layout/help_text.html' %}
|
||||
</div>
|
@ -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 }}{% if field.field.required %}<span class="asteriskField">*</span>{% endif %}
|
||||
</label>
|
||||
{% endif %}
|
||||
|
||||
{% include 'bootstrap3/layout/radioselect.html' %}
|
||||
</div>
|
||||
{% endif %}
|
3
crispy_forms/templates/bootstrap3/layout/row.html
Normal file
3
crispy_forms/templates/bootstrap3/layout/row.html
Normal file
@ -0,0 +1,3 @@
|
||||
<div {% if div.css_id %}id="{{ div.css_id }}"{% endif %} class="row {{ div.css_class|default:'' }}" {{ div.flat_attrs }}>
|
||||
{{ fields }}
|
||||
</div>
|
1
crispy_forms/templates/bootstrap3/layout/tab-link.html
Normal file
1
crispy_forms/templates/bootstrap3/layout/tab-link.html
Normal 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
crispy_forms/templates/bootstrap3/layout/tab.html
Normal file
6
crispy_forms/templates/bootstrap3/layout/tab.html
Normal file
@ -0,0 +1,6 @@
|
||||
<ul{% if tabs.css_id %} id="{{ tabs.css_id }}"{% endif %} class="nav nav-tabs">
|
||||
{{ links }}
|
||||
</ul>
|
||||
<div class="tab-content panel-body">
|
||||
{{ content }}
|
||||
</div>
|
@ -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 }}{% 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>
|
Reference in New Issue
Block a user