mirror of https://github.com/MISP/MISP
fix: add missing input descriptions
parent
cf73e33894
commit
dbacfeb56b
|
@ -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']));
|
||||
}
|
||||
|
|
|
@ -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']));
|
||||
}
|
||||
|
|
|
@ -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']));
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
]
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue