mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 22:04:23 +00:00
class cf-title and cf-fields for form display parametrisation
This commit is contained in:
parent
27903423da
commit
3a2a649e17
@ -1,25 +1,25 @@
|
|||||||
{% block form_row %}
|
{% block form_row %}
|
||||||
{% spaceless %}
|
{% spaceless %}
|
||||||
<div class="{% spaceless %}
|
<div class="{% spaceless %}
|
||||||
{% if attr.class is defined and 'only-label' in attr.class %}
|
{% if attr.class is defined and ('cf-title' in attr.class or 'cf-fields' in attr.class ) %}
|
||||||
grid-12
|
grid-12
|
||||||
{% elseif attr.class is defined and 'no-label' in attr.class %}
|
|
||||||
grid-0
|
|
||||||
{% elseif attr.class is defined and 'multiple-cf-inline' in attr.class %}
|
{% elseif attr.class is defined and 'multiple-cf-inline' in attr.class %}
|
||||||
grid-2 grid-mobile-4 grid-tablet-4 mobile-clear tablet-clear
|
grid-2 grid-mobile-4 grid-tablet-4 mobile-clear tablet-clear
|
||||||
{% else %}
|
{% else %}
|
||||||
grid-4 clear
|
grid-4 clear
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endspaceless %}">
|
{% endspaceless %}">
|
||||||
{{ form_label(form) }}
|
{% if attr.class is not defined or ('cf-title' not in attr.class and 'cf-fields' not in attr.class ) %}
|
||||||
|
{{ form_label(form) }}
|
||||||
|
{% endif %}
|
||||||
</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 'cf-title' in attr.class %}
|
||||||
grid-12 parent
|
|
||||||
{% elseif attr.class is defined and 'no-label' in attr.class %}
|
|
||||||
grid-12
|
grid-12
|
||||||
|
{% elseif attr.class is defined and 'cf-fields' in attr.class %}
|
||||||
|
grid-12 parent
|
||||||
{% elseif attr.class is defined and 'multiple-cf-inline' in attr.class %}
|
{% elseif attr.class is defined and 'multiple-cf-inline' in attr.class %}
|
||||||
grid-2 grid-mobile-8 grid-tablet-8
|
grid-2 grid-mobile-8 grid-tablet-8 multiple-cf-inline
|
||||||
{% else %}
|
{% else %}
|
||||||
grid-8
|
grid-8
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -28,7 +28,7 @@
|
|||||||
{{ form_errors(form) }}
|
{{ form_errors(form) }}
|
||||||
</div>
|
</div>
|
||||||
{% endspaceless %}
|
{% endspaceless %}
|
||||||
{% endblock form_row %}
|
{% endblock form_row %}
|
||||||
|
|
||||||
{% block choice_widget_expanded %}
|
{% block choice_widget_expanded %}
|
||||||
{% spaceless %}
|
{% spaceless %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user