File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff 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 ' , [
You can’t perform that action at this time.
0 commit comments