From b114e4f963003e490530af1de94a7e15384d930a Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 20 Dec 2013 11:12:30 -0500 Subject: [PATCH] LP#1268636 HTML table attributes validation repairs Replace old-school inline cellpadding, cellspacing, border attributes with CSS. Signed-off-by: Bill Erickson Signed-off-by: Dan Scott --- Open-ILS/src/templates/opac/css/style.css.tt2 | 14 ++++++++++++++ Open-ILS/src/templates/opac/myopac/circs.tt2 | 2 +- Open-ILS/src/templates/opac/myopac/holds.tt2 | 4 ++-- Open-ILS/src/templates/opac/myopac/lists.tt2 | 4 ++-- Open-ILS/src/templates/opac/myopac/main_payment_form.tt2 | 2 +- Open-ILS/src/templates/opac/parts/anon_list.tt2 | 2 +- Open-ILS/src/templates/opac/parts/record/copy_table.tt2 | 2 +- Open-ILS/src/templates/opac/parts/result/table.tt2 | 7 +++---- 8 files changed, 25 insertions(+), 12 deletions(-) diff --git a/Open-ILS/src/templates/opac/css/style.css.tt2 b/Open-ILS/src/templates/opac/css/style.css.tt2 index 1076338243..5716495c69 100644 --- a/Open-ILS/src/templates/opac/css/style.css.tt2 +++ b/Open-ILS/src/templates/opac/css/style.css.tt2 @@ -689,6 +689,20 @@ collapse correctly when the window width decreases */ color:[% css_colors.primary_fade %]; } +.table_no_border_space { + border-spacing: 0px; +} +.table_no_cell_pad td { + padding: 0px; +} +.table_no_border { + border-collapse: collapse; +} + +#result_table_table { + margin-top:10px; +} + #result_table_div { margin-top: 1em; } diff --git a/Open-ILS/src/templates/opac/myopac/circs.tt2 b/Open-ILS/src/templates/opac/myopac/circs.tt2 index 21d4baafb8..8d856e1411 100644 --- a/Open-ILS/src/templates/opac/myopac/circs.tt2 +++ b/Open-ILS/src/templates/opac/myopac/circs.tt2 @@ -33,7 +33,7 @@
- +
+
- +
diff --git a/Open-ILS/src/templates/opac/myopac/lists.tt2 b/Open-ILS/src/templates/opac/myopac/lists.tt2 index ccfafb15a4..36adee2b0c 100644 --- a/Open-ILS/src/templates/opac/myopac/lists.tt2 +++ b/Open-ILS/src/templates/opac/myopac/lists.tt2 @@ -11,7 +11,7 @@

[% l('Create New List') %]

- +
@@ -274,7 +274,7 @@ - +
diff --git a/Open-ILS/src/templates/opac/myopac/main_payment_form.tt2 b/Open-ILS/src/templates/opac/myopac/main_payment_form.tt2 index 8da0287e85..93ac28348c 100644 --- a/Open-ILS/src/templates/opac/myopac/main_payment_form.tt2 +++ b/Open-ILS/src/templates/opac/myopac/main_payment_form.tt2 @@ -40,7 +40,7 @@ [% l('Billing Information') %]

[% l('Selected fines you are paying for:') %]

- +
diff --git a/Open-ILS/src/templates/opac/parts/anon_list.tt2 b/Open-ILS/src/templates/opac/parts/anon_list.tt2 index 252f4ae05a..47e496f6ca 100644 --- a/Open-ILS/src/templates/opac/parts/anon_list.tt2 +++ b/Open-ILS/src/templates/opac/parts/anon_list.tt2 @@ -14,7 +14,7 @@

[% l('Temporary List') %]

-
[% l('Name') %]
+
diff --git a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 index a19421885a..f6ec522bdc 100644 --- a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 @@ -26,7 +26,7 @@ FOREACH copy_info IN copies; END; -%] [%- IF has_copies; %] - +
[% IF serial_holdings -%] diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2 index 3d77b9098b..06a7c69436 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -25,8 +25,8 @@ [% INCLUDE 'opac/parts/result/facets.tt2' %]
-
+
[% FOR rec IN ctx.records; attrs = {marc_xml => rec.marc_xml}; @@ -110,8 +110,7 @@ END; class='classic_link hide_me' name="googleBooks-link">[% l("Browse in Google Books Search") %] -
+
[% IF args.holdings.size > 0 %]
-- 2.11.0