From cfed10325bc2de3b207606f6c87940ac3b67e303 Mon Sep 17 00:00:00 2001 From: David Gustafsson Date: Mon, 16 Oct 2017 11:03:55 +0200 Subject: [PATCH] Bug 19471: Show creation date in patron restrictions list 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 Signed-off-by: Charles Farmer Signed-off-by: Jonathan Druart --- .../intranet-tmpl/prog/en/includes/borrower_debarments.inc | 2 ++ .../intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc index 7b4b25d7d1..477fcfab18 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc @@ -36,6 +36,7 @@ Type Comment Expiration + Created [% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %]   [% END %] @@ -64,6 +65,7 @@ [% END %] [% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] Indefinite [% END %] + [% d.created | $KohaDates %] [% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt index 468370c434..53abec1e49 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -1040,6 +1040,7 @@ $(document).ready(function() { Type Comment Expiration + Created [% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %] Remove? [% END %] @@ -1058,6 +1059,7 @@ $(document).ready(function() { [% END %] [% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] Indefinite [% END %] + [% d.created | $KohaDates %] [% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %] -- 2.39.5