Fix UI definitions

* Make Unit Naming Pattern visable, since this feature is working correctly.
  Also, correct validators were added.
* Make Avalibility zone visiable and add to the Application models.
* Use ` symbol instead of ' as apostrophe.
  Otherwise it looks like the string ending backtick is forgotten

Change-Id: Iecf3122f388019da42b20bd1eefdb827586018d7
This commit is contained in:
Ekaterina Chernova 2015-01-23 12:51:16 +03:00
parent b4ceecdce9
commit aa5b9b88ba
7 changed files with 71 additions and 35 deletions

View File

@ -6,10 +6,10 @@ Application:
name: $.appConfiguration.name
database: $.appConfiguration.database
server: $.appConfiguration.server
monitoring: $.appConfiguration.zabbix
dbName: $.dbConfiguration.database
dbUser: $.dbConfiguration.username
dbPassword: $.dbConfiguration.password
monitoring: $.appConfiguration.zabbix
Forms:
@ -26,7 +26,7 @@ Forms:
type: io.murano.databases.MySql
label: Database Server
description: >-
Select a database server to host the application's database
Select a database server to host the application`s database
- name: server
type: io.murano.apps.apache.ApacheHttpServer
label: HTTP Server

View File

@ -44,4 +44,4 @@ Forms:
- [ICMP, 'ICMP']
initial: ICMP
description: >-
Choose probe method
Choose probe method

View File

@ -14,6 +14,7 @@ Application:
flavor: $.instanceConfiguration.flavor
image: $.instanceConfiguration.osImage
keyname: $.instanceConfiguration.keyPair
availabilityZone: $.instanceConfiguration.availabilityZone
assignFloatingIp: $.appConfiguration.assignFloatingIP
Forms:
@ -92,8 +93,14 @@ Forms:
required: false
- name: unitNamingPattern
type: string
label: Instance Naming Pattern
required: false
hidden: true
widgetMedia:
js: ['muranodashboard/js/support_placeholder.js']
css: {all: ['muranodashboard/css/support_placeholder.css']}
maxLength: 200
regexpValidator: '^[-_\w]+$'
errorMessages:
invalid: Just letters, numbers, underscores and hyphens are allowed.
helpText: Just letters, numbers, underscores and hyphens are allowed.
description: >-
Specify a string, that will be used in instance hostname.
Just A-Z, a-z, 0-9, dash and underline are allowed.

View File

@ -8,10 +8,11 @@ Application:
instance:
?:
type: io.murano.resources.LinuxMuranoInstance
name: generateHostname($.appConfiguration.unitNamingPattern, 1)
name: generateHostname($.instanceConfiguration.unitNamingPattern, 1)
flavor: $.instanceConfiguration.flavor
image: $.instanceConfiguration.osImage
keyname: $.instanceConfiguration.keyPair
availabilityZone: $.instanceConfiguration.availabilityZone
assignFloatingIp: $.appConfiguration.assignFloatingIP
Forms:
@ -46,13 +47,7 @@ Forms:
type: integer
hidden: true
initial: 1
- name: unitNamingPattern
type: string
required: false
hidden: true
widgetMedia:
js: ['muranodashboard/js/support_placeholder.js']
css: {all: ['muranodashboard/css/support_placeholder.css']}
- instanceConfiguration:
fields:
- name: title
@ -86,3 +81,16 @@ Forms:
label: Availability zone
description: Select availability zone where application would be installed.
required: false
- name: unitNamingPattern
type: string
label: Instance Naming Pattern
required: false
maxLength: 200
regexpValidator: '^[-_\w]+$'
errorMessages:
invalid: Just letters, numbers, underscores and hyphens are allowed.
helpText: Just letters, numbers, underscores and hyphens are allowed.
description: >-
Specify a string, that will be used in instance hostname.
Just A-Z, a-z, 0-9, dash and underline are allowed.

View File

