]> git.evergreen-ils.org Git - evergreen/tadl.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)
committerJeff Godin <jgodin@tadl.org>
Wed, 30 Oct 2013 19:42:15 +0000 (15:42 -0400)
commit11ee75fa1986f03bb75be6daef51f2ba02bd00cb
treed6df0e6279cfea056b9fc86bc9640b8070706bea
parent3517d5eed8edc5656b0ef5fcc99ea4d5e82ed4ad
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>
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