mirror of https://github.com/apache/cloudstack.git
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:
parent
364f26327e
commit
8bd204f771
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue