12201 Allow to select extend input types, not only text (ex : color; week, etc)

This commit is contained in:
Fred Tempez 2023-02-02 09:39:05 +01:00
parent ee5477414d
commit 245375c28e
1 changed files with 3 additions and 2 deletions

View File

@ -871,7 +871,8 @@ class template
'name' => $nameId,
'placeholder' => '',
'readonly' => false,
'value' => ''
'value' => '',
'type' => 'text'
], $attributes);
// Traduction de l'aide et de l'étiquette
$attributes['label'] = helper::translate($attributes['label']);
@ -898,7 +899,7 @@ class template
$html .= self::notice($attributes['id'], $notice);
// Texte
$html .= sprintf(
'<input type="text" %s>',
'<input type="' . $attributes['type']. '" %s>',
helper::sprintAttributes($attributes)
);
// Fin du wrapper