Bug 19471: Show creation date in patron restrictions list
authorDavid Gustafsson <david.gustafsson@ub.gu.se>
Mon, 16 Oct 2017 09:03:55 +0000 (11:03 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 10 Jan 2018 13:50:19 +0000 (10:50 -0300)
Test plan:
1. Go to the "Details" vertical tab of a patron.
2. Click the "Restriction" tab in the bottom and add a manual restriction.
3. Verify a creation date is visible.

4. Edit the same patron.
5. Under "Patron restrictions" verify the creation date of the listed
   restiction is visible.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Charles Farmer <charles.farmer@inLibro.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt

index 7b4b25d..477fcfa 100644 (file)
@@ -36,6 +36,7 @@
                      <th>Type</th>
                      <th>Comment</th>
                      <th>Expiration</th>
+                     <th>Created</th>
                      [% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %]
                          <th>&nbsp;</th>
                      [% END %]
@@ -64,6 +65,7 @@
                            [% END %]
                        </td>
                         <td>[% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] <i>Indefinite</i> [% END %]</td>
+                        <td>[% d.created | $KohaDates %]</td>
                         [% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %]
                             <td>
                                 <a class="remove_restriction btn btn-default btn-xs" href="/cgi-bin/koha/members/mod_debarment.pl?borrowernumber=[% borrowernumber %]&amp;borrower_debarment_id=[% d.borrower_debarment_id %]&amp;action=del">
index 468370c..53abec1 100644 (file)
@@ -1040,6 +1040,7 @@ $(document).ready(function() {
                                  <th>Type</th>
                                  <th>Comment</th>
                                  <th>Expiration</th>
+                                 <th>Created</th>
                                  [% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %]
                                    <th>Remove?</th>
                                  [% END %]
@@ -1058,6 +1059,7 @@ $(document).ready(function() {
                                     [% END %]
                                     </td>
                                     <td>[% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] <i>Indefinite</i> [% END %]</td>
+                                    <td>[% d.created | $KohaDates %]</td>
                                     [% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %]
                                       <td>
                                         <input type="checkbox" id="debarment_[% d.borrower_debarment_id %]" name="remove_debarment" value="[% d.borrower_debarment_id %]" />