From c2de3ace657e846867fa9ef93be2382a2ff3c9ea Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 17 May 2016 11:18:14 -0400 Subject: [PATCH] Bug 16538: Improve the style of progress bars MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch updates the style of progress bars to make them a little nicer. Progress bars in the staff client are not built in a consisten way. Some have been updated to use the element and some have not. This patch improves some styling common to both kinds. Other changes: - Redundant in-page CSS has been removed from many pages. - An invalid "min" attribute has been removed from several instances of . - Corrected capitalization. - Fixed incorrectly quoted attributes. - Added missing form "action" attributes. To test, clear your browser cache if necessary. Apply the patch and test uploads on the following pages: - Circulation -> Offline circulation file upload - Tools -> Batch item modification - Tools -> Batch record modification - Tools -> Stage MARC records for import - Tools -> Manage staged MARC records - Tools -> Upload local cover image - Tools -> Upload In all cases, progress bars should look improved and work correctly. Test Tools -> Batch item deletion. Unused background job handling markup has been removed. Deletion processing should work correctly. Signed-off-by: Hector Castro Works as advertised Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall (cherry picked from commit 65b2da08c9edaa6d2afe83ca7a5b72000128ecbe) Signed-off-by: Frédéric Demians --- .../intranet-tmpl/prog/css/staff-global.css | 24 ++++++++++++++++++- .../en/modules/offline_circ/process_koc.tt | 6 +---- .../prog/en/modules/tools/batchMod-del.tt | 13 ++++------ .../prog/en/modules/tools/batchMod-edit.tt | 2 +- .../tools/batch_record_modification.tt | 2 +- .../en/modules/tools/manage-marc-import.tt | 6 ++--- .../en/modules/tools/stage-marc-import.tt | 8 +++---- .../prog/en/modules/tools/upload-images.tt | 16 ++++--------- .../prog/en/modules/tools/upload.tt | 2 +- 9 files changed, 41 insertions(+), 38 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/css/staff-global.css index 8a7159ff7b..98005d1414 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/css/staff-global.css @@ -2476,11 +2476,33 @@ fieldset.rows table.mceListBox { #jobpanel,#jobstatus,#jobfailed { display : none; } #jobstatus { margin:.4em; } -#jobprogress{ width:200px;height:10px;border:1px solid #666;background:url('../img/progress.png') -300px 0px no-repeat; } + +#jobprogress{ + display: inline-block; + width:200px; + height:10px; + border:1px solid #666; + background:url('../img/progress.png') -300px 0px no-repeat; + } + +.progress_panel { + clear: both; + font-size: 120%; + margin: 1em 0; + padding: 1em; + border: 2px solid #EEE; + border-radius: 5px; +} + +progress { + width: 50%; +} + #selections { width : 100%; white-space : normal; } #selections span { margin:3px;padding:3px;background-color:#EBF3FF;-moz-border-radius:5px;border-radius:5px;white-space:nowrap;line-height:240%;font-size:75%; } #selections span.selected { background-color : #CCE0FC; } #selections input { vertical-align:middle;margin:0 2px; } + #changepasswordf input[type="text"], #changepasswordf input[type="password"] { font-size: 140%; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tt index a126288e2c..01275e034a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tt @@ -66,10 +66,6 @@ function CheckForm(f) { //]]> - [% INCLUDE 'header.inc' %] @@ -109,7 +105,7 @@ function CheckForm(f) {
- + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt index e339e3a6bf..8014d9ed98 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt @@ -1,7 +1,6 @@ [% INCLUDE 'doc-head-open.inc' %] Koha › Tools › Batch item deletion [% INCLUDE 'doc-head-close.inc' %] - [% INCLUDE 'datatables.inc' %] @@ -42,8 +41,8 @@ $(document).ready(function(){ [% IF ( show ) %]

Batch item deletion

[% ELSE %]

Batch item deletion results

[% END %] [% IF ( barcode_not_unique ) %]
Error saving item: Barcode must be unique.
[% END %] [% IF ( no_next_barcode ) %]
Error saving items: Unable to automatically determine values for barcodes. No item has been inserted.
[% END %] - [% IF ( book_on_loan ) %]
Cannot Delete: item is checked out.
[% END %] - [% IF ( book_reserved ) %]
Cannot Delete: item has a waiting hold.
[% END %] + [% IF ( book_on_loan ) %]
Cannot delete: item is checked out.
[% END %] + [% IF ( book_reserved ) %]
Cannot delete: item has a waiting hold.
[% END %] [% UNLESS ( action ) %] @@ -136,15 +135,11 @@ $(document).ready(function(){

This will delete [% IF ( too_many_items ) %]all the[% ELSE %]the selected[% END %] items.

-
-
Job progress:
0%
-
-
[% IF too_many_items %] - + [% ELSE %] - + [% END %] Cancel diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt index 67bd83f267..6c7c5c0363 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt @@ -234,7 +234,7 @@ $(document).ready(function(){
-
Job progress:
0%
+
Job progress:
0%
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt index a724c364b9..2d7d5341ae 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt @@ -252,7 +252,7 @@ $(document).ready(function() { Cancel
-
Job progress:
0%
+
Job progress:
0%
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt index e1119d13f1..a8a957271b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt @@ -152,9 +152,7 @@ $(document).ready(function(){ //]]> @@ -360,7 +358,7 @@ $(document).ready(function(){ [% END %] -
Job progress:
0%
+
Job progress:
0%
[% END %] [% IF ( can_revert ) %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt index 529edd5a7b..45aeac9858 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt @@ -7,8 +7,6 @@