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.
This commit is contained in:
Brian Federle 2013-06-21 14:33:26 -07:00
parent 364f26327e
commit 8bd204f771
2 changed files with 6 additions and 2 deletions

View File

@ -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;

View File

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