filter students
This commit is contained in:
README.md
app
crispy_forms
LICENSELICENSE.txt__init__.pybase.pybootstrap.pyexceptions.pyhelper.pylayout.pylayout_slice.py
templates
bootstrap3
accordion-group.htmlaccordion.htmlbetterform.htmldisplay_form.htmlerrors.htmlerrors_formset.htmlfield.htmlinputs.html
layout
alert.htmlattrs.htmlbaseinput.htmlbutton.htmlbuttonholder.htmlcheckboxselectmultiple.htmlcheckboxselectmultiple_inline.htmlcolumn.htmldiv.htmlfield_errors.htmlfield_errors_block.htmlfield_with_buttons.htmlfieldset.htmlformactions.htmlhelp_text.htmlhelp_text_and_errors.htmlinline_field.htmlmodal.htmlmultifield.htmlprepended_appended_text.htmlradioselect.htmlradioselect_inline.htmlrow.htmltab-link.htmltab.htmluneditable_input.html
multifield.htmltable_inline_formset.htmluni_form.htmluni_formset.htmlwhole_uni_form.htmlwhole_uni_formset.htmlbootstrap4
accordion-group.htmlaccordion.htmlbetterform.htmldisplay_form.htmlerrors.htmlerrors_formset.htmlfield.htmlinputs.html
layout
alert.htmlattrs.htmlbaseinput.htmlbutton.htmlbuttonholder.htmlcheckboxselectmultiple.htmlcheckboxselectmultiple_inline.htmlcolumn.htmldiv.htmlfield_errors.htmlfield_errors_block.htmlfield_file.htmlfield_with_buttons.htmlfieldset.htmlformactions.htmlhelp_text.htmlhelp_text_and_errors.htmlinline_field.htmlmodal.htmlmultifield.htmlprepended_appended_text.htmlradioselect.htmlradioselect_inline.htmlrow.htmltab-link.htmltab.htmluneditable_input.html
table_inline_formset.htmluni_form.htmluni_formset.htmlwhole_uni_form.htmlwhole_uni_formset.htmltemplatetags
utils.pypuchar
requirements.txttinymce
LICENSE.txt__init__.pycompressor.pymodels.pysettings.pyjquery.tinymce.min.js
static
django_tinymce
tinymce
icons
default
langs
ar.jsbg_BG.jsca.jscs.jscs_CZ.jscy.jsda.jsde.jses.jses_419.jses_ES.jses_MX.jseu.jsfa.jsfa_IR.jsfi.jsfr_FR.jsgl.jshe_IL.jshr.jshu_HU.jsid.jsit.jsit_IT.jsja.jskab.jskk.jsko_KR.jslt.jsnb_NO.jsnl.jsnl_BE.jspl.jspt_BR.jspt_PT.jsreadme.mdro.jsro_RO.jsru.jsru_RU.jssk.jssl.jssl_SI.jssq.jssv_SE.jsta.jsta_IN.jsth_TH.jstr.jstr_TR.jsug.jsuk.jszh_CN.jszh_TW.js
license.txtplugins
advlist
anchor
autolink
autoresize
autosave
bbcode
charmap
code
codesample
colorpicker
contextmenu
directionality
emoticons
fullpage
fullscreen
help
hr
image
imagetools
importcss
insertdatetime
legacyoutput
link
lists
nonbreaking
noneditable
pagebreak
paste
preview
print
quickbars
save
searchreplace
spellchecker
tabfocus
table
template
textcolor
textpattern
toc
visualblocks
visualchars
wordcount
skins
content
ui
themes
tinymce.d.tstinymce.min.jstemplates
urls.pyviews.pywidgets.py
81
crispy_forms/templates/bootstrap4/field.html
Normal file
81
crispy_forms/templates/bootstrap4/field.html
Normal file
@ -0,0 +1,81 @@
|
||||
{% load crispy_forms_field %}
|
||||
|
||||
{% if field.is_hidden %}
|
||||
{{ field }}
|
||||
{% else %}
|
||||
{% if field|is_checkbox %}
|
||||
<div class="form-group{% if 'form-horizontal' in form_class %} row{% endif %}">
|
||||
{% if label_class %}
|
||||
<div class="{% for offset in bootstrap_checkbox_offsets %}{{ offset }} {% endfor %}{{ field_class }}">
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<{% if tag %}{{ tag }}{% else %}div{% endif %} id="div_{{ field.auto_id }}" class="{% if not field|is_checkbox %}form-group{% if 'form-horizontal' in form_class %} row{% endif %}{% else %}{%if use_custom_control%}{% if tag != 'td' %}custom-control {%endif%} custom-checkbox{% else %}form-check{% endif %}{% endif %}{% if wrapper_class %} {{ wrapper_class }}{% endif %}{% if field.css_classes %} {{ field.css_classes }}{% endif %}">
|
||||
{% if field.label and not field|is_checkbox and form_show_labels %}
|
||||
{# not field|is_radioselect in row below can be removed once Django 3.2 is no longer supported #}
|
||||
<label {% if field.id_for_label and not field|is_radioselect %}for="{{ field.id_for_label }}" {% endif %}class="{% if 'form-horizontal' in form_class %}col-form-label {% endif %}{{ label_class }}{% if field.field.required %} requiredField{% endif %}">
|
||||
{{ field.label }}{% if field.field.required %}<span class="asteriskField">*</span>{% endif %}
|
||||
</label>
|
||||
{% endif %}
|
||||
|
||||
{% if field|is_checkboxselectmultiple %}
|
||||
{% include 'bootstrap4/layout/checkboxselectmultiple.html' %}
|
||||
{% endif %}
|
||||
|
||||
{% if field|is_radioselect %}
|
||||
{% include 'bootstrap4/layout/radioselect.html' %}
|
||||
{% endif %}
|
||||
|
||||
{% if not field|is_checkboxselectmultiple and not field|is_radioselect %}
|
||||
{% if field|is_checkbox and form_show_labels %}
|
||||
{%if use_custom_control%}
|
||||
{% if field.errors %}
|
||||
{% crispy_field field 'class' 'custom-control-input is-invalid' %}
|
||||
{% else %}
|
||||
{% crispy_field field 'class' 'custom-control-input' %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if field.errors %}
|
||||
{% crispy_field field 'class' 'form-check-input is-invalid' %}
|
||||
{% else %}
|
||||
{% crispy_field field 'class' 'form-check-input' %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<label for="{{ field.id_for_label }}" class="{%if use_custom_control%}custom-control-label{% else %}form-check-label{% endif %}{% if field.field.required %} requiredField{% endif %}">
|
||||
{{ field.label }}{% if field.field.required %}<span class="asteriskField">*</span>{% endif %}
|
||||
</label>
|
||||
{% include 'bootstrap4/layout/help_text_and_errors.html' %}
|
||||
{% elif field|is_file and use_custom_control %}
|
||||
{% include 'bootstrap4/layout/field_file.html' %}
|
||||
{% else %}
|
||||
<div{% if field_class %} class="{{ field_class }}"{% endif %}>
|
||||
{% if field|is_select and use_custom_control %}
|
||||
{% if field.errors %}
|
||||
{% crispy_field field 'class' 'custom-select is-invalid' %}
|
||||
{% else %}
|
||||
{% crispy_field field 'class' 'custom-select' %}
|
||||
{% endif %}
|
||||
{% elif field|is_file %}
|
||||
{% if field.errors %}
|
||||
{% crispy_field field 'class' 'form-control-file is-invalid' %}
|
||||
{% else %}
|
||||
{% crispy_field field 'class' 'form-control-file' %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if field.errors %}
|
||||
{% crispy_field field 'class' 'form-control is-invalid' %}
|
||||
{% else %}
|
||||
{% crispy_field field 'class' 'form-control' %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% include 'bootstrap4/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 %}
|
Reference in New Issue
Block a user