diff --git a/ui/css/cloudstack3.css b/ui/css/cloudstack3.css index f7d7b3de3a1..ac27ff555f7 100644 --- a/ui/css/cloudstack3.css +++ b/ui/css/cloudstack3.css @@ -9698,6 +9698,43 @@ div.panel.ui-dialog div.list-view div.fixed-header { max-width: 184px !important; } +div.ui-dialog div.acl div.multi-edit table.multi-edit thead tr th, +div.ui-dialog div.acl div.multi-edit table.multi-edit tbody tr td { + min-width: 75px; +} + +div.ui-dialog div.acl div.multi-edit div.data div.data-body div.data-item table tbody tr td { + width: 100%; + min-width: 77px; +} + +.detail-view .acl .multi-edit { +} + +.detail-view .acl .multi-edit th, +.detail-view .acl .multi-edit td { + padding-right: 0px !important; + min-width: 25px !important; +} + +.detail-view .acl .multi-edit th { + font-size: 10px; +} + +.detail-view .acl .multi-edit input { + width: 50px; +} + +.detail-view .acl .multi-edit .add-vm { + width: 51px; + text-indent: 0px; + padding-right: 0px; +} + +.detail-view .acl .multi-edit td.multi-actions { + width: 65px; +} + /*Autoscaler*/ .ui-dialog div.autoscaler { overflow: auto; diff --git a/ui/scripts/ui-custom/vpc.js b/ui/scripts/ui-custom/vpc.js index f4bd5e0059e..4e432801223 100644 --- a/ui/scripts/ui-custom/vpc.js +++ b/ui/scripts/ui-custom/vpc.js @@ -16,21 +16,53 @@ // under the License. (function($, cloudStack) { var elems = { + aclDialog: function(args) { + var isDialog = args.isDialog; + var actionArgs = args.actionArgs; + var context = args.context; + var $acl = $('
').addClass('acl').multiEdit( + $.extend(true, {}, actionArgs.multiEdit, { + context: context + }) + ); + + // Show ACL dialog + if (isDialog) { + $acl.dialog({ + title: 'Configure ACL', + dialogClass: 'configure-acl', + width: 900, + height: 600, + buttons: { + 'Done': function() { + $(':ui-dialog').remove(); + $('.overlay').remove(); + } + } + }); + } + + return $acl; + }, vpcConfigureTooltip: function(args) { + var context = args.context; var $browser = args.$browser; var $chart = args.$chart; var ipAddresses = args.ipAddresses; + var acl = args.acl; var gateways = args.gateways; var siteToSiteVPN = args.siteToSiteVPN; var links = { 'ip-addresses': 'IP Addresses', 'gateways': 'Private Gateway', - 'site-to-site-vpn': 'Site-to-site VPN' + 'site-to-site-vpn': 'Site-to-site VPN', + 'network-acls': 'ACLs' }; var $links = $('