Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Chill-project
Chill-Main
Commits
9d6168ac
Commit
9d6168ac
authored
Nov 18, 2014
by
Marc Ducobu
Browse files
all more than one CF in one line ref #322
parent
a9ee1f83
Changes
1
Hide whitespace changes
Inline
Side-by-side
Resources/views/Form/fields.html.twig
View file @
9d6168ac
{%
block
form_row
%}
{%
spaceless
%}
<div
class=
"
{%
spaceless
%}
{%
if
attr.class
is
defined
and
'only-label'
in
attr.class
%}
grid-12
{%
elseif
attr.class
is
defined
and
'no-label'
in
attr.class
%}
grid-0
{%
else
%}
grid-4 clear
{%
endif
%}
{%
endspaceless
%}
"
>
{{
form_label
(
form
)
}}
</div>
<div
class=
"
{%
spaceless
%}
{%
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
%}
grid-12
{%
else
%}
grid-8
{%
endif
%}
{%
endspaceless
%}
"
>
{{
form_widget
(
form
)
}}
{{
form_errors
(
form
)
}}
</div>
<div
class=
"
{%
spaceless
%}
{%
if
attr.class
is
defined
and
'only-label'
in
attr.class
%}
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
%}
grid-2 grid-mobile-4 grid-tablet-4 mobile-clear tablet-clear
{%
else
%}
grid-4 clear
{%
endif
%}
{%
endspaceless
%}
"
>
{{
form_label
(
form
)
}}
</div>
<div
class=
"
{%
spaceless
%}
{%
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
%}
grid-12
{%
elseif
attr.class
is
defined
and
'multiple-cf-inline'
in
attr.class
%}
grid-2 grid-mobile-8 grid-tablet-8
{%
else
%}
grid-8
{%
endif
%}
{%
endspaceless
%}
"
>
{{
form_widget
(
form
)
}}
{{
form_errors
(
form
)
}}
</div>
{%
endspaceless
%}
{%
endblock
form_row
%}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment