cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [1/2] git commit: updated refs/heads/master to 9e2026a
Date Fri, 21 Jun 2013 21:39:45 GMT
Updated Branches:
  refs/heads/master 364f26327 -> 9e2026a2e


UI form dialog: Support left-right field columns

For larger forms, if 'bigSize' is specified in form options, dialog
will widen to a 2-column layout. This is to prevent the form fields
from going off the bottom of the screen.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/8bd204f7
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/8bd204f7
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/8bd204f7

Branch: refs/heads/master
Commit: 8bd204f77123ef390b7d260513ff03c22fe5b226
Parents: 364f263
Author: Brian Federle <brian.federle@citrix.com>
Authored: Fri Jun 21 14:33:26 2013 -0700
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Fri Jun 21 14:33:26 2013 -0700

----------------------------------------------------------------------
 ui/css/cloudstack3.css  | 4 ++++
 ui/scripts/ui/dialog.js | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/8bd204f7/ui/css/cloudstack3.css
----------------------------------------------------------------------
diff --git a/ui/css/cloudstack3.css b/ui/css/cloudstack3.css
index 7113dbc..a89e0c3 100644
--- a/ui/css/cloudstack3.css
+++ b/ui/css/cloudstack3.css
@@ -3804,6 +3804,10 @@ Dialogs*/
   margin: 0 0 12px;
 }
 
+.ui-dialog.big div.form-container div.form-item {
+  width: 45%;
+}
+
 .ui-dialog div.form-container div.name {
   float: left;
   clear: both;

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/8bd204f7/ui/scripts/ui/dialog.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/dialog.js b/ui/scripts/ui/dialog.js
index 71d229a..6f05af2 100644
--- a/ui/scripts/ui/dialog.js
+++ b/ui/scripts/ui/dialog.js
@@ -62,10 +62,10 @@
         $('.overlay').remove();
         
         return $formContainer.dialog({
-          dialogClass: 'create-form',
+          dialogClass: args.form.bigSize ? 'create-form big' : 'create-form',
           closeOnEscape: false,
           draggable: false,
-          width: 400,
+          width: args.form.bigSize ? 800 : 400,
           title: _l(args.form.title),
           open: function() {
             if (args.form.preFilter) {


Mime
View raw message