]> git.evergreen-ils.org Git - Evergreen.git/commit
lp1686459 webstaff: item editor form validation
authorJason Etheridge <jason@equinoxinitiative.org>
Thu, 8 Jun 2017 05:02:17 +0000 (01:02 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 19 Jun 2017 16:10:03 +0000 (12:10 -0400)
commitd6fba7b4c4c63c2eb3f16f099dd52904fb158279
tree3375472e3612d457229a7563beecf61088b282ea
parent87ac04ae7241c52e17eec8d224dd74ffeb64d8fe
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>
Signed-off-by: Andrea Neiman <abneiman@equinoxinitiative.org>
Signed-off-by: Galen Charlton <gmc@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