]> 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:13:10 +0000 (12:13 -0400)
commit2ffefc8be99b37329f6f7d0daa9c8f0e55079c73
tree2653c2787ba5572185f9013bad22342e17b55e33
parent1002130544a3678aff6d87524758ae709900a2cc
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