Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bootstrap_barrio
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
bootstrap_barrio
Commits
dd7b6c7e
Commit
dd7b6c7e
authored
8 years ago
by
Alberto Siles
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2668298
: Custom Search Module Conflict.
parent
78129f08
No related branches found
Branches containing commit
Tags
8.x-4.6
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bootstrap_barrio.theme
+4
-1
4 additions, 1 deletion
bootstrap_barrio.theme
templates/form/form-element.html.twig
+4
-3
4 additions, 3 deletions
templates/form/form-element.html.twig
with
8 additions
and
4 deletions
bootstrap_barrio.theme
+
4
−
1
View file @
dd7b6c7e
...
...
@@ -332,9 +332,12 @@ function bootstrap_barrio_preprocess_block(&$variables) {
}
function
bootstrap_barrio_preprocess_form_element
(
&
$variables
)
{
if
(
is_object
(
$variables
[
'label'
][
'#title'
]))
{
if
(
is_object
(
$variables
[
'label'
][
'#title'
])
)
{
$variables
[
'input_title'
]
=
$variables
[
'label'
][
'#title'
]
->
render
();
}
else
{
$variables
[
'input_title'
]
=
$variables
[
'label'
][
'#title'
];
}
$variables
[
'input_attributes'
]
=
new
Attribute
(
$variables
[
'element'
][
'#attributes'
]);
}
...
...
This diff is collapsed.
Click to expand it.
templates/form/form-element.html.twig
+
4
−
3
View file @
dd7b6c7e
...
...
@@ -50,6 +50,7 @@
'js-form-item'
,
'js-form-type-'
~
type
|
clean_class
,
type
in
[
'checkbox'
,
'radio'
]
?
type
|
clean_class
:
'form-type-'
~
type
|
clean_class
,
type
in
[
'checkbox'
,
'radio'
]
?
form
-
check
,
'js-form-item-'
~
name
|
clean_class
,
'form-item-'
~
name
|
clean_class
,
title_display
not
in
[
'after'
,
'before'
]
?
'form-no-label'
,
...
...
@@ -74,11 +75,11 @@
{{
description.content
}}
</div>
{%
endif
%}
<label>
<label
class=
"form-check-label"
>
{%
if
label_display
==
'before'
%}
{{
input_title
}}
{%
endif
%}
<input
{{
input_attributes
}}
>
<input
{{
input_attributes
.addClass
(
'form-check-input'
)
}}
>
{%
if
label_display
==
'after'
%}
{{
input_title
}}
{%
endif
%}
...
...
@@ -97,7 +98,7 @@
</small>
{%
endif
%}
</div>
{%
else
%}
{%
else
%}
<fieldset
{{
attributes.addClass
(
classes
,
'form-group'
)
}}
>
{%
if
label_display
in
[
'before'
,
'invisible'
]
%}
{{
label
}}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment