From 8ce0e9083609d443ba8061c78d8dcf4182d34410 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Tue, 19 Sep 2023 16:25:57 +0200
Subject: [PATCH] add more html5 input types

---
 public_html/classes/render-adminlte.class.php | 21 ++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/public_html/classes/render-adminlte.class.php b/public_html/classes/render-adminlte.class.php
index 6360d66..33e8fa1 100755
--- a/public_html/classes/render-adminlte.class.php
+++ b/public_html/classes/render-adminlte.class.php
@@ -418,8 +418,27 @@ class renderadminlte {
                             'values'=>[
                                 'text'=>'text',
                                 'password'=>'password',
+
+                                'button'=>'button',
+                                'checkbox'=>'checkbox',
+                                'color'=>'color',
+                                'date'=>'date',
+                                'datetime-local'=>'datetime-local',
                                 'email'=>'email',
+                                'file'=>'file',
                                 'hidden'=>'hidden',
+                                'image'=>'image',
+                                'month'=>'month',
+                                'number'=>'number',
+                                'radio'=>'radio',
+                                'range'=>'range',
+                                'reset'=>'reset',
+                                'search'=>'search',
+                                'submit'=>'submit',
+                                'tel'=>'tel',
+                                'time'=>'time',
+                                'url'=>'url',
+                                'week'=>'week',
                                 ]
                             ], 
                             'example_value'=>'text'
@@ -1170,7 +1189,7 @@ class renderadminlte {
      * 
      * @param type $aOptions  hash with keys for all options
      *                        styling:
-     *                          - type    - field type: text, email, password, hidden
+     *                          - type    - field type: text, email, password, hidden and all other html 5 input types
       *                        content
      *                          - label   - label tag
      *                          - name    - name attribute for sending form
-- 
GitLab