JBAS-1129 Cross-port patron reg set-expire-date
authorBill Erickson <berickxx@gmail.com>
Wed, 13 Jan 2016 19:34:50 +0000 (11:34 -0800)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Copying to KCLS template.

Originally:

commit 6807a06a11d309e94dbc5e286e45a5fdd3eaecab
Author: Jeff Godin <jgodin@tadl.org>
Date:   Wed Oct 30 15:42:15 2013 -0400

    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>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/openils/var/templates_kcls/actor/user/register_table.tt2

index ca90cb4..e744f0e 100644 (file)
     <tr fmclass='au' fmfield='ident_value2' required='required'><td/><td id='parentGuardian'></td></tr>
     <tr fmclass='au' fmfield='home_ou' required='required'/>
     <tr fmclass='au' fmfield='profile' required='required'/>
-    <tr fmclass='au' fmfield='expire_date' required='required'/>
+    <tr fmclass='au' fmfield='expire_date' required='required'>
+        <td/><td/><td/>
+        <td>
+            <button dojoType='dijit.form.Button' jsId='setExpireDate' scrollOnFocus='false'></button>
+        </td>
+    </tr>
     <tr fmclass='au' fmfield='net_access_level' required='required'/>
     <tr fmclass='au' fmfield='active'/>
     <tr fmclass='au' fmfield='barred'/>