Skip to content

Commit 08e9aa2

Browse files
committed
fix(form): text inputs without bootstrap CSS
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
1 parent 0c0a932 commit 08e9aa2

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

inc/form.class.php

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,14 @@ public function showForm($ID, $options = []) {
422422

423423
echo '<tr class="tab_bg_1">';
424424
echo '<td width="20%"><strong>' . __('Name') . ' <span class="red">*</span></strong></td>';
425-
echo '<td width="30%"><input type="text" name="name" value="' . $this->fields["name"] . '" size="35"/></td>';
425+
// echo '<td width="30%"><input type="text" name="name" value="' . $this->fields["name"] . '" size="35"/></td>';
426+
echo '<td width="30%">';
427+
echo Html::input('name', [
428+
'id' => 'name',
429+
'autofocus' => '',
430+
'value' => $this->fields['name'],
431+
]);
432+
echo '</td>';
426433
echo '<td width="20%"><strong>' . __('Active') . ' <span class="red">*</span></strong></td>';
427434
echo '<td width="30%">';
428435
Dropdown::showYesNo("is_active", $this->fields["is_active"]);
@@ -461,7 +468,12 @@ public function showForm($ID, $options = []) {
461468

462469
echo '<tr class="tab_bg_1">';
463470
echo '<td>' . __('Description') . '</td>';
464-
echo '<td><input type="text" name="description" value="' . $this->fields['description'] . '" size="35" /></td>';
471+
echo '<td>';
472+
echo Html::input('description', [
473+
'id' => 'name',
474+
'value' => $this->fields['description'],
475+
]);
476+
echo '</td>';
465477
echo '<td>' . __('Language') . '</td>';
466478
echo '<td>';
467479
Dropdown::showLanguages('language', [

0 commit comments

Comments
 (0)