From 4c88e796307b09cbf15694ddf0a129f4023d3b4c Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Fri, 9 Jun 2017 17:54:20 -0400 Subject: [PATCH] Bunch of UI improvements: date restriction, progress dialogs, next-focus, success/fail toasts, and more Signed-off-by: Mike Rylander --- Open-ILS/src/templates/staff/base_js.tt2 | 3 +- Open-ILS/src/templates/staff/offline-interface.tt2 | 43 ++++++++++++++------ Open-ILS/src/templates/staff/share/t_datetime.tt2 | 1 + Open-ILS/web/js/ui/default/staff/offline.js | 46 +++++++++++++++++++--- Open-ILS/web/js/ui/default/staff/services/ui.js | 8 ++++ 5 files changed, 81 insertions(+), 20 deletions(-) diff --git a/Open-ILS/src/templates/staff/base_js.tt2 b/Open-ILS/src/templates/staff/base_js.tt2 index edc16e0ffd..73a5429fe5 100644 --- a/Open-ILS/src/templates/staff/base_js.tt2 +++ b/Open-ILS/src/templates/staff/base_js.tt2 @@ -62,6 +62,7 @@ UpUp.start({ '[% ctx.media_prefix %]/js/ui/default/staff/offline.js', '[% ctx.base_path %]/staff/share/t_alert_dialog', '[% ctx.base_path %]/staff/share/t_datetime', + '[% ctx.base_path %]/staff/share/t_progress_dialog', '[% ctx.base_path %]/staff/share/print_templates/t_offline_in_house_use', '[% ctx.base_path %]/staff/share/print_templates/t_offline_checkout', '[% ctx.base_path %]/staff/share/print_templates/t_offline_checkin', @@ -171,7 +172,7 @@ UpUp.start({ s.BAD_PATRON_BARCODE = "[% l('Bad patron barcode') %]"; s.ITEM_NOT_FOUND = "[% l('Item not found') %]"; s.CONFIRM_CLEAR_PENDING = "[% l('Clear pending transactions') %]"; - s.CONFIRM_CLEAR_PENDING_BODY = "[% l('Are you certain you want to clear these pending offline transactions? This action is not reversable, and they cannot be recovered after clearing!') %]"; + s.CONFIRM_CLEAR_PENDING_BODY = "[% l('Are you certain you want to clear these pending offline transactions? This action is irreversible. Transactions cannot be recovered after clearing!') %]"; }]); diff --git a/Open-ILS/src/templates/staff/offline-interface.tt2 b/Open-ILS/src/templates/staff/offline-interface.tt2 index d75a074f72..49451e5df5 100644 --- a/Open-ILS/src/templates/staff/offline-interface.tt2 +++ b/Open-ILS/src/templates/staff/offline-interface.tt2 @@ -29,10 +29,24 @@ + + @@ -55,7 +69,7 @@ [% l('Due Date:') %]
- +
+
- [% l('Item Barcode:') %] +
- +
- [% l('Non-cataloged Type:') %] +
- +
@@ -178,7 +192,7 @@ [% l('Due Date:') %]
- +
- +
@@ -289,7 +303,7 @@
- +
@@ -329,7 +343,7 @@ [% l('Checkin Date:') %]
- +
@@ -339,7 +353,7 @@ [% l('Item Barcode:') %]
- +
@@ -354,7 +368,7 @@
- +
@@ -491,7 +505,7 @@