diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/other.js b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/other.js index cf86c6b9fc..c2dd958a16 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/other.js +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/other.js @@ -92,6 +92,8 @@ define(function(require) { if (rawType != undefined) { rawJSON['TYPE'] = rawType; } + + rawJSON['VALIDATE'] = $("#raw_validate", context).is(":checked") ? 'YES' : 'NO'; } if (!$.isEmptyObject(rawJSON)) { templateJSON['RAW'] = rawJSON; }; @@ -104,8 +106,13 @@ define(function(require) { if (rawJSON) { $('.raw_type', context).val(rawJSON['TYPE']); $('.raw_type', context).change(); + WizardFields.fillInput($('.raw_data', context), rawJSON['DATA']); + if (['yes', 'YES'].includes(rawJSON['VALIDATE'])) { + $("#raw_validate", context).prop('checked', 'checked'); + } + delete templateJSON.RAW; } diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/other/html.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/other/html.hbs index 48595a2d70..e12a8dfc35 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/other/html.hbs +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/other/html.hbs @@ -29,11 +29,19 @@
-