Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
e5e0f310
Commit
e5e0f310
authored
Nov 28, 2019
by
Carsten Rose
Browse files
radio: new class 'qfq-disabled' if readonly is set.
parent
f591c7f5
Pipeline
#2790
failed with stages
in 1 minute and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/Classes/Core/AbstractBuildForm.php
View file @
e5e0f310
...
...
@@ -2076,7 +2076,13 @@ abstract class AbstractBuildForm {
}
$labelAttribute
=
Support
::
doAttribute
(
'title'
,
$formElement
[
FE_TOOLTIP
]);
$html
=
Support
::
wrapTag
(
"<label class='checkbox'
$labelAttribute
>"
,
$html
,
true
);
$class
=
'checkbox'
;
if
(
$formElement
[
FE_MODE
]
==
FE_MODE_READONLY
)
{
$class
.
=
' qfq-disabled'
;
// necessary for own style checkboxes to display them 'disabled'
}
$html
=
Support
::
wrapTag
(
"<label class='
$class
'
$labelAttribute
>"
,
$html
,
true
);
// $html = Support::wrapTag("<div class='checkbox'>", $html, true);
$json
=
$this
->
getFormElementForJson
(
$htmlFormElementName
,
$valueJson
,
$formElement
);
...
...
@@ -2247,6 +2253,10 @@ abstract class AbstractBuildForm {
$orientation
=
(
$formElement
[
FE_MAX_LENGTH
]
>
1
)
?
ALIGN_HORIZONTAL
:
ALIGN_VERTICAL
;
$checkboxClass
=
(
$orientation
===
ALIGN_HORIZONTAL
)
?
'checkbox-inline'
:
'checkbox'
;
if
(
$formElement
[
FE_MODE
]
==
FE_MODE_READONLY
)
{
$checkboxClass
.
=
' qfq-disabled'
;
// necessary for own style checkboxes to display them 'disabled'
}
$br
=
''
;
$flagFirst
=
true
;
...
...
@@ -2502,6 +2512,9 @@ abstract class AbstractBuildForm {
$orientation
=
(
$formElement
[
FE_MAX_LENGTH
]
>
1
)
?
ALIGN_HORIZONTAL
:
ALIGN_VERTICAL
;
$radioClass
=
(
$orientation
===
ALIGN_HORIZONTAL
)
?
'radio-inline'
:
'radio'
;
if
(
$formElement
[
FE_MODE
]
==
FE_MODE_READONLY
)
{
$radioClass
.
=
' qfq-disabled'
;
}
$radioOuterTag
=
(
$orientation
===
ALIGN_HORIZONTAL
)
?
'label'
:
'div'
;
$br
=
''
;
...
...
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