From: Galen Charlton Date: Thu, 25 May 2017 01:22:11 +0000 (-0400) Subject: LP#1681943: show all list fields in mobile view X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a724acf4083e070118cacf9562435f943321fe48;p=evergreen%2Fpines.git LP#1681943: show all list fields in mobile view In mobile view, "rotate" the temporary and permanent list tables 90 degrees and put the column headings on the left/right side. data-label attributes are used to stash copies of the column labels; the end result is similar to how the current circulations table is displayed on narrow screens. Signed-off-by: Galen Charlton Signed-off-by: Terran McCanna Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/templates/opac/css/style.css.tt2 b/Open-ILS/src/templates/opac/css/style.css.tt2 index 173d2b2752..f520d3775c 100644 --- a/Open-ILS/src/templates/opac/css/style.css.tt2 +++ b/Open-ILS/src/templates/opac/css/style.css.tt2 @@ -2061,6 +2061,7 @@ table.bookbag-specific { border-right: 1px solid [% css_colors.accent_dark %]; border-bottom: 1px solid [% css_colors.accent_medium %]; margin-bottom: 2ex; + width: 100%; } .bookbag-share { [% IF rtl == 't' -%] @@ -2700,6 +2701,10 @@ a.preflib_change { .bookbag-specific div.sort select { width:180px; } + .bookbag-specific tr { + display: block; + border-bottom: 1px solid [% css_colors.border_standard %]; + } .bookbag-specific td.list_checkbox { [% IF rtl == 't' -%] padding-right: 0px !important; @@ -2708,11 +2713,21 @@ a.preflib_change { [% END -%] } .bookbag-specific td.list_entry { + display: inline-block; min-width: 5em; [% IF rtl == 't' -%] - padding-right: 5px !important; + padding-right: 40% !important; + [% ELSE -%] + padding-left: 40% !important; + [% END -%] + } + .bookbag-specific td.list_entry:before { + content: attr(data-label); + position: absolute; + [% IF rtl == 't' -%] + right: 10px; [% ELSE -%] - padding-left: 5px !important; + left: 10px; [% END -%] } .bbag-navigate-list { diff --git a/Open-ILS/src/templates/opac/myopac/lists.tt2 b/Open-ILS/src/templates/opac/myopac/lists.tt2 index b12b9dce1e..510fea2d4a 100644 --- a/Open-ILS/src/templates/opac/myopac/lists.tt2 +++ b/Open-ILS/src/templates/opac/myopac/lists.tt2 @@ -347,16 +347,16 @@ - + [% attrs.title | html %] - - + [% attrs.author | html %] - + [% copy = attrs.holdings.0; IF copy; @@ -373,21 +373,21 @@ END; %] - + [% attrs.pubdate | html %] - + [% attrs.format_label | html %] [% IF CGI.param("edit_notes") == bbag.id %] - + [% FOR note IN item.notes %] [% END %] [% ELSE %] - + [% FOR note IN item.notes %]
[% note.note | html %]
[% END %] diff --git a/Open-ILS/src/templates/opac/parts/anon_list.tt2 b/Open-ILS/src/templates/opac/parts/anon_list.tt2 index dab23bff5b..9ec6d588a5 100644 --- a/Open-ILS/src/templates/opac/parts/anon_list.tt2 +++ b/Open-ILS/src/templates/opac/parts/anon_list.tt2 @@ -30,7 +30,7 @@
- +
- - + -
@@ -52,8 +52,8 @@ [% attrs.title | html %][% attrs.title | html %][% attrs.author | html %] + [% copy = attrs.holdings.0; IF copy;