mirror of https://github.com/interlegis/sapl.git
Browse Source
Após fork e ajustes feitos no tema drunken-parrot-ui-flat, alterações feitas nos arquivos deste commit não são mais necessárias, passando a ser renderizado os arquivos que são padrão da biblioteca django-crispy-forms.pull/739/head
LeandroRoberto
8 years ago
3 changed files with 0 additions and 44 deletions
@ -1,14 +0,0 @@ |
|||
{% load crispy_forms_filters %} |
|||
{% load l10n %} |
|||
|
|||
<div class="controls controls-checkbox {{ field_class }}"{% if flat_attrs %} {{ flat_attrs|safe }}{% endif %}> |
|||
{% include 'bootstrap3/layout/field_errors_block.html' %} |
|||
{% for choice in field.field.choices %} |
|||
<label class="checkbox{% if field.field.inline_class %} checkbox-inline{% endif %}{% if choice.0 in field.value or choice.0|stringformat:"s" in field.value or choice.0|stringformat:"s" == field.value|stringformat:"s" %} checked{% endif %}" for="id_{{ field.html_name }}_{{ forloop.counter }}"> |
|||
<span class="icons"><span class="first-icon"></span><span class="second-icon fa fa-check"></span></span> |
|||
|
|||
<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> |
|||
{% endfor %} |
|||
{% include 'bootstrap3/layout/help_text.html' %} |
|||
</div> |
@ -1,18 +0,0 @@ |
|||
{% load crispy_forms_filters %} |
|||
{% load l10n %} |
|||
|
|||
<div class="controls controls-radio {{ field_class }}"{% if flat_attrs %} {{ flat_attrs|safe }}{% endif %}> |
|||
{% include 'bootstrap3/layout/field_errors_block.html' %} |
|||
{% for choice in field.field.choices %} |
|||
|
|||
<label class="radio {% if inline_class %}radio-{{ inline_class }}{% endif %}{% if choice.0 in field.value or choice.0|stringformat:"s" in field.value or choice.0|stringformat:"s" == field.value|stringformat:"s" %} checked{% endif %}" for="id_{{ field.html_name }}_{{ forloop.counter }}"> |
|||
<span class="icons"> |
|||
<span class="first-icon"></span> |
|||
<span class="second-icon"></span> |
|||
</span> |
|||
<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> |
|||
{% endfor %} |
|||
|
|||
{% include 'bootstrap3/layout/help_text.html' %} |
|||
</div> |
@ -1,12 +0,0 @@ |
|||
{% 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 %} |
Loading…
Reference in new issue