Lance Edgar
d295cf04af
Allow setting the "exclusive" sequence of grid filters
...
i.e. let caller specify that any not included, should be omitted
2021-09-19 18:36:25 -05:00
Lance Edgar
82e730c18e
Add the Grid.remove()
method, deprecate hide_column()
etc.
...
this is more clear, and aligns with how Form works
2021-09-08 14:33:40 -05:00
Lance Edgar
4d742bacb1
Allow grid columns to be *invisible* (but still present in grid)
...
this can be useful when you need contextual data for a given row, for
sake of front-end UI features, but do not want to actually show the
extra data column(s)
2021-08-29 10:28:36 -05:00
Lance Edgar
3cf4c0f8e4
Require explicit opt-in for "clicking grid row checks box" feature
...
sometimes it makes sense *not* to enable that, in which case disabled
probably should be the default
2021-08-23 19:26:50 -05:00
Lance Edgar
89f0336af9
Add special "contains any of" verb for string-based grid filters
2021-02-12 13:57:54 -06:00
Lance Edgar
708641a8f1
Purge things for legacy (jquery) mobile, and unused template themes
...
gosh it feels good to get rid of this stuff... fingers crossed that nothing
was broken, but am thinking it's safe
2021-01-30 15:52:47 -06:00
Lance Edgar
20c31cbb07
Fix grid bug when paginator is not involved
2020-09-25 16:05:07 -05:00
Lance Edgar
72177e8ab5
Improve auto-handling of "local" timestamps
...
for non-Rattail DBs where timestamps are local instead of UTC
2020-09-02 11:30:02 -05:00
Lance Edgar
b5028ab2d0
Add pagination to price, cost history grids for product view
2020-08-17 21:38:12 -05:00
Lance Edgar
a8a79ee326
Let each grid component have a custom name, if needed
2020-05-20 19:19:06 -05:00
Lance Edgar
2605f5ab79
Fix batch row status breakdown for Buefy themes
...
also, fix the "import batch from file" feature UI, per Buefy theme
2020-03-02 14:38:06 -06:00
Lance Edgar
8947a4d14f
Add Grid.set_filters_sequence()
convenience method
...
sometimes a properly-ordered filter sequence can really help
2020-01-01 12:05:08 -06:00
Lance Edgar
bcfb4f257d
Improve checkbox click handling support for grids
...
i.e. let custom use define click handlers
2019-10-31 18:03:17 -05:00
Lance Edgar
ace18e86ff
Fix label bug for grid filter with value choices dropdown
2019-10-08 09:37:21 -05:00
Lance Edgar
fd700e06f4
Let a grid have custom ajax data url
...
i.e. instead of assuming we should GET the current "partial" page, can use a
different URL altogether now
2019-08-23 19:28:36 -05:00
Lance Edgar
1bb0330ab5
Refactory Buefy templates to use WholePage and ThisPage components
...
plus add `GridFilter.set_choices()` method
2019-08-03 16:57:13 -05:00
Lance Edgar
c09437880f
Add support for general "view click handler" for <b-table>
element
...
plus some other tweaks for sake of revision history in profile view
2019-07-09 14:56:33 -05:00
Lance Edgar
ff3ee351d1
Add 'duration_hours' type for grid column display
2019-07-01 11:46:21 -05:00
Lance Edgar
b14e8daa1a
Expose a way to embed "raw" data values within Buefy grid data
...
for sake of custom front-end stuff
2019-06-28 15:47:52 -05:00
Lance Edgar
1ee76878d9
Various things to support "notes management" from person profile view
2019-06-06 13:49:59 -05:00
Lance Edgar
1c07508f39
Add <b-table>
element template for simple grids with "static" data
2019-06-04 13:33:56 -05:00
Lance Edgar
be6a1d916f
Add Buefy support for enum grid filters
2019-05-21 18:40:08 -05:00
Lance Edgar
d5d04b7dac
Add support for Buefy datepicker in grid filters
2019-05-21 13:44:02 -05:00
Lance Edgar
b2b4e1bfbc
Add basic Buefy support for merging 2 objects
...
i.e. special grid stuff, plus "merge" view
2019-05-06 21:43:59 -05:00
Lance Edgar
0d00bd746e
Don't assume grid model class declares its title
...
that works for Rattail models, but not e.g. those from Onager
2019-04-25 15:39:30 -05:00
Lance Edgar
25c8edd81c
Allow config to specify grid "page size" options
2019-04-23 22:56:38 -05:00
Lance Edgar
fcfc8b56bb
Add basic Buefy support for App Settings page
...
also various buttons have been tweaked on some other "master view" pages
2019-04-17 14:55:27 -05:00
Lance Edgar
e45dfd7351
More tweaks for Buefy support
2019-04-15 20:34:34 -05:00
Lance Edgar
a0cd1f4cd0
Add "most of" Buefy support for grid filters
...
still a couple of details to wrap up yet, but this is most of it!
2019-04-15 18:36:14 -05:00
Lance Edgar
05b8ed7153
Add support for "row status" in Buefy grid tables
2019-03-28 23:09:10 -05:00
Lance Edgar
8d6ecc3ec7
Add basic "Buefy" support for grids (master index view)
...
still pretty experimental at this point, but making progress
2019-03-24 21:09:08 -05:00
Lance Edgar
60334229d5
Fix grid link logic some more...
...
should not show link if value is None
2019-03-06 21:03:43 -06:00
Lance Edgar
40c7e34014
Show grid link even when value is "false-ish"
...
saw a value of '0' get rendered with no link; this fixes
2019-03-06 18:22:12 -06:00
Lance Edgar
a637ba1e6b
Add 'percent' as field type for Form; fix rendering of 'percent' for Grid
...
these both now assume the value obtained will be a "typical" percentage
decimal, i.e. 0.30130 instead of 30.130
2018-12-18 17:41:38 -06:00
Lance Edgar
fed42d4898
Add "200 per page" option for UI table grids
2018-11-14 10:38:08 -06:00
Lance Edgar
37b9a81344
Add Grid.hide_columns()
convenience method
2018-11-07 16:47:41 -06:00
Lance Edgar
7e28619e9d
Don't include grid filters for LargeBinary columns
2018-10-19 20:26:33 -05:00
Lance Edgar
d7863c2572
Add speedbump by default when deleting any "row" record
...
also, allow deleting rows for truck dump child batch
2018-09-22 19:27:17 -05:00
Lance Edgar
8428790001
Use "known" label if possible when making new grid filters
2018-06-14 12:04:35 -05:00
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
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
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
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
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
d960738578
Add default Grid.iter_rows()
implementation.
2015-03-10 12:44:58 -05: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
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
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
40efd8a3bc
Rebranded to Tailbone.
2013-09-01 08:18:37 -07:00