From 430eddf4f1635c38d31c92700453e06c306e2f4e Mon Sep 17 00:00:00 2001 From: Aleisha Date: Thu, 24 Mar 2016 00:28:42 +0000 Subject: [PATCH] Bug 3669: Moving 'Add a new message' into a pop up box and adding to patron toolbar This patch moves all the code into an include which can be accessed from the 'Add a new message' link or the patron toolbar. To test: 1) Go to a patron circ page (circ/circulation.pl?borrowernumber=X) 2) Click 'Add a new message' under Messages 3) Confirm this brings up the modal to add a message. Confirm clicking Save saves your message. If it is an OPAC message (for the user), confirm it shows as expected on the OPAC. 4) Click Cancel. Confirm this closes the modal. 5) Click 'Add message' button in toolbar. Complete steps 3 and 4. Sponsored-by: Catalyst IT --- .../prog/en/includes/member-add-message.inc | 33 +++++++++++++ .../prog/en/includes/members-toolbar.inc | 2 + .../prog/en/modules/circ/circulation.tt | 51 +++++--------------- 3 files changed, 48 insertions(+), 38 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/member-add-message.inc diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-add-message.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-add-message.inc new file mode 100644 index 0000000..7c7be9c --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-add-message.inc @@ -0,0 +1,33 @@ +[% USE Koha %] + +
+
+Leave a message +
    +
  1. + + +
  2. + [% IF ( canned_bor_notes_loop ) %] +
  3. + + +
  4. + [% END %] +
  5. + +
  6. +
+ + + +
+ diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc index 9ecce10..b05c37b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc @@ -170,6 +170,8 @@ function searchToHold(){ Search to hold [% END %] + Add message +
+ Add a new message + + +
[% END %] -- 1.7.10.4