@ -11,6 +11,7 @@ Application:
flavor: $.instanceConfiguration.flavor
image: $.instanceConfiguration.osImage
keyname: $.instanceConfiguration.keyPair
availabilityZone: $.instanceConfiguration.availabilityZone
assignFloatingIp: $.appConfiguration.assignFloatingIP
Forms:
@ -66,9 +67,15 @@ Forms:
description: Select availability zone where the application would be installed.
required: false
- name: unitNamingPattern
label: Hostname
type: string
label: Instance Naming Pattern
required: false
widgetMedia:
js: ['muranodashboard/js/support_placeholder.js']
css: {all: ['muranodashboard/css/support_placeholder.css']}
maxLength: 200
regexpValidator: '^[-_\w]+$'
errorMessages:
invalid: Just letters, numbers, underscores and hyphens are allowed.
helpText: Just letters, numbers, underscores and hyphens are allowed.
description: >-
Specify a string, that will be used in instance hostname.
Just A-Z, a-z, 0-9, dash and underline are allowed.

View File

@ -10,10 +10,11 @@ Application:
instance:
?:
type: io.murano.resources.LinuxMuranoInstance
name: generateHostname($.appConfiguration.unitNamingPattern, 1)
name: generateHostname($.instanceConfiguration.unitNamingPattern, 1)
flavor: $.instanceConfiguration.flavor
image: $.instanceConfiguration.osImage
keyname: $.instanceConfiguration.keyPair
availabilityZone: $.instanceConfiguration.availabilityZone
assignFloatingIp: $.appConfiguration.assignFloatingIP
Forms:
@ -33,13 +34,6 @@ Forms:
Select to true to assign floating IP automatically
initial: false
required: false
- name: unitNamingPattern
type: string
required: false
hidden: true
widgetMedia:
js: ['muranodashboard/js/support_placeholder.js']
css: {all: ['muranodashboard/css/support_placeholder.css']}
- initDatabaseConfiguration:
fields:
@ -102,4 +96,18 @@ Forms:
label: Availability zone
description: Select availability zone where the application would be installed.
required: false
- name: unitNamingPattern
type: string
label: Instance Naming Pattern
required: false
maxLength: 200
regexpValidator: '^[-_\w]+$'
errorMessages:
invalid: Just letters, numbers, underscores and hyphens are allowed.
helpText: Just letters, numbers, underscores and hyphens are allowed.
description: >-
Specify a string, that will be used in instance hostname.
Just A-Z, a-z, 0-9, dash and underline are allowed.

View File

@ -10,10 +10,11 @@ Application:
instance:
?:
type: io.murano.resources.LinuxMuranoInstance
name: generateHostname($.appConfiguration.unitNamingPattern, 1)
name: generateHostname($.instanceConfiguration.unitNamingPattern, 1)
flavor: $.instanceConfiguration.flavor
image: $.instanceConfiguration.osImage
keyname: $.instanceConfiguration.keyPair
availabilityZone: $.instanceConfiguration.availabilityZone
assignFloatingIp: $.appConfiguration.assignFloatingIP
Forms:
@ -33,13 +34,6 @@ Forms:
Select to true to assign floating IP automatically
initial: false
required: false
- name: unitNamingPattern
type: string
required: false
hidden: true
widgetMedia:
js: ['muranodashboard/js/support_placeholder.js']
css: {all: ['muranodashboard/css/support_placeholder.css']}
- initDatabaseConfiguration:
fields:
- name: title
@ -100,3 +94,15 @@ Forms:
label: Availability zone
description: Select availability zone where the application would be installed.
required: false
- name: unitNamingPattern
type: string
label: Instance Naming Pattern
required: false
maxLength: 200
regexpValidator: '^[-_\w]+$'
errorMessages:
invalid: Just letters, numbers, underscores and hyphens are allowed.
helpText: Just letters, numbers, underscores and hyphens are allowed.
description: >-
Specify a string, that will be used in instance hostname.
Just A-Z, a-z, 0-9, dash and underline are allowed.