From 28ee8a0776155d6992b39c2934962129d2dcbb1c Mon Sep 17 00:00:00 2001 From: Frederick Borges Date: Wed, 15 Apr 2020 19:26:39 +0200 Subject: [PATCH] F #3059: LXD marketplace attributes (#4524) --- .../marketplaces-tab/form-panels/create.js | 29 ++++++++++++++++++- .../form-panels/create/wizard.hbs | 7 ++++- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/src/sunstone/public/app/tabs/marketplaces-tab/form-panels/create.js b/src/sunstone/public/app/tabs/marketplaces-tab/form-panels/create.js index c6849d9dcc..e540feeb60 100644 --- a/src/sunstone/public/app/tabs/marketplaces-tab/form-panels/create.js +++ b/src/sunstone/public/app/tabs/marketplaces-tab/form-panels/create.js @@ -43,6 +43,7 @@ define(function(require) { var MARKET_MAD_ATTRS = [ { name: 'ENDPOINT', + id: 'ENDPOINTONE', label: Locale.tr("Endpoint URL for marketplace"), driver: 'one' }, @@ -97,6 +98,7 @@ define(function(require) { }, { name: 'ENDPOINT', + id: 'ENDPOINTS3', label: Locale.tr("Endpoint URL for marketplace"), driver: 's3' }, @@ -111,6 +113,32 @@ define(function(require) { label: Locale.tr("Read block length in MB"), tooltip: Locale.tr("Split marketapps into chunks of this size (in MB). You should **never** user a quantity larger than 100. Defaults to 32 (MB)."), driver: 's3' + }, + { + name: 'ENDPOINT', + id: 'ENDPOINTLXD', + label: Locale.tr("Endpoint URL for marketplace"), + driver: 'linuxcontainers' + }, + { + name: 'IMAGE_SIZE_MB', + label: Locale.tr("Size for the image holding the rootfs in MB"), + driver: 'linuxcontainers' + }, + { + name: 'FILESYSTEM', + label: Locale.tr("Filesystem used for the image"), + driver: 'linuxcontainers' + }, + { + name: 'FORMAT', + label: Locale.tr("Image block file format"), + driver: 'linuxcontainers' + }, + { + name: 'SKIP_UNTESTED', + label: Locale.tr("Show only auto-contextualized apps"), + driver: 'linuxcontainers' } ] /* @@ -274,4 +302,3 @@ define(function(require) { } } }); - diff --git a/src/sunstone/public/app/tabs/marketplaces-tab/form-panels/create/wizard.hbs b/src/sunstone/public/app/tabs/marketplaces-tab/form-panels/create/wizard.hbs index 59f9f8424d..27c10240b2 100644 --- a/src/sunstone/public/app/tabs/marketplaces-tab/form-panels/create/wizard.hbs +++ b/src/sunstone/public/app/tabs/marketplaces-tab/form-panels/create/wizard.hbs @@ -52,7 +52,12 @@ {{this.tooltip}} {{/if}} - + {{#if this.id }} + + {{else}} + + {{/if}} + {{/each}}