Commit graph

58 commits

Author SHA1 Message Date
Lance Edgar
65661a03f5 Add FormAlchemy-compatible validators for email address, phone number 2016-09-18 17:16:17 -05:00
Lance Edgar
94a7a15e6d Add basic form validation when sending new messages
This avoids the message body for now, since that's implemented a couple
different ways in the real world...
2016-09-13 20:23:51 -05:00
Lance Edgar
cf1b9acfb1 Add support for system-unique ID in batch views etc. 2016-08-17 16:50:00 -05:00
Lance Edgar
343f9bde1b Add "empty" option to enum field renderers, if field allows empty value 2016-08-17 16:45:54 -05:00
Lance Edgar
a6438e4bb5 Add permissions field when viewing user details
About damn time I'm sure...
2016-08-12 01:58:07 -05:00
Lance Edgar
c38535e4c0 Add hopefully generic FileFieldRenderer
Eventually should refactor other (batch) things to use this.
2016-08-09 19:50:24 -05:00
Lance Edgar
e15888ffcd Add render_progress() method to core view class 2016-08-09 19:46:49 -05:00
Lance Edgar
fdf1419ea2 Add CodeTextAreaFieldRenderer, refactor label profile form to use it 2016-07-13 11:04:23 -05:00
Lance Edgar
e0bd20ee23 Always strip whitespace from label profile 'spec' field input
Otherwise we can't properly load (import) the spec object...
2016-06-29 18:59:56 -05:00
Lance Edgar
123f5ce0c6 Add support for "full" schedule and time sheet views
Temporarily removes support for viewing current user's time sheet; that
will be added back in soon.
2016-05-10 13:08:32 -05:00
Lance Edgar
dc2104d430 Refactor some common FormEncode validators, plus add some more 2016-05-06 11:38:01 -05:00
Lance Edgar
aaa1d17507 Add hyperlinks to product UPC and description, within main grid
These won't honor the indexing scheme yet, still need to think about
that.
2016-05-03 22:10:54 -05:00
Lance Edgar
1c0c148294 Add initial/basic user feedback form support 2016-05-01 20:39:05 -05:00
Lance Edgar
eb64e709c4 Make currency field renderer display negative amounts in parentheses
Also remove space between amount and dollar sign.
2016-04-21 13:43:08 -05:00
Lance Edgar
30e6b6e29c Add flag for rendering key value, for enum field renderers
Only valid during the readonly rendering.  Not sure how useful this will
be in the long run...
2016-04-06 21:17:02 -05:00
Lance Edgar
0f3f39d5c6 Add new TimeFieldRenderer, make it default for Time fields
Uses a jQuery UI widget similar to datepicker:

https://fgelinas.com/code/timepicker/
2016-03-24 00:06:04 -05:00
Lance Edgar
12e8b662a8 Add comma magic back to CurrencyFieldRenderer
No longer concerned with Python 2.6.
2016-03-24 00:03:42 -05:00
Lance Edgar
a22f50850f Add 'executed' to old batches grid view, make timestamps show "raw" by default. 2016-03-11 11:35:00 -06:00
Lance Edgar
4cbdb51545 Fix bug when rendering email bounce links. 2016-02-26 13:06:36 -06:00
Lance Edgar
62221a1a25 Add new BatchMasterView for new-style batches. 2016-02-14 16:47:35 -06:00
Lance Edgar
a341acb4f0 Make our DateTimeFieldRenderer the default for datetime fields. 2016-02-14 16:34:39 -06:00
Lance Edgar
0a223ac4f9 Add autocomplete vendor field renderer. 2016-01-21 20:04:28 -06:00
Lance Edgar
bcb5176718 Rearrange the 'user' form renderer(s) a bit. 2016-01-13 02:39:27 -06:00
Lance Edgar
36c710e0fa Fix label prettify-er for generic fieldset. 2016-01-10 17:53:04 -06:00
Lance Edgar
1956c4c9cf Add edit mode for email "profile" settings.
Plus some related tweaks, needed to make that happen.
2016-01-10 17:35:34 -06:00
Lance Edgar
707b933553 Fix some route names. 2015-12-08 16:18:29 -06:00
Lance Edgar
fee00b96a2 Convert 'people' view to use MasterView pattern. 2015-12-06 18:04:23 -06:00
Lance Edgar
ef40af814a Add readonly support for email profile settings.
More to come...  Also this required some form tweaking/overhaul(s).
2015-12-04 17:25:52 -06:00
Lance Edgar
d1d905c570 Remove format hack which isn't py2.6-friendly. 2015-10-13 20:49:43 -05:00
Lance Edgar
6ac13286cb Fix some bugs with new CustomFieldRenderer. 2015-08-19 17:15:02 -05:00
Lance Edgar
3d44e3e857 Add CustomFieldRenderer and DateFieldRenderer. 2015-08-18 23:47:42 -05:00
Lance Edgar
e79531fda8 Add CurrencyFieldRenderer.
Also clean up the subpackage root a little bit.
2015-08-14 15:27:52 -05:00
Lance Edgar
585eb09bec Add support for "new-style grids" and "model master views".
Finally, an API that makes some sense...  We don't yet have feature parity
with the old-style grids and CRUD views, but this is already a significant
improvement to the design.  Still needs a lot of docs though...
2015-08-10 18:58:31 -05:00
Lance Edgar
ea9a9ad5bc Tweak renderer import, for clarity. 2015-08-08 17:20:42 -05:00
Lance Edgar
f523146a4b Add initial support for email bounce management. 2015-07-22 20:01:16 -05:00
Lance Edgar
ab23a8067c Add DecimalFieldRenderer. 2015-07-20 12:47:37 -05:00
Lance Edgar
a992a34fdf Add some custom FormEncode validators. 2015-07-20 09:57:41 -05:00
Lance Edgar
21486a5e55 Add StoreFieldRenderer.
Also try to set a good pattern for going forward..
2015-07-15 23:18:53 -05:00
Lance Edgar
8c5f03da8c Add autocomplete employee field renderer. 2015-04-11 00:23:54 -05:00
Lance Edgar
d8ee09916a Make vendor field renderer show ID in readonly mode. 2015-04-10 20:25:45 -05:00
Lance Edgar
d8790c7c4f Tweak display for some product fields. 2015-03-23 17:23:24 -05:00
Lance Edgar
84c5f0a327 Add dept. number and friends to product details page. 2015-03-23 02:36:18 -05:00
Lance Edgar
364a38a936 Make readonly version of batch file field not show download link. 2015-02-24 22:51:13 -06:00
Lance Edgar
3614254804 Improve data file handling for file batches.
Leverages a FormAlchemy "extension" of sorts.
2015-02-22 00:00:00 -06:00
Lance Edgar
eedbc5fb9a Various grid and form tweaks. 2015-02-09 13:20:34 -06:00
Lance Edgar
86507cf660 Tweak CRUD form buttons a little.
Change submit button wording for edit forms, from "Update" to "Save".  Also
show Cancel as a link instead of button.
2014-11-23 14:25:13 -06:00
Lance Edgar
8bf292ebac Remove some more edbob cruft. 2014-11-18 23:00:24 -06:00
Lance Edgar
9806c7a0a2 Add DateTimeFieldRenderer to show human-friendly timestamps.
This leverages the `humanize` package to do so.  Unfortunately that doesn't
seem to handle tz-aware times though, so we may need to revisit that at
some point...?
2014-11-18 19:37:52 -06:00
Lance Edgar
2326482bb6 Make GPCFieldRenderer display check digit separate from main barcode data.
It is presumed that this is a good idea in general; I guess we'll see.
2014-11-18 19:36:55 -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