From: Dan Scott Date: Mon, 12 Sep 2011 17:40:19 +0000 (-0400) Subject: Use SUBMIT buttons instead of IMAGE buttons X-Git-Tag: sprint4-merge-nov22~5128^2~1^2~14 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=653a15ed049f7a46734cab5f631fb5ce171e6034;p=working%2FEvergreen.git Use SUBMIT buttons instead of IMAGE buttons With a bit of CSS, we can replace buttons with buttons. The payoff is directly translatable values and better semantics for screen readers, etc, rather than having to set up a process of generating buttons in your colour & languages of choice - as well as fewer HTTP requests for images over the network. Note that we also replace some of the JavaScript-dependent reset / cancel links with buttons. Signed-off-by: Dan Scott --- diff --git a/Open-ILS/src/templates/opac/myopac/circs.tt2 b/Open-ILS/src/templates/opac/myopac/circs.tt2 index c13b963206..eff7f0083d 100644 --- a/Open-ILS/src/templates/opac/myopac/circs.tt2 +++ b/Open-ILS/src/templates/opac/myopac/circs.tt2 @@ -48,9 +48,10 @@ - + class="submit-button" /> Renewing Help - + class="submit-button" /> - - + + title="[% l('Cancel') %]" + class="submit-button" /> diff --git a/Open-ILS/src/templates/opac/myopac/lists.tt2 b/Open-ILS/src/templates/opac/myopac/lists.tt2 index 403c10a80f..e738be11ab 100644 --- a/Open-ILS/src/templates/opac/myopac/lists.tt2 +++ b/Open-ILS/src/templates/opac/myopac/lists.tt2 @@ -40,12 +40,15 @@ src="[% ctx.media_prefix %]/images/question-mark.png" /> - +       - [% l('Cancel') %] + class="submit-button" /> diff --git a/Open-ILS/src/templates/opac/myopac/main.tt2 b/Open-ILS/src/templates/opac/myopac/main.tt2 index 9dbbabc60c..1b78ca3c63 100644 --- a/Open-ILS/src/templates/opac/myopac/main.tt2 +++ b/Open-ILS/src/templates/opac/myopac/main.tt2 @@ -158,12 +158,11 @@
[% l('You have no current fines.') %]
[% ELSE %]
- + class="submit-button" />
[% END %] diff --git a/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 b/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 index 3729d3758c..5d46763a05 100644 --- a/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 +++ b/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 @@ -6,7 +6,10 @@
- +
diff --git a/Open-ILS/src/templates/opac/myopac/prefs_settings.tt2 b/Open-ILS/src/templates/opac/myopac/prefs_settings.tt2 index fc5f846956..984bc3f241 100644 --- a/Open-ILS/src/templates/opac/myopac/prefs_settings.tt2 +++ b/Open-ILS/src/templates/opac/myopac/prefs_settings.tt2 @@ -9,7 +9,7 @@
- +
diff --git a/Open-ILS/src/templates/opac/parts/advanced/expert.tt2 b/Open-ILS/src/templates/opac/parts/advanced/expert.tt2 index 4dc76b378f..64ce09b5c3 100644 --- a/Open-ILS/src/templates/opac/parts/advanced/expert.tt2 +++ b/Open-ILS/src/templates/opac/parts/advanced/expert.tt2 @@ -21,7 +21,9 @@ diff --git a/Open-ILS/src/templates/opac/parts/advanced/numeric.tt2 b/Open-ILS/src/templates/opac/parts/advanced/numeric.tt2 index de5494718d..2e389f390a 100644 --- a/Open-ILS/src/templates/opac/parts/advanced/numeric.tt2 +++ b/Open-ILS/src/templates/opac/parts/advanced/numeric.tt2 @@ -22,8 +22,8 @@
[ [% l("Add row") %] ] - +
- +
diff --git a/Open-ILS/src/templates/opac/parts/advanced/search.tt2 b/Open-ILS/src/templates/opac/parts/advanced/search.tt2 index bf990e9479..08761b3ad6 100644 --- a/Open-ILS/src/templates/opac/parts/advanced/search.tt2 +++ b/Open-ILS/src/templates/opac/parts/advanced/search.tt2 @@ -115,10 +115,13 @@ - +       - [% l('Reset Form') %] + diff --git a/Open-ILS/src/templates/opac/parts/login/form.tt2 b/Open-ILS/src/templates/opac/parts/login/form.tt2 index b22c616768..6dae4b6311 100644 --- a/Open-ILS/src/templates/opac/parts/login/form.tt2 +++ b/Open-ILS/src/templates/opac/parts/login/form.tt2 @@ -136,7 +136,7 @@
- +