]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Add button to update expire date field
authorJeff Godin <jgodin@tadl.org>
Wed, 30 Oct 2013 19:42:15 +0000 (15:42 -0400)
committerBen Shum <bshum@biblio.org>
Fri, 14 Feb 2014 07:29:49 +0000 (02:29 -0500)
commit6807a06a11d309e94dbc5e286e45a5fdd3eaecab
treeafc2981bff393ce2af055e7904937114945d3545
parentdc58382c0a8092626b7cd09f67899dc616a7618f
Add button to update expire date field

When updating/renewing a patron (expired or not), it would be
convenient to have a means of populating the expire date field with
a value of perm_interval + today. Currently, staff are required to
manually enter a date, or could toggle the profile from one profile
then back to the desired profile, but this is not ideal.

This commit adds a new button next to the expire date, which when
activated will re-calculate the date based on the current profile's
perm_interval and today's date.

This is similar to how the expire date is populated when creating a
new user, or when changing the profile group. A button is used here
so that the updating of the expire date is an intentional process,
not one that happens upon any edit.

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/templates/actor/user/register_table.tt2
Open-ILS/web/js/dojo/openils/actor/nls/register.js
Open-ILS/web/js/ui/default/actor/user/register.js