From be440f3fb80912dabe1b697d9bf99818d3066599 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 21 Dec 2020 13:22:15 +0000 Subject: [PATCH] Bug 27289: Template tweaks for point of sale page This patch makes a couple of minor changes to the point of sale page in order to make it consistent with other pages in the staff interface: - Buttons inside table cells should have the "btn-xs" class. - Required fields should have a "required" class and should have a "Required" label. Also changed: Replaced according to coding guidelines. To test, apply the patch and enable the EnablePointOfSale and UseCashRegisters system preferences if necessary. - On the Point of Sale page, add some items to purchase. Confirm that the "Add" buttons in the "Items for purchase" table and the "Remove" buttons in the "This sale" table are correctly sized. - In the "Collect payment" form, confirm that "Amount tendered" and "Cash register" fields are styled red with "Required" text after them. - Confirm that the "Amount tendered" field will only accept numeric input. --- koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt index 5d3462fa94..efdea82446 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt @@ -67,7 +67,7 @@ [% invoice.description | html %] [% invoice.default_amount | $Price %] - + [% END %] @@ -112,11 +112,12 @@
  1. - +
  2. - - + + + Required
  3. @@ -127,11 +128,12 @@ [% PROCESS account_payment_types %]
  4. - - [% PROCESS options_for_registers %] + Required
@@ -242,7 +244,7 @@ defaultPrice.value, 1, null, - '', + '', invoiceCode ] ); -- 2.11.0