Overhaul newgrid template header a bit, to improve styles

This commit is contained in:
Lance Edgar 2016-04-30 20:54:22 -05:00
parent 130b6dda76
commit 6d2af6d698
5 changed files with 69 additions and 31 deletions

View file

@ -6,16 +6,38 @@
********************************************************************************/
/******************************
* header table
******************************/
.newgrid-wrapper .grid-header td.filters {
vertical-align: bottom;
width: 100%;
}
.newgrid-wrapper .grid-header td.menu {
padding: 0.5em;
vertical-align: top;
white-space: nowrap;
}
.newgrid-wrapper .grid-header td.tools {
margin: 0;
padding: 0;
vertical-align: bottom;
white-space: nowrap;
}
/******************************
* filters
******************************/
.newgrid-wrapper .newfilters {
margin-right: 15em;
margin: 0;
}
.newgrid-wrapper .newfilters fieldset {
margin: -8px 0 5px 0;
margin: 0;
padding: 1px 5px 5px 5px;
width: 80%;
}
@ -38,11 +60,11 @@
line-height: 1.4em;
}
.newgrid-wrapper .newfilters .ui-button-text-icon-primary .ui-button-text {
.newgrid-wrapper .ui-button-text-icon-primary .ui-button-text {
padding: 0.2em 1em 0.2em 2.1em;
}
.newgrid-wrapper .newfilters .ui-selectmenu-button .ui-selectmenu-text {
.newgrid-wrapper .ui-selectmenu-button .ui-selectmenu-text {
padding: 0.2em 2.1em 0.2em 1em;
}
@ -70,7 +92,8 @@
}
.newgrid-wrapper .newfilters .buttons {
margin: 0 0 5px 0;
margin: 0.5em 0 0 0;
padding: 0;
}
.newgrid-wrapper .newfilters #add-filter-button {
@ -79,23 +102,13 @@
}
/******************************
* tools
******************************/
.grid-tools {
float: right;
margin-bottom: 4px;
}
/******************************
* table
******************************/
.newgrid {
clear: both;
margin-top: 0.3em;
}
.newgrid table {

View file

@ -93,7 +93,7 @@
that.filters_form.off('submit');
that.filters_form.find('input[name="reset-to-default-filters"]').val('true');
that.element.mask("Refreshing data...");
that.filters_form.submit();
that.filters_form.get(0).submit();
});
// When user clicks Save Defaults button, refresh the grid as with