mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
Resolving indentation cf-form presentation
This commit is contained in:
parent
7b7cdeba21
commit
73eeb6cea2
@ -6,14 +6,14 @@
|
|||||||
{% elseif attr.class is defined and 'no-label' in attr.class %}
|
{% elseif attr.class is defined and 'no-label' in attr.class %}
|
||||||
grid-0
|
grid-0
|
||||||
{% else %}
|
{% else %}
|
||||||
grid-4
|
grid-4 clear
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endspaceless %}">
|
{% endspaceless %}">
|
||||||
{{ form_label(form) }}
|
{{ form_label(form) }}
|
||||||
</div>
|
</div>
|
||||||
<div class="{% spaceless %}
|
<div class="{% spaceless %}
|
||||||
{% if attr.class is defined and 'only-label' in attr.class %}
|
{% if attr.class is defined and 'only-label' in attr.class %}
|
||||||
|
grid-12 parent
|
||||||
{% elseif attr.class is defined and 'no-label' in attr.class %}
|
{% elseif attr.class is defined and 'no-label' in attr.class %}
|
||||||
grid-12
|
grid-12
|
||||||
{% else %}
|
{% else %}
|
||||||
@ -26,15 +26,6 @@
|
|||||||
{% endspaceless %}
|
{% endspaceless %}
|
||||||
{% endblock form_row %}
|
{% endblock form_row %}
|
||||||
|
|
||||||
{% block form_widget_simple %}
|
|
||||||
{% spaceless %}
|
|
||||||
{% if attr.class is not defined %}
|
|
||||||
{% set attr = {'class' : 'input wide'} %}
|
|
||||||
{% endif %}
|
|
||||||
{% set type = type|default('text') %}
|
|
||||||
<input type="{{ type }}" {{ block('widget_attributes') }} {% if value is not empty %}value="{{ value }}" {% endif %}/>
|
|
||||||
{% endspaceless %}
|
|
||||||
{% endblock form_widget_simple %}
|
|
||||||
|
|
||||||
{% block textarea_widget %}
|
{% block textarea_widget %}
|
||||||
{% spaceless %}
|
{% spaceless %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user