diff --git a/src/js/yunohost/controllers/apps.js b/src/js/yunohost/controllers/apps.js index 2dd11cf9..42708dfd 100644 --- a/src/js/yunohost/controllers/apps.js +++ b/src/js/yunohost/controllers/apps.js @@ -160,6 +160,13 @@ }); }); + // Get app config panel + app.get('#/apps/:app/config-panel', function (c) { + c.api('/apps/'+c.params['app']+'/config-panel', function(data) { + c.view('app/app_config-panel', data); + }); + }); + // Special case for custom app installation. app.get('#/apps/install/custom', function (c) { // If we try to GET /apps/install/custom, it means that installation fail. diff --git a/src/views/app/app_config-panel.ms b/src/views/app/app_config-panel.ms new file mode 100644 index 00000000..205c75b8 --- /dev/null +++ b/src/views/app/app_config-panel.ms @@ -0,0 +1,70 @@ +
+ {{t 'home'}} + {{t 'applications'}} + {{label}} + {{t 'config-panel'}} +
+ +
+ +{{#if config_panel}} + +
+{{#config_panel}} +

{{name}}

+
+{{#panel}} +
+ +
+
+
+ {{#sections}} +
+

{{name}} {{help}}

+
+
    + {{#options}} +
    + +
    + {{#if (in type "number" "text" "password" "color" "date" "datetime-local" "email" "month number" "range" "search" "tel" "time" "url" "week")}} + + {{ help }} + {{else if (eq type "bool")}} + yes + no + {{ help }} + {{/if}} +
    +
    + {{/options}} +
+ +
+
+ {{/sections}} + +
+
+
+
+
+
+{{/panel}} +{{/config_panel}} +
+ +{{else}} +
+ + {{t 'app_config_panel_no_panel'}} +
+{{/if}}