mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Merge pull request #49 from open-sausages/pulls/4.0/alignment-and-spacing
Alignment and spacing of main CMS panels
This commit is contained in:
commit
3b32047f28
@ -240,7 +240,7 @@ class ReportAdmin extends LeftAndMain implements PermissionProvider
|
|||||||
|
|
||||||
$actions = new FieldList();
|
$actions = new FieldList();
|
||||||
$form = new Form($this, "EditForm", $fields, $actions);
|
$form = new Form($this, "EditForm", $fields, $actions);
|
||||||
$form->addExtraClass('cms-edit-form cms-panel-padded center ' . $this->BaseCSSClasses());
|
$form->addExtraClass('panel panel--padded panel--scrollable cms-edit-form cms-panel-padded' . $this->BaseCSSClasses());
|
||||||
$form->loadDataFrom($this->request->getVars());
|
$form->loadDataFrom($this->request->getVars());
|
||||||
|
|
||||||
$this->extend('updateEditForm', $form);
|
$this->extend('updateEditForm', $form);
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
$.entwine('ss', function($){
|
$.entwine('ss', function($){
|
||||||
$('.ReportAdmin .cms-edit-form').entwine({
|
$('.ReportAdmin .cms-edit-form').entwine({
|
||||||
onsubmit: function(e) {
|
onsubmit: function(e) {
|
||||||
var url = $.path.parseUrl(document.location.href).hrefNoSearch,
|
var url = $.path.parseUrl(document.location.href).hrefNoSearch,
|
||||||
params = this.find(':input[name^=filters]').serializeArray();
|
params = this.find(':input[name^=filters]').serializeArray();
|
||||||
params = $.grep(params, function(param) {return (param.value);}); // filter out empty
|
params = $.grep(params, function(param) {return (param.value);}); // filter out empty
|
||||||
if(params) url = $.path.addSearchParams(url, $.param(params));
|
if(params) url = $.path.addSearchParams(url, $.param(params));
|
||||||
@ -14,10 +14,5 @@
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.ReportAdmin').css({
|
|
||||||
'overflow-y': 'scroll',
|
|
||||||
'padding-top': 0
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
Loading…
Reference in New Issue
Block a user