From 245375c28ef36e23d458a487cf871faf34149015 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Thu, 2 Feb 2023 09:39:05 +0100 Subject: [PATCH] 12201 Allow to select extend input types, not only text (ex : color; week, etc) --- core/class/template.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/class/template.class.php b/core/class/template.class.php index 3cf93c38..99f1b455 100644 --- a/core/class/template.class.php +++ b/core/class/template.class.php @@ -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( - '', + '', helper::sprintAttributes($attributes) ); // Fin du wrapper