Commit e338a187 authored by Carsten  Rose's avatar Carsten Rose
Browse files

#3773 / Button: Info / Unlock / ShowPassword

FE_PARAMETER: extraButtonInfo.
parent b5510306
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment