mirror of
https://github.com/Hopiu/django-fobi.git
synced 2026-05-23 03:35:50 +00:00
hidden_form_element_wrapper_html_class -> form_element_wrapper_hidden_html_class
This commit is contained in:
parent
19aedd6ab2
commit
0080a47bc5
9 changed files with 13 additions and 21 deletions
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
{% block form_element_wrapper_html_class %}form-group{% endblock %}
|
||||
|
||||
{% block hidden_form_element_error_html_class%}has-error{% endblock %}
|
||||
{% block form_element_wrapper_error_html_class %}has-error{% endblock %}
|
||||
|
||||
{% block form_checkbox_element_field_wrapper_html_class %}col-sm-offset-2 col-sm-9{% endblock %}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
{% block form_element_wrapper_html_class %}form-group{% endblock %}
|
||||
|
||||
{% block form_element_wrapper_error_html_class%}has-error{% endblock %}
|
||||
{% block form_element_wrapper_error_html_class %}has-error{% endblock %}
|
||||
|
||||
{% block form_element_label_html_class %}col-sm-3 control-label{% endblock %}
|
||||
|
||||
|
|
@ -19,5 +19,3 @@
|
|||
{% block form_element_error_html_class %}help-block has-error{% endblock %}
|
||||
|
||||
{% block form_element_help_text_html_class %}help-block{% endblock %}
|
||||
|
||||
{% block hidden_form_element_wrapper_html_class %}form-group{% endblock %}
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
|
||||
{% block form_element_wrapper_html_class %}form-group{% endblock %}
|
||||
|
||||
{% block hidden_form_element_error_html_class%}has-error{% endblock %}
|
||||
|
||||
{% block form_checkbox_element_field_wrapper_html_class %}col-sm-offset-2 col-sm-9{% endblock %}
|
||||
|
||||
{% block form_element_label_html_class %}col-sm-3 control-label{% endblock %}
|
||||
|
|
|
|||
|
|
@ -19,5 +19,3 @@
|
|||
{% block form_element_error_html_class %}help-block has-error{% endblock %}
|
||||
|
||||
{% block form_element_help_text_html_class %}help-block{% endblock %}
|
||||
|
||||
{% block hidden_form_element_wrapper_html_class %}form-group{% endblock %}
|
||||
|
|
|
|||
|
|
@ -19,5 +19,3 @@
|
|||
{% block form_element_error_html_class %}help-block has-error{% endblock %}
|
||||
|
||||
{% block form_element_help_text_html_class %}help-block{% endblock %}
|
||||
|
||||
{% block hidden_form_element_wrapper_html_class %}form-group{% endblock %}
|
||||
|
|
|
|||
|
|
@ -19,5 +19,3 @@
|
|||
{% block form_element_error_html_class %}help-block has-error{% endblock %}
|
||||
|
||||
{% block form_element_help_text_html_class %}help-block{% endblock %}
|
||||
|
||||
{% block hidden_form_element_wrapper_html_class %}form-group{% endblock %}
|
||||
|
|
|
|||
|
|
@ -4,18 +4,18 @@
|
|||
<div class="{% block form_required_fields_message_wrapper_class %}{% endblock %}">
|
||||
{% blocktrans %}Fields marked with <span class="required-field">*</span> are required{% endblocktrans %}
|
||||
</div>
|
||||
{% endblock form_required_fields_message_block %}
|
||||
{% endblock %}
|
||||
|
||||
{% block form_non_field_and_hidden_errors %}
|
||||
{% get_form_hidden_fields_errors form as form_hidden_fields_errors %}
|
||||
{% if form.non_field_errors or form_hidden_fields_errors %}
|
||||
{% include fobi_theme.form_non_field_and_hidden_errors_snippet_template %}
|
||||
{% endif %}
|
||||
{% endblock form_non_field_and_hidden_errors %}
|
||||
{% endblock %}
|
||||
|
||||
{% for field in form %}
|
||||
{% if field.is_hidden %}
|
||||
<div class="{% block hidden_form_element_wrapper_html_class %}hidden{% endblock %}">
|
||||
<div class="{% block form_element_wrapper_hidden_html_class %}hidden{% endblock %}">
|
||||
{{ field }}
|
||||
</div>
|
||||
{% else %}
|
||||
|
|
@ -26,9 +26,11 @@
|
|||
{% endif %}
|
||||
{% endspaceless %}">
|
||||
|
||||
<label class="{% block form_element_label_html_class %}{% endblock %}" for="{{ field.id_for_label }}">
|
||||
{{ field.label }}{% if field.field.required %}<span class="{% block form_element_required_field_sign_html_class %}required-field{% endblock %}">*</span>{% endif %}
|
||||
</label>
|
||||
{% if field.label %}
|
||||
<label class="{% block form_element_label_html_class %}{% endblock %}" for="{{ field.id_for_label }}">
|
||||
{{ field.label }}{% if field.field.required %}<span class="{% block form_element_required_field_sign_html_class %}required-field{% endblock %}">*</span>{% endif %}
|
||||
</label>
|
||||
{% endif %}
|
||||
|
||||
<div class="{% block form_element_field_wrapper_html_class %}{% endblock %}">
|
||||
{% get_form_field_type field as form_field_type %}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
{% get_form_field_type field as field_type %}
|
||||
<div class="{% spaceless %}
|
||||
{% block form_element_wrapper_html_class %}{% endblock %}
|
||||
{% if field.errors %} {% block hidden_form_element_error_html_class%}{% endblock %}{% endif %}
|
||||
{% if field.errors %} {% block form_element_wrapper_error_html_class %}{% endblock %}{% endif %}
|
||||
{% endspaceless %}">
|
||||
|
||||
{% if field_type.is_checkbox %}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
{% for field in form %}
|
||||
|
||||
{% if field.is_hidden %}
|
||||
<div class="{% block hidden_form_element_wrapper_html_class %}hidden{% endblock %}">{{ field }}</div>
|
||||
<div class="{% block form_element_wrapper_hidden_html_class %}hidden{% endblock %}">{{ field }}</div>
|
||||
{% else %}
|
||||
<div class="{% spaceless %}
|
||||
{% block form_element_wrapper_html_class %}form-group{% endblock %}
|
||||
|
|
@ -70,4 +70,4 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue