From 8dfa2960ae0e67763cbaa2ba34b2f015954f0413 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 29 Sep 2008 19:00:20 -0500 Subject: [PATCH] Adding progress bar and some other visual enhancements to file upload interactions. Signed-off-by: Galen Charlton Signed-off-by: Chris Cormack --- .../prog/en/css/staff-global.css | 10 +-- .../prog/en/includes/background-job.inc | 1 + .../prog/en/includes/file-upload.inc | 5 +- .../en/modules/offline_circ/process_koc.tmpl | 78 ++++++++++++++++++ .../en/modules/tools/stage-marc-import.tmpl | 49 +++++++---- koha-tmpl/intranet-tmpl/prog/img/progress.png | Bin 0 -> 224 bytes 6 files changed, 117 insertions(+), 26 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tmpl create mode 100644 koha-tmpl/intranet-tmpl/prog/img/progress.png diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css index 40bcadb9cb..ff7d1a1c94 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -1400,7 +1400,7 @@ input[type=submit], input[type=button] { color: #333333; } -input.submit { +input.submit,button.submit { border: 1px solid #999999; border-top-color: #666; border-left-color: #666; @@ -1417,11 +1417,7 @@ input[type=submit]:active, input[type=button]:active { border : 1px inset #999999; } -input.submit:active { - border : 1px inset #999999; -} - -input[type=reset], input[type=button], input.submit { +input[type=reset], input[type=button], input.submit, button.submit { border: 1px outset #999999; border-top-color: #666; border-left-color: #666; @@ -1430,7 +1426,7 @@ input[type=reset], input[type=button], input.submit { color: #333333; } -input[type=reset]:active, input[type=button]:active, input.submit:active { +input[type=reset]:active, input[type=button]:active, input.submit:active, button.submit:active { border : 1px inset #999999; } diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/background-job.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/background-job.inc index 8272fe93a9..0e30e7a712 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/background-job.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/background-job.inc @@ -59,6 +59,7 @@ }); // and submit the request + $("#jobpanel").show(); $("#jobstatus").show(); $.ajax({ data: inputs.join('&'), diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/file-upload.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/file-upload.inc index a2f7328e27..271532dc08 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/file-upload.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/file-upload.inc @@ -24,6 +24,7 @@ function ajaxFileUpload() { fileUploadProgressTimerCanceled = false; + $("#uploadpanel").show(); $("#fileuploadstatus").show(); fileUploadProgressTimer = setInterval("updateProgress()",500); $.ajaxFileUpload ( @@ -48,7 +49,9 @@ $("#fileuploadfailed").text("Upload failed -- database in maintenance state"); } else { $("#uploadedfileid").val(data.fileid); - $("#fileuploadprogress").text("100"); + $("#fileuploadprogress").css("background-position","0px 0px"); + $("#processfile").show(); + $("#fileuploadpercent").text("100"); } fileUploadProgressTimerCanceled = true; clearInterval(fileUploadProgressTimer); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tmpl new file mode 100644 index 0000000000..4c1d2ea6b4 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tmpl @@ -0,0 +1,78 @@ + +Koha › Circulation › Offline Circulation File Upload + + + + + + + + + + + + +
+ +
+ + +

Koha Offline Circulation

+

Your data was processed. Here are the results.

+ +

+ + +

Upload Offline Circulation Data

+
+
" enctype="multipart/form-data"> +
+
  1. +
+
+
+
+ + +
+
+ + + + + + +
+ + + +
+ \ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tmpl index e47a12e86f..f69237e9af 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tmpl @@ -3,11 +3,20 @@ +