From e35bec515fd1aca3e3e6e241c1534b40f890ce44 Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Tue, 15 Apr 2014 14:40:05 -0700 Subject: [PATCH] CLOUDSTACK-6342: UI changes for secondary IP on LB rules This is front-end only; API call changes still need to be done. --- .../classes/resources/messages.properties | 2 ++ ui/css/cloudstack3.css | 35 ++++++++++++++----- ui/dictionary.jsp | 2 ++ ui/scripts/network.js | 10 ++++-- ui/scripts/ui/widgets/listView.js | 13 +++++-- 5 files changed, 50 insertions(+), 12 deletions(-) diff --git a/client/WEB-INF/classes/resources/messages.properties b/client/WEB-INF/classes/resources/messages.properties index f40ac609d7e..b58f9521752 100644 --- a/client/WEB-INF/classes/resources/messages.properties +++ b/client/WEB-INF/classes/resources/messages.properties @@ -14,6 +14,8 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. +message.listView.subselect.multi=(Ctrl/Cmd-click) +label.use.vm.ips=Use VM IPs label.reinstall.vm=Reinstall VM message.reinstall.vm=NOTE: Proceed with caution. This will cause the VM to be reinstalled from the template; data on the root disk will be lost. Extra data volumes, if any, will not be touched. label.recover.vm=Recover VM diff --git a/ui/css/cloudstack3.css b/ui/css/cloudstack3.css index 6602c161c46..c0f7c004407 100644 --- a/ui/css/cloudstack3.css +++ b/ui/css/cloudstack3.css @@ -1333,7 +1333,7 @@ div.list-view td.first { cursor: pointer; } -div.list-view td.first:hover { +div.list-view tr:not(.multi-edit-selected) td.first:hover { color: #3A82CD; } @@ -1978,6 +1978,11 @@ div.copypasteicon:hover { margin: 4px 0 0 12px; } +.list-view .subselect span.info { + font-size: 10px; + white-space: nowrap; +} + .list-view .subselect select { width: 85%; margin: 5px 0 4px; @@ -7939,23 +7944,37 @@ div.panel.ui-dialog div.list-view div.fixed-header { /*List-view: subselect dropdown*/ .list-view .subselect { - width: 116px; + width: 102px; + cursor: default; display: block; float: left; - background: url(../images/bg-gradients.png) 0px -42px; + background: #EFEFEF; padding: 0; margin: 8px 0 1px 7px; clear: both; border: 1px solid #A8A7A7; - /*+border-radius:4px;*/ - -moz-border-radius: 4px; - -webkit-border-radius: 4px; - -khtml-border-radius: 4px; - border-radius: 4px; + /*+border-radius:2px;*/ + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + -khtml-border-radius: 2px; + border-radius: 2px; +} + +.list-view .subselect:hover span { + color: initial; } .list-view .subselect span { margin: 4px 0 0 12px; + cursor: default; +} + +.list-view .subselect span.info { + background: none; +} + +.list-view .subselect span:hover { + color: initial; } .list-view .subselect select { diff --git a/ui/dictionary.jsp b/ui/dictionary.jsp index c2fa55b9ad1..8155204d3ac 100644 --- a/ui/dictionary.jsp +++ b/ui/dictionary.jsp @@ -25,6 +25,8 @@ under the License. <% long now = System.currentTimeMillis(); %>