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:
Pranav Saxena 2012-11-28 07:22:52 +05:30
parent d272144efb
commit 0979e5a0d0
2 changed files with 11 additions and 4 deletions

View File

@ -3616,12 +3616,14 @@
publicnetwork: {
label: 'label.public.network',
defaultValue: 'untrusted',
docID: 'helpSRXPublicNetwork'
docID: 'helpSRXPublicNetwork',
isDisabled:true
},
privatenetwork: {
label: 'label.private.network',
defaultValue: 'trusted',
docID: 'helpSRXPrivateNetwork'
docID: 'helpSRXPrivateNetwork',
isDisabled:true
},
capacity: {
label: 'label.capacity',
@ -6513,11 +6515,13 @@
// },
publicnetwork: {
label: 'label.public.network',
defaultValue: 'untrusted'
defaultValue: 'untrusted',
isDisabled:true
},
privatenetwork: {
label: 'label.private.network',
defaultValue: 'trusted'
defaultValue: 'trusted',
isDisabled:true
},
capacity: {
label: 'label.capacity',

View File

@ -368,6 +368,9 @@
$input.attr('id', inputId);
$name.find('label').attr('for', inputId);
if(field.isDisabled)
$input.attr("disabled","disabled");
// Tooltip
if (field.docID) {
$input.toolTip({