Detail view, multi-groups: Put 'add' button on top
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/1a80f9e1 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/1a80f9e1 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/1a80f9e1 Branch: refs/heads/ui-add-remove-nics Commit: 1a80f9e1f41bc92ef881e78282980b8d298c2259 Parents: ece8b8c Author: Brian Federle <brian.fede...@citrix.com> Authored: Wed Apr 3 14:52:38 2013 -0700 Committer: Brian Federle <brian.fede...@citrix.com> Committed: Wed Apr 3 14:52:38 2013 -0700 ---------------------------------------------------------------------- ui/css/cloudstack3.css | 7 ++++++- ui/scripts/ui/widgets/detailView.js | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/1a80f9e1/ui/css/cloudstack3.css ---------------------------------------------------------------------- diff --git a/ui/css/cloudstack3.css b/ui/css/cloudstack3.css index 015206b..a0b8602 100644 --- a/ui/css/cloudstack3.css +++ b/ui/css/cloudstack3.css @@ -1774,8 +1774,13 @@ div.list-view td.state.off span { } .detail-view .detail-group .button.add { + clear: both; + margin: 0px 21px 13px 0 !important; +} + +.detail-view .details.group-multiple { float: left; - margin: 6px 0 17px 13px; + width: 100%; } /*List-view: subselect dropdown*/ http://git-wip-us.apache.org/repos/asf/cloudstack/blob/1a80f9e1/ui/scripts/ui/widgets/detailView.js ---------------------------------------------------------------------- diff --git a/ui/scripts/ui/widgets/detailView.js b/ui/scripts/ui/widgets/detailView.js index 7b202ef..427010a 100644 --- a/ui/scripts/ui/widgets/detailView.js +++ b/ui/scripts/ui/widgets/detailView.js @@ -1077,7 +1077,7 @@ // Add item action if (tabData.multiple && tabData.actions && tabData.actions.add) { - $tabContent.append( + $tabContent.prepend( $('<div>').addClass('button add').append( $('<span>').addClass('icon').html(' '), $('<span>').html(_l(tabData.actions.add.label))