lp1686459 webstaff: item editor form validation
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 17:30:26 +0000 (13:30 -0400)
commite1107b1e5df26862868cb1e5a5e504a0577e6b83
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