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
Galette
Galette
Commits
84acb23e
Commit
84acb23e
authored
Jun 22, 2022
by
Johan Cwiklinski
Browse files
Use 'inline field' class per default on form entries
parent
a2fd97b8
Changes
7
Hide whitespace changes
Inline
Side-by-side
galette/templates/default/components/forms/checkbox.html.twig
View file @
84acb23e
...
...
@@ -3,10 +3,5 @@
{%
block
component
%}
{%
set
type
=
"checkbox"
%}
{%
if
masschange
is
defined
and
masschange
==
true
%}
{%
set
component_class
=
"inline field"
%}
{%
else
%}
{%
set
component_class
=
"field"
%}
{%
endif
%}
{{
parent
()
}}
{%
endblock
%}
galette/templates/default/components/forms/date.html.twig
View file @
84acb23e
...
...
@@ -6,7 +6,6 @@
{%
if
id
==
'ddn_adh'
%}
{%
set
example
=
_T
(
"(yyyy-mm-dd format)"
)
~
"<span id=\"member_age\">"
~
member.getAge
()
~
"</span>"
%}
{%
endif
%}
{%
set
component_class
=
"field"
%}
{{
parent
()
}}
{%
endblock
%}
...
...
galette/templates/default/components/forms/input.html.twig
View file @
84acb23e
{%
block
component
%}
{%
if
notag
is
not
defined
%}
<div
{%
if
component_id
is
defined
%}
id=
"
{{
component_id
}}
"
{%
endif
%}{%
if
component_class
is
defined
%}
class=
"
{{
component_class
}}
"
{%
endif
%}
>
<div
{%
if
component_id
is
defined
%}
id=
"
{{
component_id
}}
"
{%
endif
%}
class=
"
{{
component_class
??
'inline field'
}}
"
>
{%
endif
%}
{%
block
label
%}
<label
for=
"
{{
id
}}
"
{%
if
title
is
defined
%}
title=
"
{{
title
}}
"
{%
endif
%}{%
if
labelclass
is
defined
%}
class=
"
{%
if
labelclass
is
defined
%}{{
labelclass
}}{%
endif
%}
"
{%
endif
%}
>
...
...
galette/templates/default/components/forms/password.html.twig
View file @
84acb23e
...
...
@@ -8,7 +8,6 @@
autocomplete
:
"off"
,
value
:
null
,
component_id
:
entry.field_id
~
'_field'
,
component_class
:
"field"
}
%}
{%
include
"components/forms/input.html.twig"
with
{
...
...
@@ -21,7 +20,6 @@
autocomplete
:
"off"
,
elt_class
:
"labelalign"
,
value
:
null
,
component_class
:
"field"
}
%}
<script
type=
"text/javascript"
>
...
...
galette/templates/default/components/forms/select.html.twig
View file @
84acb23e
{%
extends
"components/forms/input.html.twig"
%}
{%
block
component
%}
{%
if
masschange
is
defined
and
masschange
==
true
%}
{%
set
component_class
=
"inline field"
%}
{%
else
%}
{%
set
component_class
=
"field"
%}
{%
endif
%}
{%
if
entry.required
%}
{%
set
component_class
=
component_class
~
' required'
%}
{%
set
component_class
=
component_class
??
'inline field'
~
' required'
%}
{%
endif
%}
{{
parent
()
}}
{%
endblock
%}
...
...
galette/templates/default/components/forms/text.html.twig
View file @
84acb23e
...
...
@@ -2,13 +2,8 @@
{%
block
component
%}
{%
set
type
=
"text"
%}
{%
if
masschange
is
defined
and
masschange
==
true
%}
{%
set
component_class
=
"inline field"
%}
{%
else
%}
{%
set
component_class
=
'field'
%}
{%
endif
%}
{%
if
entry.required
??
false
%}
{%
set
component_class
=
component_class
~
' required'
%}
{%
set
component_class
=
component_class
??
'inline field'
~
' required'
%}
{%
endif
%}
{{
parent
()
}}
{%
endblock
%}
galette/templates/default/components/forms/textarea.html.twig
View file @
84acb23e
{%
extends
"components/forms/input.html.twig"
%}
{%
block
component
%}
{%
set
component_class
=
"field"
%}
{{
parent
()
}}
{%
endblock
%}
{%
block
label
%}
{{
parent
()
}}
{%
endblock
%}
...
...
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