Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_cfg_common
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_cfg_common
Commits
4a89f916
Commit
4a89f916
authored
2 years ago
by
Eric Bremner
Committed by
Kevin Paxman
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-4729: cleaning up site search form to have no parent form item divs
parent
a71cd3a6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!239
ISTWCMS 4729 ebremner search form
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Form/UwSearchForm.php
+17
-0
17 additions, 0 deletions
src/Form/UwSearchForm.php
with
17 additions
and
0 deletions
src/Form/UwSearchForm.php
+
17
−
0
View file @
4a89f916
...
@@ -43,6 +43,23 @@ class UwSearchForm extends FormBase {
...
@@ -43,6 +43,23 @@ class UwSearchForm extends FormBase {
'uw-input--checkboxform'
,
'uw-input--checkboxform'
,
],
],
],
],
'#theme_wrappers'
=>
[],
];
// This is the label that is used for the "phone" view on
// the site search. We need to use form element label here
// by itself, since we use theme_wrappers as an empty array
// above in the input, which would normally give us the form
// label.
$form
[
'label'
]
=
[
'#theme'
=>
'form_element_label'
,
'#title'
=>
$this
->
t
(
'<span class="uw-search--checkboxlabel--labeltext"></span>'
),
'#title_display'
=>
'after'
,
'#required'
=>
FALSE
,
'#id'
=>
'edit-opentray'
,
'#attributes'
=>
[
'class'
=>
[
'uw-search--checkboxlabel'
],
],
];
];
// The search text.
// The search text.
...
...
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