diff --git a/inc/translation.class.php b/inc/translation.class.php index 7ac264f46..f0f385a90 100644 --- a/inc/translation.class.php +++ b/inc/translation.class.php @@ -174,12 +174,12 @@ public static function getEditorFieldsHtml(PluginFormcreatorForm_Language $formL switch ($type) { case 'itemlink': case 'string': - $out .= '' . $original . Html::hidden("id", ['value' => $id]) . ''; + $out .= '' . $original . Html::hidden("id", ['value' => $id]) . ''; $out .= '' . Html::input("value", ['value' => $translatedString]) . ''; break; case 'text': - $out .= '' . Html::entity_decode_deep($original) . Html::hidden("id", ['value' => $id]) . ''; + $out .= '' . Html::entity_decode_deep($original) . Html::hidden("id", ['value' => $id]) . ''; $out .= '' . Html::textarea([ 'name' => "value", 'value' => $translatedString, diff --git a/js/scripts.js b/js/scripts.js index b77d8c6be..afd70c2c3 100644 --- a/js/scripts.js +++ b/js/scripts.js @@ -1154,6 +1154,7 @@ var plugin_formcreator = new function() { var translationId = $(element.closest('[data-itemtype="PluginFormcreatorTranslation"]')).attr('data-id'); var modal; modal = glpi_ajax_dialog({ + dialogclass: 'modal-xl', url: '../ajax/form_language.php', params: { action: 'translation',