From ec8dec210b85308dee53bf72ac27be9d5816fd45 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 20 Jun 2018 16:12:41 +0000 Subject: [PATCH] Bug 20970: Reformat basket information on acquisitions basket page This patch reformats the display of information on the acquisitions basket page, hiding form controls until they are triggered. Some basket information is now in the second column in order to balance the two columns better. The "Library" label has been replaced with the more precise "Managing library." Unrelated change: Removed script type attributes. To test, apply the patch and view a basket in acquisitions. Test these processes: - Adding and removing managing users - Setting and changing managing library - Setting and changing basket group --- .../intranet-tmpl/prog/en/modules/acqui/basket.tt | 244 +++++++++++++-------- 1 file changed, 153 insertions(+), 91 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt index e1ff9c5..ae9fc4b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt @@ -222,117 +222,156 @@ Managed by:
- - - - -
+ + + +
  • - Library: + Managing library: [% IF basketbranchcode %] [% Branches.GetName( basketbranchcode ) %] + Change library [% ELSE %] No library + Set library [% END %] - [% IF branches_loop.size %] -
    - + + [% FOREACH branch IN branches_loop %] + [% IF (branch.selected) %] + + [% ELSE %] + + [% END %] [% END %] - [% END %] - - - - -
    + + + +

    + + Cancel +

    + + +
  • [% END %] - [% IF ( creationdate ) %]
  • Opened on: [% creationdate | $KohaDates %]
  • [% END %] - [% IF ( closedate ) %]
  • Closed on: [% closedate | $KohaDates %]
  • [% END %] - [% IF ( estimateddeliverydate ) %]
  • Estimated delivery date: [% estimateddeliverydate | $KohaDates %]
  • [% END %] -
  • Orders are standing: [% IF is_standing %]Yes[% ELSE %]No[% END %]
  • - - [% IF basket.create_items %] -
  • - Create items when: - [% SWITCH basket.create_items %] - [% CASE 'receiving' %]Receiving items - [% CASE 'cataloguing' %]Cataloguing items - [% CASE %]Placing orders - [% END %] -
  • - [% END %] - - [% IF ( closedate ) %] +
    +
      + [% IF ( creationdate ) %] +
    1. Opened on: [% creationdate | $KohaDates %]
    2. + [% END %] + [% IF ( closedate ) %] +
    3. Closed on: [% closedate | $KohaDates %]
    4. + [% END %] + [% IF ( estimateddeliverydate ) %] +
    5. Estimated delivery date: [% estimateddeliverydate | $KohaDates %]
    6. + [% END %] +
    7. Orders are standing: [% IF is_standing %]Yes[% ELSE %]No[% END %]
    8. + + [% IF basket.create_items %] +
    9. + Create items when: + [% SWITCH basket.create_items %] + [% CASE 'receiving' %]Receiving items + [% CASE 'cataloguing' %]Cataloguing items + [% CASE %]Placing orders + [% END %] +
    10. + [% END %] +
    + + [% IF ( closedate ) %] [% IF ( CAN_user_acquisition_group_manage ) %]
    [% END %]
      -
    1. - Basket group: - [% IF basketgroup.id and not basketgroup.name %] - [% SET basketgroup.name = "Basket group no. " _ basketgroup.id %] - [% END %] - [% IF basketgroup.closed %] - [% IF ( CAN_user_acquisition_group_manage ) %] - [% basketgroup.name %] (closed) - [% ELSE %] - [% basketgroup.name %] (closed) - [% END %] - [% ELSIF ( ! CAN_user_acquisition_group_manage ) %] - [%- IF basketgroup.id -%] - [% basketgroup.name %] - [%- ELSE -%] - No group - [%- END -%] - [% ELSE %] - + + [% FOREACH bg IN basketgroups %] + [% IF ( bg.default ) %] + + [% ELSE %] + [% UNLESS bg.closed %] + + [% ELSE %] + + [% END %] + [% END %] + [% END %] + + + + + +

      + + Cancel +

      +
    [% END %] - [% END %] - - - - - - - [% END %] - - [% IF basketgroup.deliveryplace %]
  • Basket group delivery placename: [% Branches.GetName( basketgroup.deliveryplace ) %]
  • [% END %] - [% IF basketgroup.billingplace %]
  • Basket group billing place: [% Branches.GetName( basketgroup.billingplace ) %]
  • [% END %] + [% IF ( CAN_user_acquisition_group_manage ) %] [% END %] - [% END %] + [% END %] @@ -681,7 +720,8 @@ [% END %][%# IF (cannot_manage_basket) %]
    -[% INCLUDE 'acquisitions-menu.inc' %] + [% INCLUDE 'vendor-menu.inc' %] + [% INCLUDE 'acquisitions-menu.inc' %]
    @@ -711,9 +751,9 @@ [% MACRO jsinclude BLOCK %] [% Asset.js("js/acquisitions-menu.js") %] -[% INCLUDE 'datatables.inc' %] + [% INCLUDE 'datatables.inc' %] [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") %] - [% UNLESS ( closedate ) %] - [% ELSE %] - [% UNLESS ( grouped ) %] - [% END %] [% END %] - [% END %] -- 2.1.4