Lance Edgar
ae3f79e522
Set filter value renderer when setting enum for grid field
2018-06-05 14:38:52 -05:00
Lance Edgar
3688979b8f
Add integer-specific grid filter
...
this was necessary for smarter handling of "invalid" input, e.g. '.645' is not
a good value when querying integer fields
2018-06-05 11:08:36 -05:00
Lance Edgar
46c8887c3e
Set default column renderers for grid based on data types
...
guess this really just moves that logic so it happens earlier
2018-06-01 13:02:55 -05:00
Lance Edgar
ccdf821583
Add MasterView.use_byte_string_filters
flag for encoding search values
2018-05-24 15:09:00 -05:00
Lance Edgar
17d99e16b9
More tweaks for python 3
2018-02-12 19:22:05 -06:00
Lance Edgar
ee35cc6f22
Misc. cleanup for Python 3
2018-02-12 14:41:40 -06:00
Lance Edgar
d9ff59afda
Refactor grid filters to use colander/deform
2018-02-12 12:15:07 -06:00
Lance Edgar
91b395118e
Allow passing arbitrary attrs when rendering grid
2018-02-09 21:13:41 -06:00
Lance Edgar
a3b2fbadb7
Make sure each grid has unique set of actions
2018-02-09 15:04:57 -06:00
Lance Edgar
97c5e97ccb
Add append()
and replace()
methods for core Grid class
2018-02-02 13:16:25 -06:00
Lance Edgar
62d1918892
Add FieldList
wrapper for grid columns list
...
needs to be merged with the "forms2" equivalent at some point...
2018-01-25 14:43:30 -06:00
Lance Edgar
50d6f1f95a
Let grids be paginated even when they have no model class
2018-01-06 19:21:45 -06:00
Lance Edgar
f17617c659
Accept value_enum
kwarg when creating grid filter
...
and do the "normal" thing for that if one is given
2017-12-19 14:21:19 -06:00
Lance Edgar
587871e87c
Add Grid.remove_filter()
method
2017-12-06 19:54:13 -06:00
Lance Edgar
20bae8e54b
Add Grid.set_sort_defaults()
method
2017-12-04 20:53:46 -06:00
Lance Edgar
2cba0ade84
Accept None
as valid arg for Grid.set_filter()
...
i.e. to effectively remove the filter
2017-11-11 09:52:11 -06:00
Lance Edgar
52342a7612
Fix value auto-selection for enum grid filters
2017-10-22 20:56:30 -07:00
Lance Edgar
401cba23b7
Add grid filter which treats empty string as NULL
2017-10-22 20:00:31 -07:00
Lance Edgar
14f67746bf
Allow passing None
to Grid.set_joiner()
...
doing so will remove the joiner
2017-10-18 12:54:57 -07:00
Lance Edgar
6281593084
Add "local" datetime renderer for new grids, forms
2017-10-10 13:58:52 -07:00
Lance Edgar
639644375d
Give the "More" link a but of extra space from other actions
2017-08-17 18:00:22 -05:00
Lance Edgar
e80f8b31c1
Fix numeric filter to allow 3 decimal places by default
2017-08-08 17:04:59 -05:00
Lance Edgar
ea7eb47551
Add auto-links for most grids
...
probably still missing some yet?
2017-08-03 19:16:53 -05:00
Lance Edgar
8186366b69
Add view for consuming new batch ID; misc. tweaks for grids etc.
2017-08-02 19:16:45 -05:00
Lance Edgar
5afa832684
Add 'data-uuid' attr for mobile grid list items, if applicable
2017-08-02 12:04:32 -05:00
Lance Edgar
d93cb4f07b
Fix how we detect grid settings presence in user session
...
..in case grid has filter settings only
2017-08-01 14:38:09 -05:00
Lance Edgar
39cf32bb0a
Allow master view to decide whether each grid checkbox is checked
...
aka. un-break what the v3 grids broke..
2017-07-26 17:10:44 -05:00
Lance Edgar
cb6b093a2a
Fix grid bug if "current page" becomes invalid
...
sometimes it was possible to fall outside the valid page range, in which
case grid would stop showing results!
2017-07-18 13:26:17 -05:00
Lance Edgar
c57e2e17cc
Final grid refactor; we now have just 'grids' :)
...
this also removes some old UI stuff for the first attempt at continuum
versioning..among other cruft
2017-07-14 20:30:00 -05:00
Lance Edgar
62fa0f9fcb
Remove all "old-style" (aka. version 1) grids
2017-07-06 15:23:33 -05:00
Lance Edgar
d1436e4fd3
Revert "Remove all "old-style" (aka. version 1) grids"
...
This reverts commit 0085e2ccc4
.
hm dang, sure enough broke stuff
2017-07-06 00:31:16 -05:00
Lance Edgar
0085e2ccc4
Remove all "old-style" (aka. version 1) grids
...
hopefully this doesn't break anything! ;)
2017-07-06 00:28:01 -05:00
Lance Edgar
b157b79938
Remove last references to 'edbob' package
2016-10-09 21:12:13 -05:00
Lance Edgar
673fcaed97
Hard-code old grid pagecount settings, to avoid edbob.config
.
2015-08-16 19:52:51 -05:00
Lance Edgar
c42e80f87a
Make email "source" filter use a dropdown, in bouncer UI.
2015-07-23 20:05:48 -05:00
Lance Edgar
d960738578
Add default Grid.iter_rows()
implementation.
2015-03-10 12:44:58 -05:00
Lance Edgar
69a5eed83b
Add shared GPC search filter, use it for product batch rows.
2015-03-07 14:19:19 -06:00
Lance Edgar
9e7d0e177d
Don't include query string in embedded grid URL.
...
This was causing the param list to grow each time a search happened at
least, maybe more.
2015-02-24 23:53:22 -06:00
Lance Edgar
7bbadfd338
Add support for integer search filters.
...
This mostly just avoids to suppress type errors by stripping out
non-numeric chars from input.
2015-01-13 21:22:56 -06:00
Lance Edgar
107da5dd9d
Fix bug with default search filters for SA grids.
...
Sometimes the default search value needs to be `False`, in which case we do
want the filter to fire.
2015-01-10 17:16:33 -06:00
Lance Edgar
cc2c2573e5
Add grid, CRUD views for Setting
model.
...
This required some tweaks to the base CRUD view etc.
2014-11-23 14:27:00 -06:00
Lance Edgar
dfb5e83c7e
Add support for Product.not_for_sale
flag.
...
This involved a couple of ancillary changes:
* The price field renderer will not display a price for products marked not
for sale.
* The "grid" class now allows specifying a custom callable to provide
additional CSS class for table rows.
* The products grid uses this to add a "not-for-sale" class to table rows
for products which are marked thusly.
2014-09-10 19:38:49 -07:00
Lance Edgar
54bb9e2869
Add experimental soundex filter support to the Customers grid.
2014-06-12 20:41:25 -07:00
Lance Edgar
1a557f3947
Refactored model imports, etc.
...
This is in preparation for using database models only from `rattail` (i.e. no
`edbob`). Mostly the model and enum imports were affected.
2013-12-17 06:00:04 -08:00
Lance Edgar
23e08d0bb0
Fixed grid join map bug.
2013-09-20 15:49:48 -07:00
Lance Edgar
2a50e704ef
Major overhaul for standalone operation.
...
This removes some of the `edbob` reliance, as well as borrowing some templates
and styling etc. from Dtail.
2013-09-01 15:31:50 -07:00
Lance Edgar
40efd8a3bc
Rebranded to Tailbone.
2013-09-01 08:18:37 -07:00