From: Kathy Lussier Date: Fri, 20 Sep 2013 19:09:13 +0000 (-0400) Subject: Replace prefs tabs with select menu in mobile view X-Git-Tag: sprint4-merge-nov22~2683 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f6360ccdd1652b04299eea00018fa372a8f74a8d;p=working%2FEvergreen.git Replace prefs tabs with select menu in mobile view There are too many account preference tabs to display cleanly on a small screen resolution, so let's replace them with a select menu for navigation. At the same time, we remove hardcoded values used for the navigation tabs so that we do not need to maintain links/labels for the menus in two different places. Signed-off-by: Kathy Lussier Signed-off-by: Lebbeous Fogle-Weekley Signed-off-by: Dan Wells --- diff --git a/Open-ILS/src/templates/opac/css/style.css.tt2 b/Open-ILS/src/templates/opac/css/style.css.tt2 index 87647609e6..cdc607138c 100644 --- a/Open-ILS/src/templates/opac/css/style.css.tt2 +++ b/Open-ILS/src/templates/opac/css/style.css.tt2 @@ -353,7 +353,7 @@ span.dash_divider { color: [% css_colors.accent_medium %]; } -#acct_select { +#acct_select, #acct_prefs_select { display: none; } @@ -1753,11 +1753,11 @@ a.preflib_change { display: none; } - #acct_select { + #acct_select, #acct_prefs_select { display: inline-block; } - #acct_tabs { + #acct_tabs, #acct_prefs_tabs { display:none; } diff --git a/Open-ILS/src/templates/opac/myopac/prefs.tt2 b/Open-ILS/src/templates/opac/myopac/prefs.tt2 index 8e45561eb4..df1d444148 100644 --- a/Open-ILS/src/templates/opac/myopac/prefs.tt2 +++ b/Open-ILS/src/templates/opac/myopac/prefs.tt2 @@ -1,7 +1,7 @@ [% PROCESS "opac/parts/header.tt2"; WRAPPER "opac/parts/myopac/prefs_base.tt2"; myopac_page = "prefs"; - prefs_page = 'personal' %] + prefs_page = 'prefs' %]
diff --git a/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 b/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 index c0c1fba906..0663d86346 100644 --- a/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 +++ b/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 @@ -1,7 +1,7 @@ [% PROCESS "opac/parts/header.tt2"; WRAPPER "opac/parts/myopac/prefs_base.tt2"; myopac_page = "prefs"; - prefs_page = 'notify' %] + prefs_page = 'prefs_notify' %]
[% setting = 'opac.hold_notify' %] diff --git a/Open-ILS/src/templates/opac/myopac/prefs_settings.tt2 b/Open-ILS/src/templates/opac/myopac/prefs_settings.tt2 index 4896a7b66e..30323825a5 100644 --- a/Open-ILS/src/templates/opac/myopac/prefs_settings.tt2 +++ b/Open-ILS/src/templates/opac/myopac/prefs_settings.tt2 @@ -2,7 +2,7 @@ PROCESS "opac/parts/org_selector.tt2"; WRAPPER "opac/parts/myopac/prefs_base.tt2"; myopac_page = "prefs"; - prefs_page = 'settings' %] + prefs_page = 'prefs_settings' %] diff --git a/Open-ILS/src/templates/opac/parts/myopac/prefs_base.tt2 b/Open-ILS/src/templates/opac/parts/myopac/prefs_base.tt2 index 031da15dfb..ec9e657581 100644 --- a/Open-ILS/src/templates/opac/parts/myopac/prefs_base.tt2 +++ b/Open-ILS/src/templates/opac/parts/myopac/prefs_base.tt2 @@ -1,65 +1,31 @@ [% PROCESS "opac/parts/header.tt2"; WRAPPER "opac/parts/myopac/base.tt2"; %] + [% acct_prefs_pages = [ + {url => "prefs", name => l("Personal Information")}, + {url => "prefs_notify", name => l("Notification Preferences")}, + {url => "prefs_settings", name => l("Search and History Preferences")}, + {url => "prefs_my_lists", name => l("My Lists Preferences")} + ]; + skin_root = "../" +%] +
+ [%- FOREACH page IN acct_prefs_pages; + IF page.url == prefs_page; + cls_select = "align selected"; + ELSE; + cls_select = "align"; + END -%] - [% IF prefs_page == 'personal' %] - - - - - [% ELSIF prefs_page == 'notify' %] - - - - - [% ELSIF prefs_page == 'settings' %] - -
+ [% END %] +
+

@@ -69,6 +35,19 @@ [% l('Export List') %]
+ +
+ + +