@@ -303,18 +303,20 @@ public function showTranslationEntry($input) : void {
303303 public function showTranslations ($ options = []) {
304304 $ form = PluginFormcreatorCommon::getForm ();
305305 $ form ->getFromDB ($ this ->fields [PluginFormcreatorForm::getForeignKeyField ()]);
306+ $ this ->showFormHeader ($ options );
307+ $ this ->initForm ($ this ->getID ());
306308 echo '<div data-itemtype="PluginFormcreatorForm_Language" data-id=" ' . $ this ->getID () . '"> ' ;
307- echo '<div > ' ;
309+ echo '<span > ' ;
308310 echo '<button '
309311 . ' name="new_override" '
310312 . ' class="vsubmit" '
311313 . ' value="<i class= \'fas fa-plus \'></i> ' . __ ('New translation ' , 'formcreator ' ) . '" '
312314 .' onclick=" ' . 'plugin_formcreator.newTranslation( ' . $ this ->getID () . ') '
313315 . '"><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"> ' ;
316318 echo '<input type="text" placeholder=" ' .__ ("Filter list " , 'formcreator ' ).'"> ' ;
317- echo '</div > ' ;
319+ echo '</span > ' ;
318320
319321 $ translations = $ form ->getTranslations ($ this ->fields ['name ' ]);
320322 if (count ($ translations ) < 1 ) {
@@ -324,8 +326,6 @@ public function showTranslations($options = []) {
324326
325327 $ options ['formtitle ' ] = false ;
326328 $ options ['formoptions ' ] = 'onsubmit=" ' . Html::getConfirmationOnActionScript (__ ('Do you want to delete the selected items? ' , 'formcreator ' )) . '" ' ;
327- $ this ->showFormHeader ($ options );
328- $ this ->initForm ($ this ->getID ());
329329 $ rand = mt_rand ();
330330
331331 if (count ($ translations ) > 15 ) {
0 commit comments