diff --git a/share/etc/oned.conf b/share/etc/oned.conf index 6a637bf4d8..1aeaae830f 100644 --- a/share/etc/oned.conf +++ b/share/etc/oned.conf @@ -980,6 +980,7 @@ DS_MAD_CONF = [ MARKET_MAD_CONF = [ NAME = "one", + SUNSTONE_NAME = "OpenNebula.org Marketplace", REQUIRED_ATTRS = "", APP_ACTIONS = "monitor", PUBLIC = "yes" @@ -987,12 +988,14 @@ MARKET_MAD_CONF = [ MARKET_MAD_CONF = [ NAME = "http", + SUNSTONE_NAME = "HTTP server", REQUIRED_ATTRS = "BASE_URL,PUBLIC_DIR", APP_ACTIONS = "create, delete, monitor" ] MARKET_MAD_CONF = [ NAME = "s3", + SUNSTONE_NAME = "Amazon S3", REQUIRED_ATTRS = "ACCESS_KEY_ID,SECRET_ACCESS_KEY,REGION,BUCKET", APP_ACTIONS = "create, delete, monitor" ] diff --git a/src/sunstone/public/app/tabs/files-tab/form-panels/create/wizard.hbs b/src/sunstone/public/app/tabs/files-tab/form-panels/create/wizard.hbs index 30b964b481..cb4c923365 100644 --- a/src/sunstone/public/app/tabs/files-tab/form-panels/create/wizard.hbs +++ b/src/sunstone/public/app/tabs/files-tab/form-panels/create/wizard.hbs @@ -19,18 +19,11 @@
@@ -38,16 +31,7 @@
- + @@ -81,9 +64,6 @@
diff --git a/src/sunstone/public/app/tabs/images-tab/form-panels/create/wizard.hbs b/src/sunstone/public/app/tabs/images-tab/form-panels/create/wizard.hbs index 37f3520e3d..f2f431112c 100644 --- a/src/sunstone/public/app/tabs/images-tab/form-panels/create/wizard.hbs +++ b/src/sunstone/public/app/tabs/images-tab/form-panels/create/wizard.hbs @@ -19,18 +19,12 @@
@@ -38,30 +32,17 @@
@@ -71,23 +52,22 @@
{{/isTabActionEnabled}}
- {{tr "Image location"}}: + {{tr "Image location"}}
- + - +

@@ -95,9 +75,6 @@
@@ -111,18 +88,13 @@
@@ -165,9 +133,6 @@
@@ -204,10 +166,7 @@
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 3e85ec8994..481c14a147 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,56 +43,50 @@ define(function(require) { var MARKET_MAD_ATTRS = [ { name: 'ENDPOINT', - label: Locale.tr("Endpoint"), - tooltip: Locale.tr("URL of AppMarket."), + label: Locale.tr("Endpoint URL for marketplace"), driver: 'one' }, { name: 'BASE_URL', - label: Locale.tr("Base URL"), - tooltip: Locale.tr("URL base to generate app end points, where the PUBLIC_DIR is accessible."), + label: Locale.tr("Base URL for marketapp"), driver: 'http' }, { name: 'PUBLIC_DIR', - label: Locale.tr("Public Directory"), - tooltip: Locale.tr("Absolute directory path to place images, the document root for http server, in the frontend or in the hosts pointed at by the BRIDGE_LIST directive."), + label: Locale.tr("Marketapp directory path"), + tooltip: Locale.tr("This is the document root for http server"), driver: 'http' }, { name: 'BRIDGE_LIST', - label: Locale.tr("Bridge List"), - tooltip: Locale.tr("Comma separated list of servers to access the public directory. If not defined, public directory will be local"), + label: Locale.tr("Storage bridge list"), + tooltip: Locale.tr("Comma separated list of servers to access the image directory if not local"), driver: 'http' }, { name: 'ACCESS_KEY_ID', label: Locale.tr("Access Key Id"), - tooltip: Locale.tr("The access key of the S3 user."), driver: 's3' }, { name: 'SECRET_ACCESS_KEY', label: Locale.tr("Secret Access Key"), - tooltip: Locale.tr("The secret key of the S3 user."), driver: 's3' }, { name: 'BUCKET', - label: Locale.tr("Bucket"), - tooltip: Locale.tr("The bucket where the files will be stored."), + label: Locale.tr("S3 bucket to store marketapps"), driver: 's3' }, { name: 'REGION', - label: Locale.tr("Region"), - tooltip: Locale.tr("The region to connect to. If you are using Ceph-S3 any value here will work."), + label: Locale.tr("Amazon Region"), + tooltip: Locale.tr("Only if using public Amazon S3 service."), driver: 's3' }, { name: 'TOTAL_MB', - label: Locale.tr("Total MB"), - tooltip: Locale.tr("This parameter defines the Total size of the MarketPlace in MB. It defaults to 1024 GB."), + label: Locale.tr("Total Marketplace size in MB"), driver: 's3' }, { @@ -103,8 +97,7 @@ define(function(require) { }, { name: 'ENDPOINT', - label: Locale.tr("Endpoint"), - tooltip: Locale.tr("The URL of AppMarket."), + label: Locale.tr("Endpoint URL for marketplace"), driver: 's3' }, { @@ -115,8 +108,8 @@ define(function(require) { }, { name: 'READ_LENGTH', - label: Locale.tr("Read Length"), - tooltip: Locale.tr("Split the file into chunks of this size (in MB). You should **never** user a quantity larger than 100. Defaults to 32 (MB)."), + 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' } ] @@ -145,7 +138,10 @@ define(function(require) { that.marketMadNameList = []; if (Config.onedConf.MARKET_MAD_CONF !== undefined) { $.each(Config.onedConf.MARKET_MAD_CONF, function(index, marketMad) { - that.marketMadNameList.push(marketMad["NAME"]); + that.marketMadNameList.push({ + "mad" : marketMad["NAME"], + "name": marketMad["SUNSTONE_NAME"] + }); }); } 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 9df7356260..78b94464c8 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 @@ -17,46 +17,44 @@
-
- +
+ + +
+
+
+
+
-
+
-
-
- - -
-
-
-
-
- {{#each marketMadAttrs}} -
- - -
- {{/each}} -
+
+
+ {{tr "Configuration attributes"}} +
+ {{#each marketMadAttrs}} +
+ + +
+ {{/each}} +
+
\ No newline at end of file