lp1686459 webstaff: item editor form validation collab/phasefx/20170607-webstaff-lp1686459
authorJason Etheridge <jason@equinoxinitiative.org>
Thu, 8 Jun 2017 05:02:17 +0000 (01:02 -0400)
committerJason Etheridge <jason@equinoxinitiative.org>
Thu, 8 Jun 2017 05:02:17 +0000 (01:02 -0400)
commitdc564af7cc95109ba1a4b4b6fa2c61cebc11cb4e
treef9896acd13e20beabe2ad8d7937cf17200807ff2
parent254f6a7588224fa276a68716009dfdaf860aec5f
lp1686459 webstaff: item editor form validation

Specifically for stat cats, we mark the select statements as required if the
corresponding stat cat is required, but we can also start using HTML5 validation
tests elsewhere in the form now as well.

I also fixed the <NONE> entries so that they display instead of blank entries,
and forced the Price, Cost, and Deposit Amount fields to be of input type number,
though you could still enter invalid numbers here from the database's POV, so
better validation tests are still needed there.

Signed-off-by: Jason Etheridge <jason@equinoxinitiative.org>
Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2
Open-ILS/src/templates/staff/cat/volcopy/t_edit.tt2
Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js