Commit 5b0416b1 authored by Carsten  Rose's avatar Carsten Rose
Browse files

AbstractBuildForm.php: various form elements missed the 'title' attribute...

AbstractBuildForm.php: various form elements missed the 'title' attribute (used as tooltip). Fixed. 'Radio', 'Multi Checkbox' and 'Multi Select' only have one tooltip for all elements. This might be improved later.
parent b67f2184
......@@ -899,6 +899,7 @@ abstract class AbstractBuildForm {
$attribute .= Support::doAttribute('name', $htmlFormElementId);
$attribute .= Support::doAttribute('value', $formElement['checked'], false);
$attribute .= Support::doAttribute('title', $formElement['tooltip']);
$attribute .= Support::doAttribute('data-load', ($formElement['dynamicUpdate'] === 'yes') ? 'data-load' : '');
if ($formElement['checked'] === $value) {
......@@ -1037,6 +1038,8 @@ abstract class AbstractBuildForm {
}
$attribute .= Support::doAttribute('value', $itemKey[$ii]);
$attribute .= Support::doAttribute('title', $formElement['tooltip']);
if ($itemKey[$ii] === $value) {
$attribute .= Support::doAttribute('checked', 'checked');
}
......@@ -1079,6 +1082,7 @@ abstract class AbstractBuildForm {
$attribute = $this->getAttributeMode($formElement);
$attribute .= Support::doAttribute('name', $htmlFormElementId);
$attribute .= Support::doAttribute('title', $formElement['tooltip']);
$attribute .= $this->getAttributeList($formElement, ['autofocus']);
$attribute .= Support::doAttribute('data-load', ($formElement['dynamicUpdate'] === 'yes') ? 'data-load' : '');
......@@ -1438,6 +1442,7 @@ abstract class AbstractBuildForm {
$attribute = $this->getAttributeMode($formElement);
$attribute .= Support::doAttribute('type', 'file');
$attribute .= Support::doAttribute('title', $formElement['tooltip']);
$attribute .= Support::doAttribute('name', $htmlFormElementId);
$attribute .= $this->getAttributeList($formElement, ['autofocus', 'accept']);
$attribute .= Support::doAttribute('data-load', ($formElement['dynamicUpdate'] === 'yes') ? 'data-load' : '');
......
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