From 989505e7d6a30cc46aa1d843337dcb73abc79840 Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Thu, 18 Nov 2021 15:00:13 +0100 Subject: [PATCH] fix(form): text inputs without bootstrap CSS Signed-off-by: Thierry Bugier --- inc/form.class.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/inc/form.class.php b/inc/form.class.php index 85a7964ff..fe302dd45 100644 --- a/inc/form.class.php +++ b/inc/form.class.php @@ -422,7 +422,14 @@ public function showForm($ID, $options = []) { echo ''; echo '' . __('Name') . ' *'; - echo ''; + // echo ''; + echo ''; + echo Html::input('name', [ + 'id' => 'name', + 'autofocus' => '', + 'value' => $this->fields['name'], + ]); + echo ''; echo '' . __('Active') . ' *'; echo ''; Dropdown::showYesNo("is_active", $this->fields["is_active"]); @@ -461,7 +468,12 @@ public function showForm($ID, $options = []) { echo ''; echo '' . __('Description') . ''; - echo ''; + echo ''; + echo Html::input('description', [ + 'id' => 'name', + 'value' => $this->fields['description'], + ]); + echo ''; echo '' . __('Language') . ''; echo ''; Dropdown::showLanguages('language', [