Skip to content

Commit

Permalink
fix(form): text inputs without bootstrap CSS
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Nov 18, 2021
1 parent 4cd3ee7 commit 989505e
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions inc/form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,14 @@ public function showForm($ID, $options = []) {

echo '<tr class="tab_bg_1">';
echo '<td width="20%"><strong>' . __('Name') . ' <span class="red">*</span></strong></td>';
echo '<td width="30%"><input type="text" name="name" value="' . $this->fields["name"] . '" size="35"/></td>';
// echo '<td width="30%"><input type="text" name="name" value="' . $this->fields["name"] . '" size="35"/></td>';
echo '<td width="30%">';
echo Html::input('name', [
'id' => 'name',
'autofocus' => '',
'value' => $this->fields['name'],
]);
echo '</td>';
echo '<td width="20%"><strong>' . __('Active') . ' <span class="red">*</span></strong></td>';
echo '<td width="30%">';
Dropdown::showYesNo("is_active", $this->fields["is_active"]);
Expand Down Expand Up @@ -461,7 +468,12 @@ public function showForm($ID, $options = []) {

echo '<tr class="tab_bg_1">';
echo '<td>' . __('Description') . '</td>';
echo '<td><input type="text" name="description" value="' . $this->fields['description'] . '" size="35" /></td>';
echo '<td>';
echo Html::input('description', [
'id' => 'name',
'value' => $this->fields['description'],
]);
echo '</td>';
echo '<td>' . __('Language') . '</td>';
echo '<td>';
Dropdown::showLanguages('language', [
Expand Down

0 comments on commit 989505e

Please sign in to comment.