Bug 7670 - make required fields red
authorOwen Leonard <oleonard@myacpl.org>
Thu, 8 Mar 2012 13:53:45 +0000 (08:53 -0500)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 16 Mar 2012 11:52:17 +0000 (12:52 +0100)
commit0576342cbb3e4258551a2b0111ae80bebe0d18d8
tree78bc5a3a0653d4601739f07e931a94fdff85deee
parentbdd8eb5a814c2c9699f3728f7d32ae33bd6732c2
Bug 7670 - make required fields red

Adding "required" style and "Required" note to additem fields,
consistent with the way required fields are displayed
on the add patron form.

This patch also corrects an error in the client-side validation
script which misidentified which fields were required. Leaving
a required field empty should result in an alert and the missing
field being highlighted in yellow.

To test, open the add item form on a record which uses
a framework in which one or more item fields are required.
Required fields should be labeled in red and appended with a
"Required" note.

Submit the form while some required fields are empty. You should
see a javascript alert. The empty mandatory fields should have
a yellow background.

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Works - passes tests.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt