Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
app
Commits
c40d83f9
Commit
c40d83f9
authored
Apr 05, 2022
by
Bertrand Gauthier
Browse files
[FIX] FormControlGroup : prise en compte de la classe CSS des labels de checkboxes
parent
97c2bf10
Pipeline
#13565
passed with stage
in 23 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
c40d83f9
CHANGELOG
=========
5.
0.1
-----
-
[FIX] FormControlGroup : prise en compte de la classe CSS des labels de checkboxes.
5.
0.0
-----
-
Migration vers Bootstrap 5 (front-end).
...
...
src/UnicaenApp/Form/View/Helper/FormControlGroup.php
View file @
c40d83f9
...
...
@@ -296,10 +296,11 @@ class FormControlGroup extends AbstractHelper
$id
=
$element
->
getAttribute
(
'id'
);
$label
=
$element
->
getLabel
();
$title
=
$element
->
getLabelAttributes
()[
'title'
]
??
$element
->
getAttributes
()[
'title'
]
??
null
;
$class
=
$element
->
getLabelAttributes
()[
'class'
]
??
$element
->
getAttributes
()[
'class'
]
??
null
;
$html
=
<<<EOS
<div class="form-check">
$html
<label class="form-check-label" for="$id" title="$title">$label</label>
<label class="form-check-label
$class
" for="$id" title="$title">$label</label>
</div>
EOS;
}
...
...
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