]> git.koha-community.org Git - koha.git/commit
Bug 7670 - make required fields red
authorOwen Leonard <oleonard@myacpl.org>
Thu, 8 Mar 2012 13:53:45 +0000 (08:53 -0500)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Tue, 8 May 2012 21:48:58 +0000 (17:48 -0400)
commit0d985acd7b46bbb1c62a15353a1fcbd35eec41cf
tree1a31b43e50f867bddd83c431b2aa9a1592e8c437
parent526a2f44c9eb0919659656e3d866d4685d0269ae
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>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt