mirror of https://github.com/MISP/MISP
fix: [otp] autofocus added
parent
1bdbd0c18e
commit
c45734ce5d
|
@ -40,6 +40,9 @@
|
|||
} else {
|
||||
$params['class'] = '';
|
||||
}
|
||||
if (!empty($fieldData['autofocus'])) {
|
||||
$params['autofocus'] = 1;
|
||||
}
|
||||
if (empty($fieldData['type']) || $fieldData['type'] !== 'checkbox' ) {
|
||||
$params['class'] .= ' form-control';
|
||||
}
|
||||
|
|
|
@ -19,6 +19,7 @@ echo $this->element('/genericElements/Form/genericForm', array(
|
|||
"label" => $label,
|
||||
"type" => "text",
|
||||
"placeholder" => __("Enter your OTP here"),
|
||||
"autofocus" => 1
|
||||
)
|
||||
),
|
||||
"submit" => array (
|
||||
|
|
Loading…
Reference in New Issue