mirror of https://github.com/apache/cloudstack.git
Adding placeholders for custom NSP vues (#5620)
* Adding placeholders for custom NSP vues * Fix decorator * Fixing gslbproviderprivateip description
This commit is contained in:
parent
ee9c05b5fa
commit
6fa8538666
|
|
@ -83,7 +83,7 @@ public class AddNetscalerLoadBalancerCmd extends BaseAsyncCmd {
|
|||
@Parameter(name = ApiConstants.GSLB_PROVIDER_PUBLIC_IP, type = CommandType.STRING, required = false, description = "public IP of the site")
|
||||
private String gslbSitePublicIp;
|
||||
|
||||
@Parameter(name = ApiConstants.GSLB_PROVIDER_PRIVATE_IP, type = CommandType.STRING, required = false, description = "public IP of the site")
|
||||
@Parameter(name = ApiConstants.GSLB_PROVIDER_PRIVATE_IP, type = CommandType.STRING, required = false, description = "private IP of the site")
|
||||
private String gslbSitePrivateIp;
|
||||
|
||||
@Parameter(name = ApiConstants.EXCLUSIVE_GSLB_PROVIDER,
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@
|
|||
<a-col :md="24" :lg="24">
|
||||
<a-form-item :label="$t('label.ip')">
|
||||
<a-input
|
||||
:placeholder="apiParams.url.description"
|
||||
autoFocus
|
||||
v-decorator="['ip', {
|
||||
rules: [{ required: true, message: $t('message.error.required.input') }]
|
||||
|
|
@ -36,6 +37,7 @@
|
|||
<a-col :md="24" :lg="24">
|
||||
<a-form-item :label="$t('label.username')">
|
||||
<a-input
|
||||
:placeholder="apiParams.username.description"
|
||||
v-decorator="['username', {
|
||||
rules: [{ required: true, message: $t('message.error.required.input') }]
|
||||
}]" />
|
||||
|
|
@ -46,6 +48,7 @@
|
|||
<a-col :md="24" :lg="24">
|
||||
<a-form-item :label="$t('label.password')">
|
||||
<a-input-password
|
||||
:placeholder="apiParams.password.description"
|
||||
v-decorator="['password', {
|
||||
rules: [{ required: true, message: $t('message.error.required.input') }]
|
||||
}]" />
|
||||
|
|
@ -56,6 +59,7 @@
|
|||
<a-col :md="24" :lg="24">
|
||||
<a-form-item :label="$t('label.networkdevicetype')">
|
||||
<a-select
|
||||
:placeholder="apiParams.networkdevicetype.description"
|
||||
v-decorator="['networkdevicetype', {
|
||||
rules: [{ required: true, message: $t('message.error.select') }]
|
||||
}]"
|
||||
|
|
@ -135,6 +139,7 @@ export default {
|
|||
},
|
||||
data () {
|
||||
return {
|
||||
apiParams: {},
|
||||
loading: false,
|
||||
nsp: {}
|
||||
}
|
||||
|
|
@ -153,6 +158,9 @@ export default {
|
|||
beforeCreate () {
|
||||
this.form = this.$form.createForm(this)
|
||||
},
|
||||
created () {
|
||||
this.apiParams = this.$getApiParams('addF5LoadBalancer')
|
||||
},
|
||||
mounted () {
|
||||
if (this.resource && Object.keys(this.resource).length > 0) {
|
||||
this.nsp = this.resource
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@
|
|||
<a-col :md="24" :lg="24">
|
||||
<a-form-item :label="$t('label.ip')">
|
||||
<a-input
|
||||
:placeholder="apiParams.url.description"
|
||||
autoFocus
|
||||
v-decorator="['ip', {
|
||||
rules: [{ required: true, message: $t('message.error.required.input') }]
|
||||
|
|
@ -36,6 +37,7 @@
|
|||
<a-col :md="24" :lg="24">
|
||||
<a-form-item :label="$t('label.username')">
|
||||
<a-input
|
||||
:placeholder="apiParams.username.description"
|
||||
v-decorator="['username', {
|
||||
rules: [{ required: true, message: $t('message.error.required.input') }]
|
||||
}]" />
|
||||
|
|
@ -46,6 +48,7 @@
|
|||
<a-col :md="24" :lg="24">
|
||||
<a-form-item :label="$t('label.password')">
|
||||
<a-input-password
|
||||
:placeholder="apiParams.password.description"
|
||||
v-decorator="['password', {
|
||||
rules: [{ required: true, message: $t('message.error.required.input') }]
|
||||
}]" />
|
||||
|
|
@ -56,6 +59,7 @@
|
|||
<a-col :md="24" :lg="24">
|
||||
<a-form-item :label="$t('label.networkdevicetype')">
|
||||
<a-select
|
||||
:placeholder="apiParams.networkdevicetype.description"
|
||||
v-decorator="['networkdevicetype', {
|
||||
rules: [{ required: true, message: $t('message.error.select') }]
|
||||
}]"
|
||||
|
|
@ -91,6 +95,7 @@
|
|||
<a-col :md="24" :lg="24">
|
||||
<a-form-item :label="$t('label.gslbprovider')">
|
||||
<a-switch
|
||||
:placeholder="apiParams.gslbprovider.description"
|
||||
v-decorator="['gslbprovider', { initialValue: false }]" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
|
@ -99,6 +104,7 @@
|
|||
<a-col :md="24" :lg="24">
|
||||
<a-form-item :label="$t('label.gslbproviderpublicip')">
|
||||
<a-input
|
||||
:placeholder="apiParams.gslbproviderpublicip.description"
|
||||
v-decorator="['gslbproviderpublicip']" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
|
@ -107,6 +113,7 @@
|
|||
<a-col :md="24" :lg="24">
|
||||
<a-form-item :label="$t('label.gslbproviderprivateip')">
|
||||
<a-input
|
||||
:placeholder="apiParams.gslbproviderprivateip.description"
|
||||
v-decorator="['gslbproviderprivateip']" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
|
@ -159,6 +166,7 @@ export default {
|
|||
},
|
||||
data () {
|
||||
return {
|
||||
apiParams: {},
|
||||
loading: false,
|
||||
nsp: {}
|
||||
}
|
||||
|
|
@ -185,6 +193,9 @@ export default {
|
|||
beforeCreate () {
|
||||
this.form = this.$form.createForm(this)
|
||||
},
|
||||
created () {
|
||||
this.apiParams = this.$getApiParams('addNetscalerLoadBalancer')
|
||||
},
|
||||
mounted () {
|
||||
if (this.resource && Object.keys(this.resource).length > 0) {
|
||||
this.nsp = this.resource
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<a-form-item :label="$t('label.ip')">
|
||||
<a-input
|
||||
autoFocus
|
||||
:placeholder="apiParams.hostname.description"
|
||||
v-decorator="['ip', {
|
||||
rules: [{ required: true, message: $t('message.error.required.input') }]
|
||||
}]" />
|
||||
|
|
@ -36,6 +37,7 @@
|
|||
<a-col :md="24" :lg="24">
|
||||
<a-form-item :label="$t('label.username')">
|
||||
<a-input
|
||||
:placeholder="apiParams.username.description"
|
||||
v-decorator="['username', {
|
||||
rules: [{ required: true, message: $t('message.error.required.input') }]
|
||||
}]" />
|
||||
|
|
@ -46,6 +48,7 @@
|
|||
<a-col :md="24" :lg="24">
|
||||
<a-form-item :label="$t('label.password')">
|
||||
<a-input-password
|
||||
:placeholder="apiParams.password.description"
|
||||
v-decorator="['password', {
|
||||
rules: [{ required: true, message: $t('message.error.required.input') }]
|
||||
}]" />
|
||||
|
|
@ -65,6 +68,7 @@
|
|||
<a-col :md="24" :lg="24">
|
||||
<a-form-item :label="$t('label.transportzoneuuid')">
|
||||
<a-input
|
||||
:placeholder="apiParams.transportzoneuuid.description"
|
||||
v-decorator="['transportzoneuuid']" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
|
@ -73,6 +77,7 @@
|
|||
<a-col :md="24" :lg="24">
|
||||
<a-form-item :label="$t('label.l3gatewayserviceuuid')">
|
||||
<a-input
|
||||
:placeholder="apiParams.l3gatewayserviceuuid.description"
|
||||
v-decorator="['l3gatewayserviceuuid']" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
|
@ -81,6 +86,7 @@
|
|||
<a-col :md="24" :lg="24">
|
||||
<a-form-item :label="$t('label.l2gatewayserviceuuid')">
|
||||
<a-input
|
||||
:placeholder="apiParams.l2gatewayserviceuuid.description"
|
||||
v-decorator="['l2gatewayserviceuuid']" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
|
@ -110,6 +116,7 @@ export default {
|
|||
},
|
||||
data () {
|
||||
return {
|
||||
apiParams: {},
|
||||
loading: false,
|
||||
nsp: {}
|
||||
}
|
||||
|
|
@ -117,6 +124,9 @@ export default {
|
|||
beforeCreate () {
|
||||
this.form = this.$form.createForm(this)
|
||||
},
|
||||
created () {
|
||||
this.apiParams = this.$getApiParams('addNiciraNvpDevice')
|
||||
},
|
||||
mounted () {
|
||||
if (this.resource && Object.keys(this.resource).length > 0) {
|
||||
this.nsp = this.resource
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<a-form-item :label="$t('label.ip')">
|
||||
<a-input
|
||||
autoFocus
|
||||
:placeholder="apiParams.url.description"
|
||||
v-decorator="['ip', {
|
||||
rules: [{ required: true, message: $t('message.error.required.input') }]
|
||||
}]" />
|
||||
|
|
@ -36,6 +37,7 @@
|
|||
<a-col :md="24" :lg="24">
|
||||
<a-form-item :label="$t('label.username')">
|
||||
<a-input
|
||||
:placeholder="apiParams.username.description"
|
||||
v-decorator="['username', {
|
||||
rules: [{ required: true, message: $t('message.error.required.input') }]
|
||||
}]" />
|
||||
|
|
@ -46,6 +48,7 @@
|
|||
<a-col :md="24" :lg="24">
|
||||
<a-form-item :label="$t('label.password')">
|
||||
<a-input-password
|
||||
:placeholder="apiParams.password.description"
|
||||
v-decorator="['password', {
|
||||
rules: [{ required: true, message: $t('message.error.required.input') }]
|
||||
}]" />
|
||||
|
|
@ -56,6 +59,7 @@
|
|||
<a-col :md="24" :lg="24">
|
||||
<a-form-item :label="$t('label.networkdevicetype')">
|
||||
<a-select
|
||||
:placeholder="apiParams.networkdevicetype.description"
|
||||
v-decorator="['networkdevicetype', {
|
||||
rules: [{ required: true, message: $t('message.error.select') }]
|
||||
}]"
|
||||
|
|
@ -182,6 +186,7 @@ export default {
|
|||
},
|
||||
data () {
|
||||
return {
|
||||
apiParams: {},
|
||||
loading: false,
|
||||
nsp: {}
|
||||
}
|
||||
|
|
@ -200,6 +205,9 @@ export default {
|
|||
beforeCreate () {
|
||||
this.form = this.$form.createForm(this)
|
||||
},
|
||||
created () {
|
||||
this.apiParams = this.$getApiParams('addPaloAltoFirewall')
|
||||
},
|
||||
mounted () {
|
||||
if (this.resource && Object.keys(this.resource).length > 0) {
|
||||
this.nsp = this.resource
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@
|
|||
<a-col :md="24" :lg="24">
|
||||
<a-form-item :label="$t('label.ip')">
|
||||
<a-input
|
||||
:placeholder="apiParams.url.description"
|
||||
autoFocus
|
||||
v-decorator="['ip', {
|
||||
rules: [{ required: true, message: $t('message.error.required.input') }]
|
||||
|
|
@ -36,6 +37,7 @@
|
|||
<a-col :md="24" :lg="24">
|
||||
<a-form-item :label="$t('label.username')">
|
||||
<a-input
|
||||
:placeholder="apiParams.username.description"
|
||||
v-decorator="['username', {
|
||||
rules: [{ required: true, message: $t('message.error.required.input') }]
|
||||
}]" />
|
||||
|
|
@ -46,6 +48,7 @@
|
|||
<a-col :md="24" :lg="24">
|
||||
<a-form-item :label="$t('label.password')">
|
||||
<a-input-password
|
||||
:placeholder="apiParams.password.description"
|
||||
v-decorator="['password', {
|
||||
rules: [{ required: true, message: $t('message.error.required.input') }]
|
||||
}]" />
|
||||
|
|
@ -56,6 +59,7 @@
|
|||
<a-col :md="24" :lg="24">
|
||||
<a-form-item :label="$t('label.networkdevicetype')">
|
||||
<a-select
|
||||
:placeholder="apiParams.networkdevicetype.description"
|
||||
v-decorator="['networkdevicetype', {
|
||||
rules: [{ required: true, message: $t('message.error.select') }]
|
||||
}]"
|
||||
|
|
@ -160,6 +164,7 @@ export default {
|
|||
},
|
||||
data () {
|
||||
return {
|
||||
apiParams: {},
|
||||
loading: false,
|
||||
nsp: {}
|
||||
}
|
||||
|
|
@ -178,6 +183,9 @@ export default {
|
|||
beforeCreate () {
|
||||
this.form = this.$form.createForm(this)
|
||||
},
|
||||
created () {
|
||||
this.apiParams = this.$getApiParams('addSrxFirewall')
|
||||
},
|
||||
mounted () {
|
||||
if (this.resource && Object.keys(this.resource).length > 0) {
|
||||
this.nsp = this.resource
|
||||
|
|
|
|||
Loading…
Reference in New Issue