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
e338a187
Commit
e338a187
authored
May 23, 2017
by
Carsten Rose
Browse files
#3773 / Button: Info / Unlock / ShowPassword
FE_PARAMETER: extraButtonInfo.
parent
b5510306
Changes
1
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/AbstractBuildForm.php
View file @
e338a187
...
...
@@ -923,6 +923,9 @@ abstract class AbstractBuildForm {
if
(
$extraButton
!==
''
)
{
$input
=
Support
::
wrapTag
(
'<div class="input-group">'
,
$input
.
$extraButton
);
if
(
!
empty
(
$formElement
[
FE_INPUT_EXTRA_BUTTON_INFO
]))
{
$input
.
=
$formElement
[
FE_INPUT_EXTRA_BUTTON_INFO
];
}
}
return
$input
.
$elementCharacterCount
.
$this
->
getHelpBlock
();
...
...
@@ -975,7 +978,19 @@ EOF;
// INFO
if
(
isset
(
$formElement
[
FE_INPUT_EXTRA_BUTTON_INFO
]))
{
$rcExtraButton
.
=
<<<EOF
<div class="input-group-btn">
<button class="btn btn-info" onclick="$('#$id-extra-info').slideToggle('swing')">
<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
</button>
</div>
EOF;
$value
=
$formElement
[
FE_INPUT_EXTRA_BUTTON_INFO
];
$formElement
[
FE_INPUT_EXTRA_BUTTON_INFO
]
=
<<<EOF
<div class="alert alert-info qfq-margin-top" id="$id-extra-info" style="display: none;">
<p>$value</p>
</div>
EOF;
}
return
$formElement
;
...
...
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