Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
uw_fdsu_theme_resp
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_fdsu_theme_resp
Commits
bc9dd78b
Commit
bc9dd78b
authored
1 year ago
by
Eric Bremner
Committed by
Kevin Paxman
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-6711: fixing the form field id for details label
parent
a4f5af16
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!122
ISTWCMS-6711: fixing label for details
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/elements/details.html.twig
+1
-1
1 addition, 1 deletion
templates/elements/details.html.twig
uw_fdsu_theme_resp.theme
+14
-0
14 additions, 0 deletions
uw_fdsu_theme_resp.theme
with
15 additions
and
1 deletion
templates/elements/details.html.twig
+
1
−
1
View file @
bc9dd78b
...
...
@@ -30,7 +30,7 @@ Prefix 'details' class to avoid collision with Modernizr.
]
%}
<summary
{{
summary_attributes.addClass
(
summary_classes
)
}}
>
<label
for=
"
{{
element
[
'#id'
]
}}
"
>
{{
title
}}
</label>
<label
for=
"
{{
form_field_id
}}
"
>
{{
title
}}
</label>
</summary>
{%
-
endif
-
%}
<div
class=
"seven-details__wrapper details-wrapper"
>
...
...
This diff is collapsed.
Click to expand it.
uw_fdsu_theme_resp.theme
+
14
−
0
View file @
bc9dd78b
...
...
@@ -687,3 +687,17 @@ function uw_fdsu_theme_resp_preprocess_container(&$variables) {
}
}
}
/**
* Implements template_preprocess_details().
*/
function
uw_fdsu_theme_resp_preprocess_details
(
&
$variables
)
{
// Add the form field id to the variables.
// This comes from ISTWCMS-6711, we are
// removing the -collapsible if there is
// one there and using the html id. If there
// is no -collapsible, it will just use the
// html id.
$variables
[
'form_field_id'
]
=
str_replace
(
'-collapsible'
,
''
,
$variables
[
'attributes'
][
'id'
]);
}
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