12201 Allow to select extend input types, not only text (ex : color; week, etc)
This commit is contained in:
parent
ee5477414d
commit
245375c28e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user