Skip to content

Commit 97124c4

Browse files
committed
fix(form_language): positionning and header
1 parent 53122e5 commit 97124c4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

css/styles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ html, body {
212212
.plugin_formcreator_filter_translations {
213213
position: absolute;
214214
right: 3%;
215-
top: 10px;
215+
// top: 10px;
216216

217217
input {
218218
padding-left: 20px !important;

inc/form_language.class.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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>&nbsp;' . __('New translation', 'formcreator') . '"'
312314
.' onclick="' . 'plugin_formcreator.newTranslation(' . $this->getID() . ')'
313315
. '"><i class=\'fas fa-plus\'></i>&nbsp;' . __('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

Comments
 (0)