]> git.koha-community.org Git - koha.git/commit
Bug 8014 - On the patron entry form hide "restricted until" field if "Restricted...
authorOwen Leonard <oleonard@myacpl.org>
Fri, 27 Apr 2012 12:57:16 +0000 (08:57 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 28 May 2012 20:43:12 +0000 (08:43 +1200)
commitda201ee7e4958102124fa7508973f6fbc43f01d0
treebf1fa3569eecfb050a08f0cccdfbe9fe5db7a94e
parent5c2ba44c3816c79f32c86c84451e0154e568cc6c
Bug 8014 - On the patron entry form hide "restricted until" field if "Restricted: No" is checked

This patch adds JavaScript to automatically hide the "Restricted
unil" form field on the patron entry form if "Restricted: No" is
selected. If "Restricted: Yes" is chosen the "Until:" field
is shown and focus is given to it.

The patch also adds a note, "(optional)" after the "Until:" field
to make it clearer that a date is not required.

To test, open a patron record and try moving the selection
between "Restricted: No" and "Restricted: Yes." Confirm that
the "Until:" field is shown and hidden as expected. Confirm
that the restricted flag is correctly set or unset upon save,
including setting the flag with or without a date.

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/js/members.js
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt