fix: add missing input descriptions

pull/7520/head
Luciano Righetti 2021-07-13 18:06:20 +02:00
parent cf73e33894
commit dbacfeb56b
5 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,6 @@
<?php
echo $this->Form->input($fieldData['field'], $params);
if (!empty($params['description'])) {
echo sprintf('<small class="clear form-field-description apply_css_arrow">%s</small>', h($params['description']));
}

View File

@ -3,3 +3,6 @@
$fieldData['type'] = 'select';
echo $this->Form->input($fieldData['field'], $fieldData);
if (!empty($params['description'])) {
echo sprintf('<small class="clear form-field-description apply_css_arrow">%s</small>', h($params['description']));
}

View File

@ -1,3 +1,6 @@
<?php
echo $this->Form->input($fieldData['field'], $params);
if (!empty($params['description'])) {
echo sprintf('<small class="clear form-field-description apply_css_arrow">%s</small>', h($params['description']));
}

View File

@ -1,6 +1,10 @@
<?php
echo $this->Form->input($fieldData['field'], $params);
if (!empty($params['description'])) {
echo sprintf('<small class="clear form-field-description apply_css_arrow">%s</small>', h($params['description']));
}
?>
<div style="clear: both;">
<span id="basicAuthFormEnable" class="btn btn-inverse quick-popover" style="line-height:10px; padding: 4px 4px;"><?php echo __('Add Basic Auth'); ?></span>

View File

@ -32,6 +32,7 @@ $simpleFieldAllowedlist = array(
'selected',
'legend',
'disabled',
'description'
);
$fieldsArrayForPersistence = array();
$formOptions = isset($formOptions) ? $formOptions : array();
@ -49,7 +50,8 @@ if (!empty($data['fields'])) {
'fieldData' => $fieldData,
'form' => $this->Form,
'simpleFieldAllowlist' => $simpleFieldAllowedlist,
'modelForForm' => $modelForForm
'modelForForm' => $modelForForm,
'fieldDesc' => empty($fieldDesc) ? [] : $fieldDesc
]
);