File tree 3 files changed +37
-5
lines changed
3 files changed +37
-5
lines changed Original file line number Diff line number Diff line change @@ -2255,7 +2255,15 @@ public function showAddTargetForm() {
2255
2255
2256
2256
echo '<tr> ' ;
2257
2257
echo '<td width="15%"><strong> ' .__ ('Name ' ).' <span style="color:red;">*</span></strong></td> ' ;
2258
- echo '<td width="40%"><input type="text" name="name" style="width:100%;" value="" required="required"/></td> ' ;
2258
+ echo '<td width="40%"> ' ;
2259
+ echo Html::input ('name ' , [
2260
+ 'id ' => 'name ' ,
2261
+ 'autofocus ' => '' ,
2262
+ 'value ' => $ this ->fields ['name ' ],
2263
+ 'required ' => 'required ' ,
2264
+ ]);
2265
+ echo '</td> ' ;
2266
+
2259
2267
echo '<td width="15%"><strong> ' ._n ('Type ' , 'Types ' , 1 ).' <span style="color:red;">*</span></strong></td> ' ;
2260
2268
echo '<td width="30%"> ' ;
2261
2269
$ targetTypes = [];
Original file line number Diff line number Diff line change @@ -428,7 +428,13 @@ public function showForm($ID, $options = []) {
428
428
echo '<tr> ' ;
429
429
echo '<td width="15%"><strong> ' . __ ('Name ' ) . ' <span style="color:red;">*</span></strong></td> ' ;
430
430
// TODO: remive the fixed width
431
- echo '<td width="85%"><input type="text" name="name" style="width:704px;" value=" ' . $ this ->fields ['name ' ] . '" /></td> ' ;
431
+ echo '<td> ' ;
432
+ echo Html::input ('name ' , [
433
+ 'id ' => 'name ' ,
434
+ 'autofocus ' => '' ,
435
+ 'value ' => $ this ->fields ['name ' ],
436
+ ]);
437
+ echo '</td> ' ;
432
438
echo '</tr> ' ;
433
439
echo '</table> ' ;
434
440
@@ -439,7 +445,13 @@ public function showForm($ID, $options = []) {
439
445
440
446
echo '<tr> ' ;
441
447
echo '<td><strong> ' . __ ('Change title ' , 'formcreator ' ) . ' <span style="color:red;">*</span></strong></td> ' ;
442
- echo '<td colspan="3"><input type="text" name="target_name" style="width:704px;" value=" ' . $ this ->fields ['target_name ' ] . '"></td> ' ;
448
+ echo '<td colspan="3"> ' ;
449
+ echo Html::input ('target_name ' , [
450
+ 'id ' => 'target_name ' ,
451
+ 'autofocus ' => '' ,
452
+ 'value ' => $ this ->fields ['target_name ' ],
453
+ ]);
454
+ echo '</td> ' ;
443
455
echo '</tr> ' ;
444
456
445
457
echo '<tr> ' ;
Original file line number Diff line number Diff line change @@ -220,7 +220,13 @@ public function showForm($ID, $options = []) {
220
220
echo '<tr> ' ;
221
221
echo '<td width="15%"><strong> ' . __ ('Name ' ) . ' <span style="color:red;">*</span></strong></td> ' ;
222
222
// TODO: remive the fixed width
223
- echo '<td width="85%"><input type="text" name="name" style="width:100%;" value=" ' . $ this ->fields ['name ' ] . '" /></td> ' ;
223
+ echo '<td> ' ;
224
+ echo Html::input ('name ' , [
225
+ 'id ' => 'name ' ,
226
+ 'autofocus ' => '' ,
227
+ 'value ' => $ this ->fields ['name ' ],
228
+ ]);
229
+ echo '</td> ' ;
224
230
echo '</tr> ' ;
225
231
echo '</table> ' ;
226
232
@@ -231,7 +237,13 @@ public function showForm($ID, $options = []) {
231
237
232
238
echo '<tr> ' ;
233
239
echo '<td><strong> ' . __ ('Ticket title ' , 'formcreator ' ) . ' <span style="color:red;">*</span></strong></td> ' ;
234
- echo '<td colspan="3"><input type="text" name="target_name" style="width:100%;" value=" ' . $ this ->fields ['target_name ' ] . '"/></td> ' ;
240
+ echo '<td colspan="3"> ' ;
241
+ echo Html::input ('target_name ' , [
242
+ 'id ' => 'target_name ' ,
243
+ 'autofocus ' => '' ,
244
+ 'value ' => $ this ->fields ['target_name ' ],
245
+ ]);
246
+ echo '</td> ' ;
235
247
echo '</tr> ' ;
236
248
237
249
echo '<tr> ' ;
You can’t perform that action at this time.
0 commit comments