Commit graph

189 commits

Author SHA1 Message Date
Lance Edgar a4b27115ac Refactor all Buefy form submit buttons, per Chrome behavior
ugh, what a pain.  and turns out i'd previously ran into this same issue for
jQuery, per commit e945ebe325
2019-06-25 20:32:49 -05:00
Lance Edgar cc79fe76fd Refactor form/page component structure for Buefy/Vue.js
this also moves Execute Batch from the form buttons area, to object helper
2019-06-17 15:07:19 -05:00
Lance Edgar 3f6d5daa1e More Buefy tweaks, for file upload, and "edit batch" generally 2019-06-08 14:26:33 -05:00
Lance Edgar 2b6d88105c Add support for Buefy autocomplete; several other form tweaks
at least the Edit User form should work now, for instance
2019-06-08 13:46:00 -05:00
Lance Edgar c24098a117 Fall back to parsing request body as JSON for form data
apparently that's what we'll be dealing with from Vue.js AJAX requests?
2019-06-04 17:57:48 -05:00
Lance Edgar 5907973d42 Refactor "edit printer settings" view for Label Profile
for sake of Buefy, but it was definitely using some old form patterns...
2019-05-23 17:58:46 -05:00
Lance Edgar 6c3722737d OMG so many Buefy things...and much to be done yet it seems
these changes are all with Buefy "forms" support in mind.  hopefully didn't
break any legacy/jquery stuff... and yeah, lots more left to do still for the
sake of Buefy forms
2019-05-22 15:31:23 -05:00
Lance Edgar fbf3ee5cd1 Improve readonly form templates somewhat, for Buefy
progress at least, more polish needed yet
2019-05-21 12:14:49 -05:00
Lance Edgar dfe0f49655 Add basic/generic Buefy support to the Form class
mostly just affects rendering, apparently backend logic needn't really change?
2019-05-20 16:24:14 -05:00
Lance Edgar a8db5db308 Add basic Buefy form support when generating reports
apparently we have a lot of work to do yet for Buefy forms elsewhere...
2019-05-08 20:24:19 -05:00
Lance Edgar c869516449 Add basic "receive row" desktop view for receiving batches
not terribly polished yet, but works
2019-03-13 18:31:57 -05:00
Lance Edgar 0f5d668f86 Add "plain" date widget
to avoid deform.addCallback() JS for mobile forms

