diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/context.js b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/context.js
index e6b8ad109c..3b38b13a43 100644
--- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/context.js
+++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/context.js
@@ -171,6 +171,7 @@ define(function(require) {
'
' +
'' +
' | ' +
diff --git a/src/sunstone/public/app/utils/user-inputs.js b/src/sunstone/public/app/utils/user-inputs.js
index aa10831f98..30ec84b2ed 100644
--- a/src/sunstone/public/app/utils/user-inputs.js
+++ b/src/sunstone/public/app/utils/user-inputs.js
@@ -87,8 +87,7 @@ define(function(require) {
network_attrs.push(attrs)
break;
case "text":
- text_attrs.push(attrs)
- break;
+ case "text64":
case "password":
text_attrs.push(attrs)
break;
@@ -154,16 +153,30 @@ define(function(require) {
div.append('');
$.each(text_attrs, function(index, custom_attr) {
- $(".instantiate_user_inputs", div).append(
- '' +
- '
' +
- '' +
- '
' +
- '
');
- });
+ var input;
+
+ switch (custom_attr.type) {
+ case "text":
+ input = '';
+ break;
+ case "text64":
+ input = '';
+ break;
+ case "password":
+ input = '';
+ break;
+ }
+
+ $(".instantiate_user_inputs", div).append(
+ '' +
+ '
' +
+ '' +
+ '
' +
+ '
');
+ });
}
return (network_attrs.length > 0 || text_attrs.length > 0);
diff --git a/src/sunstone/public/app/utils/wizard-fields.js b/src/sunstone/public/app/utils/wizard-fields.js
index 1a37244134..e6b83f94cb 100644
--- a/src/sunstone/public/app/utils/wizard-fields.js
+++ b/src/sunstone/public/app/utils/wizard-fields.js
@@ -39,13 +39,19 @@ define(function(require) {
(field.attr("type") != "checkbox" || field.prop("checked")) &&
(field.attr("type") != "radio" || field.prop("checked"))) {
var field_name = field.attr('wizard_field');
- templateJSON[field_name] = field.val();
+
+ if (field.attr('wizard_field_64') == "true"){
+ templateJSON[field_name] = btoa(field.val());
+ } else {
+ templateJSON[field_name] = field.val();
+ }
}
});
return templateJSON;
}
+ // TODO: wizard_field_64 for fill method
function _fillWizardFields(context, templateJSON) {
var fields = $('[wizard_field]', context);