From 94ca631aa0edb1822125ca38942f011214ecdcef Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 8 Jan 2014 16:29:15 -0500 Subject: [PATCH] tpac wcat : myopac/main Signed-off-by: Bill Erickson --- Open-ILS/src/templates/opac/myopac/main.tt2 | 8 +++++ Open-ILS/src/templates/opac/parts/myopac/base.tt2 | 41 +++++++++++++--------- .../src/templates/opac/parts/myopac/main_base.tt2 | 33 ++++++++++------- 3 files changed, 53 insertions(+), 29 deletions(-) diff --git a/Open-ILS/src/templates/opac/myopac/main.tt2 b/Open-ILS/src/templates/opac/myopac/main.tt2 index 38d5b4f171..b5451cb598 100644 --- a/Open-ILS/src/templates/opac/myopac/main.tt2 +++ b/Open-ILS/src/templates/opac/myopac/main.tt2 @@ -8,7 +8,12 @@ myopac_cc_allowed = 1; END %] +[% IF myopac_cc_allowed; + # http://www.w3.org/TR/WCAG20-TECHS/H32.html + # avoid forms w/ no submit action %]
+[% END %] + [% IF ctx.fines.circulation.size > 0 %]
@@ -180,5 +185,8 @@ class="opac-button" /> [% END %] +[% IF myopac_cc_allowed %] [% END %] + +[% END %] diff --git a/Open-ILS/src/templates/opac/parts/myopac/base.tt2 b/Open-ILS/src/templates/opac/parts/myopac/base.tt2 index 3dae62fdcd..17d0996fec 100644 --- a/Open-ILS/src/templates/opac/parts/myopac/base.tt2 +++ b/Open-ILS/src/templates/opac/parts/myopac/base.tt2 @@ -27,25 +27,32 @@ class="[% cls_which %]">[% page.name; %] [% END %] - -
-
- -
- - + + +
+
+ + [%# forms should have submit actions, even if they are not visible + http://www.w3.org/TR/WCAG20-TECHS/H32.html %] + + + + +
+
[% content %]
- + [% END %] diff --git a/Open-ILS/src/templates/opac/parts/myopac/main_base.tt2 b/Open-ILS/src/templates/opac/parts/myopac/main_base.tt2 index 420bd3ec4d..430bc36170 100644 --- a/Open-ILS/src/templates/opac/parts/myopac/main_base.tt2 +++ b/Open-ILS/src/templates/opac/parts/myopac/main_base.tt2 @@ -59,22 +59,31 @@
- - + + - - + + - - + +
[% l("Items Currently Checked out ([_1])", ctx.user_stats.checkouts.total_out) %] - [% l("View All") %] - [% l("Items Currently Checked out ([_1])", ctx.user_stats.checkouts.total_out) %] + + [% l("View All") %] + +
[% l('Items Currently on Hold ([_1])', ctx.user_stats.holds.total) %] - [% l('View All') %] - [% l('Items Currently on Hold ([_1])', ctx.user_stats.holds.total) %] + + [% l('View All') %] + +
[% l('Items ready for pickup ([_1])', ctx.user_stats.holds.ready) %] - [% l('View All') %] - [% l('Items ready for pickup ([_1])', ctx.user_stats.holds.ready) %] + + [% l('View All') %] + +
-- 2.11.0