mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-553:SRX - When adding SRX device make Public Network - default to untrusted and Private Network - default to trusted as un-editable fields
This commit is contained in:
parent
d272144efb
commit
0979e5a0d0
@ -3616,12 +3616,14 @@
|
|||||||
publicnetwork: {
|
publicnetwork: {
|
||||||
label: 'label.public.network',
|
label: 'label.public.network',
|
||||||
defaultValue: 'untrusted',
|
defaultValue: 'untrusted',
|
||||||
docID: 'helpSRXPublicNetwork'
|
docID: 'helpSRXPublicNetwork',
|
||||||
|
isDisabled:true
|
||||||
},
|
},
|
||||||
privatenetwork: {
|
privatenetwork: {
|
||||||
label: 'label.private.network',
|
label: 'label.private.network',
|
||||||
defaultValue: 'trusted',
|
defaultValue: 'trusted',
|
||||||
docID: 'helpSRXPrivateNetwork'
|
docID: 'helpSRXPrivateNetwork',
|
||||||
|
isDisabled:true
|
||||||
},
|
},
|
||||||
capacity: {
|
capacity: {
|
||||||
label: 'label.capacity',
|
label: 'label.capacity',
|
||||||
@ -6513,11 +6515,13 @@
|
|||||||
// },
|
// },
|
||||||
publicnetwork: {
|
publicnetwork: {
|
||||||
label: 'label.public.network',
|
label: 'label.public.network',
|
||||||
defaultValue: 'untrusted'
|
defaultValue: 'untrusted',
|
||||||
|
isDisabled:true
|
||||||
},
|
},
|
||||||
privatenetwork: {
|
privatenetwork: {
|
||||||
label: 'label.private.network',
|
label: 'label.private.network',
|
||||||
defaultValue: 'trusted'
|
defaultValue: 'trusted',
|
||||||
|
isDisabled:true
|
||||||
},
|
},
|
||||||
capacity: {
|
capacity: {
|
||||||
label: 'label.capacity',
|
label: 'label.capacity',
|
||||||
|
|||||||
@ -368,6 +368,9 @@
|
|||||||
$input.attr('id', inputId);
|
$input.attr('id', inputId);
|
||||||
$name.find('label').attr('for', inputId);
|
$name.find('label').attr('for', inputId);
|
||||||
|
|
||||||
|
if(field.isDisabled)
|
||||||
|
$input.attr("disabled","disabled");
|
||||||
|
|
||||||
// Tooltip
|
// Tooltip
|
||||||
if (field.docID) {
|
if (field.docID) {
|
||||||
$input.toolTip({
|
$input.toolTip({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user