surely there's a better solution, but this works for now...
2019-02-22 20:46:54 -06:00
Lance Edgar bd43884a1d Improve validator for "percent" input widget 2019-02-13 15:15:47 -06:00
Lance Edgar caec354092 Remove usage of colander.timeparse() function
that did very little, and has been removed in latest colander release
2019-02-12 14:03:27 -06:00
Lance Edgar a45ce2ced2 Introduce support for "children first" truck dump receiving
still needs more testing to see what's left...
2019-02-06 16:50:40 -06:00
Lance Edgar eb78d79bb3 Update tempmon UI now that enabled flags are really datetime in DB 2019-01-25 19:36:13 -06:00
Lance Edgar d659e62fda Add custom widget for "percent" field
so that storage can use "traditional" (0.3612) format but UI can use
"human-friendly" format (36.12 %)
2019-01-08 12:18:48 -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 4fa9ab3c6e Add better support for "make import batch from file" pattern 2018-11-22 20:26:28 -06:00
Lance Edgar f26f42427f Don't include LargeBinary properties in default colander schema
actually, exclude any found in secondary properties...i.e. from relationship
2018-10-19 21:17:50 -05:00
Lance Edgar 4a610ba2e6 Misc. UI improvements for truck dump receiving on desktop
links back and forth between parent/child rows, a little help text etc.
2018-09-22 18:33:01 -05:00
Lance Edgar e43f713a66 Various tweaks for arbitrary model view with "rows"
just needed these for a particular feature...
2018-07-26 21:35:15 -05:00
Lance Edgar 634a93061b Let mobile form declare if/how to auto-focus a field
and for mobile ordering, auto-focus the "units" field when editing a row
2018-07-24 21:29:52 -05:00
Lance Edgar 3dfdb26502 Improve basic support for unit/pack info when viewing product details 2018-07-08 00:01:14 -05:00
Lance Edgar b0e8f7d985 Various changes to support current receiving workflows
i.e. for sake of truck dump, adding child from invoice etc.
2018-05-22 13:54:50 -05:00
Lance Edgar cd7922f204 Add "most of" support for truck dump receiving
still not complete, but conceptually it sort of is...
2018-05-18 15:51:47 -05:00
Lance Edgar 9ed501a8cc Add initial support for receiving truck dump batch via mobile
i.e. just the initial truck dump, but secondary invoice batches are not yet
supported.  also this maybe breaks other things..we'll see
2018-05-16 09:15:52 -05:00
Lance Edgar e6144ea08b Add Form.__contains__() method
for testing if a field is contained in the form
2018-05-03 10:54:40 -05:00
Lance Edgar 91bb38573b Add desktop support for creating inventory batches
with a workflow form of sorts
2018-02-28 21:53:39 -06:00
Lance Edgar ff7341d272 Add Form.mobile flag and set link button styles accordingly 2018-02-22 11:12:51 -06:00
Lance Edgar 046a70c5f6 Add NumberInputWidget for <input type="number" /> 2018-02-21 19:51:31 -06:00
Lance Edgar 17d99e16b9 More tweaks for python 3 2018-02-12 19:22:05 -06:00
Lance Edgar cdaf36f346 Rename 'forms2' package, templates to 'forms' 2018-02-11 22:57:33 -06:00
Lance Edgar d0b78babd2 Remove legacy 'forms' package and templates
yay!
2018-02-11 22:46:35 -06:00
Lance Edgar e78777f8e1 Add field name as wrapper class name 2018-01-05 17:12:42 -06:00
Lance Edgar f6d9f7a913 Fix user field rendering when no person associated 2017-09-03 13:00:44 -05:00
Lance Edgar 178b9f2bcb Add LocalDateTimeFieldRenderer for formalchemy 2017-08-16 18:32:17 -05:00
Lance Edgar bf09071e1d Make product field renderer allow override of link text rendering 2017-08-12 20:26:11 -05:00
Lance Edgar 09ffdba9ef Allow product field renderer to suppress hyperlink 2017-08-02 12:04:03 -05:00
Lance Edgar 581ced2990 Switch license to GPL v3 (no longer Affero)
refs #2
2017-07-06 23:47:56 -05:00
Lance Edgar 8014e60d14 Add webhelpers2 dependency, use it for most things
still using webhelpers for certain things yet, hopefully can get rid of that soon
2017-07-06 20:13:42 -05:00
Lance Edgar 0b68d56ddb Add basic versioning history support for master view
as with actual data versioning, we only support Person thus far
2017-07-05 03:07:35 -05:00
Lance Edgar 7340ef1f9b Rearrange some imports to ensure rattail.db.model comes last
this is necessary for Continuum versioning
2017-07-03 23:52:48 -05:00
Lance Edgar 4aa91414a5 Tweak how customer/person relationships are displayed
expose just a little more to make it easier to track down a data issue i had
2017-07-03 16:58:30 -05:00
Lance Edgar 24a2c15850 Make hyperlink optional for employee field renderer 2017-07-03 15:52:41 -05:00
Lance Edgar a63f2e3623 Tweak display of inventory/label batches to reflect multiple handheld batches 2017-06-21 15:36:32 -05:00
Lance Edgar eb272bf7f9 Tweak some customer view/field rendering, to allow more customization 2017-05-11 13:54:23 -05:00
Lance Edgar d373eb9ac1 Broad refactor to improve customization of purchase order form etc.
* add dropdown alternative for autocomplete renderer
* auto-enhance some common dropdowns
* refactor new purchase batch, order form view/templates
2017-03-24 17:22:12 -05:00
Lance Edgar 3dfe3dfa28 Add CostFieldRenderer and tweak product view template
latter being for easier customization
2017-03-23 20:32:56 -05:00
Lance Edgar 6adb99003d Add basic master view for Report Output data model 2017-03-22 14:27:59 -05:00
Lance Edgar 43022c3205 Refactor the batch file field renderer somewhat
try to leverage the "common" file field renderer some more...
2017-03-21 13:16:48 -05:00
Lance Edgar 9808bb3a91 Fix behavior of default email/phone field with empty value 2017-03-17 18:15:54 -05:00
Lance Edgar 15eae8b2c7 Various tweaks to the customer and person views/forms
These things still need plenty more help...
2017-03-17 15:52:26 -05:00
Lance Edgar ac8c63219c Fix bug in DateFieldRenderer when no format specified 2017-02-21 11:58:21 -06:00
Lance Edgar e0521ba8c5 Add initial/basic views for customer orders data 2017-02-19 14:22:35 -06:00
Lance Edgar 13ff58a4fa Don't render user field as hyperlink unless so configured 2017-02-09 17:08:30 -06:00
Lance Edgar 8b02fd3d38 Add hyperlink to EmployeeFieldRenderer 2017-02-04 12:32:12 -06:00
Lance Edgar 2ab2dfe26b Add hyperlink to User field renderer 2017-01-29 22:52:36 -06:00
Lance Edgar aa99f3b506 Add QuantityFieldRenderer 2016-12-19 12:26:16 -06:00
Lance Edgar 9a6ad16e2f Overhaul product views a little, per customization needs 2016-12-15 15:11:15 -06:00
Lance Edgar f7267597ee Tweak the CustomFieldRenderer base class a bit
Not sure who all's using this now..hopefully this breaks nothing
2016-12-15 00:36:58 -06:00
Lance Edgar d40d5e3f6b Tweak some field renderers for sake of product view 2016-12-14 23:27:45 -06:00
Lance Edgar 4ed522ae47 Add global CSRF protection 2016-12-14 18:37:17 -06:00
Lance Edgar ab09314ed3 Add initial support for CSRF token protection 2016-12-14 15:41:15 -06:00
Lance Edgar acbb3d289c Add ValidGPC formencode validator 2016-12-13 22:27:52 -06:00
Lance Edgar 79e63571e3 Make CurrencyFieldRenderer inherit from FloatFieldRenderer
Also cleanup some code generally..
2016-12-12 12:13:59 -06:00
Lance Edgar 6389481cea Remove some deprecated field renderers 2016-12-10 10:14:52 -06:00
Lance Edgar c73ba56505 Add support for 'department' field in purchases / batches
Also fix logic for deleting a purchase (delete its batches first)
2016-12-09 14:01:06 -06:00
Lance Edgar 6c3d221e98 Add new 'receiving form' for purchase batches 2016-12-09 12:09:18 -06:00
Lance Edgar 4a2ba3925d Use master view's session when creating form
Needed when allowing create for models from non-rattail database
2016-12-05 21:01:30 -06:00
Lance Edgar 948987232a Tweak some fields for Product view 2016-11-27 14:17:42 -06:00
Lance Edgar fdd0b6ec3b Add some links between employees / people / customers views 2016-11-21 17:47:24 -06:00
Lance Edgar 67f6c11307 Add support for 'receiving' mode for purchase batches 2016-11-21 01:07:35 -06:00
Lance Edgar d46b0cbc70 Add support for mode, purchase relation for purchase batches 2016-11-20 17:48:04 -06:00
Lance Edgar 11b4cf9616 Add support for more cases + units, more vendor fields, for new purchase batches 2016-11-11 01:56:37 -06:00
Lance Edgar 4cfd3aa00e Add basic views for label batches 2016-11-06 20:53:50 -06:00
Lance Edgar 8fe0e96273 Remove unused (I think?) VendorFieldRenderer 2016-11-05 02:08:10 -05:00
Lance Edgar 6bf60365ba Let any 'admin' user elevate to 'root' for full system access
But otherwise, let the Administrator role be "normal" and have perms of
its own.  Hopefully cuts down on unwanted screen noise for admins.
2016-10-18 16:59:38 -05:00
Lance Edgar 4757a56002 Fix bug in batch ID field renderer, when displayed for new batch
Hopefully this is a good idea..
2016-10-16 03:32:56 -05:00
Lance Edgar b157b79938 Remove last references to 'edbob' package 2016-10-09 21:12:13 -05:00
Lance Edgar cff19f38a3 Improve validation for FormAlchemy date field renderer 2016-09-19 13:13:53 -05:00
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