diff --git a/src/js/yunohost/controllers/apps.js b/src/js/yunohost/controllers/apps.js index b68a06aa..9a7aafc9 100644 --- a/src/js/yunohost/controllers/apps.js +++ b/src/js/yunohost/controllers/apps.js @@ -339,12 +339,12 @@ args[k].type = (typeof v.type !== 'undefined') ? v.type : 'string'; args[k].inputType = 'text'; args[k].isPassword = false; + args[k].isDisplayText = false; args[k].required = (typeof v.optional !== 'undefined' && v.optional == "true") ? '' : 'required'; args[k].attributes = ""; args[k].helpText = ""; args[k].helpLink = ""; - // Multilingual label args[k].label = (typeof args[k].ask[y18n.locale] !== 'undefined') ? args[k].ask[y18n.locale] : @@ -460,6 +460,11 @@ args[k].isPassword = true; } + if (args[k].type == "display_text") { + args[k].isDisplayText = true; + args[k].label = args[k].label.split("\n"); + } + }); } diff --git a/src/views/app/app_install.ms b/src/views/app/app_install.ms index 4d4bc075..3a28ded8 100644 --- a/src/views/app/app_install.ms +++ b/src/views/app/app_install.ms @@ -39,6 +39,13 @@ {{#manifest.arguments.install}}
{{.}}
+ {{/label}} +