mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
replace 'hideLabel' form option by 'fullWidth'
sometimes we want fullWidth and display label
This commit is contained in:
parent
bda203d11d
commit
fe595860f2
@ -59,7 +59,7 @@ class CommentType extends AbstractType
|
|||||||
$view->vars = array_replace(
|
$view->vars = array_replace(
|
||||||
$view->vars,
|
$view->vars,
|
||||||
[
|
[
|
||||||
'hideLabel' => true,
|
'fullWidth' => true,
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ class PrivateCommentType extends AbstractType
|
|||||||
|
|
||||||
public function buildView(FormView $view, FormInterface $form, array $options)
|
public function buildView(FormView $view, FormInterface $form, array $options)
|
||||||
{
|
{
|
||||||
$view->vars['hideLabel'] = true;
|
$view->vars['fullWidth'] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function configureOptions(OptionsResolver $resolver)
|
public function configureOptions(OptionsResolver $resolver)
|
||||||
|
@ -108,7 +108,7 @@ class ScopePickerType extends AbstractType
|
|||||||
$view->vars = array_replace(
|
$view->vars = array_replace(
|
||||||
$view->vars,
|
$view->vars,
|
||||||
[
|
[
|
||||||
'hideLabel' => true,
|
'fullWidth' => true,
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
{{- form_errors(form) -}}
|
{{- form_errors(form) -}}
|
||||||
</div>
|
</div>
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{% if form.vars.hideLabel is not defined or form.vars.hideLabel == false %}
|
{% if form.vars.fullWidth is not defined or form.vars.fullWidth == false %}
|
||||||
{{- form_label(form) -}}
|
{{- form_label(form) -}}
|
||||||
<div class="{{ block('form_group_class') }}">
|
<div class="{{ block('form_group_class') }}">
|
||||||
{{- form_widget(form, widget_attr) -}}
|
{{- form_widget(form, widget_attr) -}}
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
{% block form_row %}
|
{% block form_row %}
|
||||||
{% apply spaceless %}
|
{% apply spaceless %}
|
||||||
{% if form.vars.hideLabel is not defined or form.vars.hideLabel == false %}
|
{% if form.vars.fullWidth is not defined or form.vars.fullWidth == false %}
|
||||||
<div class="mb-2">
|
<div class="mb-2">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="{% apply spaceless %}
|
<div class="{% apply spaceless %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user