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: { 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',

View File

@ -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({