From e1d3b55f88e091323415fc3df8d458c1d0b7f873 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 24 Feb 2021 16:58:28 +0000 Subject: [PATCH] Bug 27777: (alternate) Improve tables on Point of Sale page for low screen resolutions This alternate solution makes these minor changes: - The Bootstrap grid classes are adjusted so that the breakpoint between the two-column layout and the single-column layout happens at a wider browser-width. - The DataTable configurations are modified to set "autoWidth" to "false," which gives us a more fluid behavior. Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 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 23d66d9202..a87d9e7a8a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt @@ -21,7 +21,7 @@
-
+
[% IF ( registers.size == 0 ) %]
@@ -46,7 +46,7 @@
-
+
Items for purchase Please select items from below to add to this transaction: @@ -78,7 +78,7 @@
-
+
This sale @@ -149,7 +149,7 @@ [% END %]
-
+
@@ -335,7 +335,8 @@ nFoot.getElementsByTagName('td')[1].innerHTML = iTotalPrice.format_price(); $('#paid').val(iTotalPrice); $('#paid').trigger('change'); - } + }, + "autoWidth": false })); $("#sale").on("click", "button.drop", function(){ @@ -346,6 +347,7 @@ var items_table = KohaTable("invoices", { "sPaginationType": "full", "aaSorting": [[ 0, "asc" ]], + "autoWidth": false }, items_columns_settings, false); $("#invoices").on("click", ".add_button", function(e) { -- 2.11.0