@@ -303,18 +303,20 @@ public function showTranslationEntry($input) : void {
303
303
public function showTranslations ($ options = []) {
304
304
$ form = PluginFormcreatorCommon::getForm ();
305
305
$ form ->getFromDB ($ this ->fields [PluginFormcreatorForm::getForeignKeyField ()]);
306
+ $ this ->showFormHeader ($ options );
307
+ $ this ->initForm ($ this ->getID ());
306
308
echo '<div data-itemtype="PluginFormcreatorForm_Language" data-id=" ' . $ this ->getID () . '"> ' ;
307
- echo '<div > ' ;
309
+ echo '<span > ' ;
308
310
echo '<button '
309
311
. ' name="new_override" '
310
312
. ' class="vsubmit" '
311
313
. ' value="<i class= \'fas fa-plus \'></i> ' . __ ('New translation ' , 'formcreator ' ) . '" '
312
314
.' onclick=" ' . 'plugin_formcreator.newTranslation( ' . $ this ->getID () . ') '
313
315
. '"><i class= \'fas fa-plus \'></i> ' . __ ('New translation ' , 'formcreator ' ) . '</button> ' ;
314
- echo '</div > ' ;
315
- echo '<div class="plugin_formcreator_filter_translations"> ' ;
316
+ echo '</span > ' ;
317
+ echo '<span class="plugin_formcreator_filter_translations"> ' ;
316
318
echo '<input type="text" placeholder=" ' .__ ("Filter list " , 'formcreator ' ).'"> ' ;
317
- echo '</div > ' ;
319
+ echo '</span > ' ;
318
320
319
321
$ translations = $ form ->getTranslations ($ this ->fields ['name ' ]);
320
322
if (count ($ translations ) < 1 ) {
@@ -324,8 +326,6 @@ public function showTranslations($options = []) {
324
326
325
327
$ options ['formtitle ' ] = false ;
326
328
$ options ['formoptions ' ] = 'onsubmit=" ' . Html::getConfirmationOnActionScript (__ ('Do you want to delete the selected items? ' , 'formcreator ' )) . '" ' ;
327
- $ this ->showFormHeader ($ options );
328
- $ this ->initForm ($ this ->getID ());
329
329
$ rand = mt_rand ();
330
330
331
331
if (count ($ translations ) > 15 ) {
0 commit comments