Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [% 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 = "../"
- %]
- <div id='myopac_prefs_div'>
- <div id="acct_prefs_tabs">
- <div style="float:left;">
- [%- FOREACH page IN acct_prefs_pages;
- IF page.url == acct_prefs_page;
- cls_select = "align selected";
- ELSE;
- cls_select = "align";
- END -%]
- <div class="[% cls_select %]">
- <a href="[% mkurl(ctx.opac_root _ '/myopac/' _ page.url, {}, ['bbid', 'offset', 'limit']) %]">[% page.name; %]</a>
- </div>
- [% END %]
- </div>
- </div>
- <div class="clear-both"></div> <br/>
- <div class="header_middle">
- <span id="acct_prefs_header">[% l('Account Information and Preferences') %]</span>
- <span class="float-right">
- <a class="hide_me" href="#">[% l('Export List') %]</a><!-- what does this do? -->
- </span>
- </div>
- <!- Select box navigation for mobile view ->
- <div id="acct_prefs_select">
- <form name="acct_prefs_nav">
- <select name="acct_prefs_url" aria-label="Select a preferences
- page" onchange="window.location.href=document.acct_prefs_nav.acct_prefs_url.options[document.acct_prefs_nav.acct_prefs_url.selectedIndex].value">
- [% FOREACH page IN acct_prefs_pages;
- IF page.url != acct_prefs_page; %]
- <option value="[% mkurl(ctx.opac_root _ '/myopac/' _ page.url, {}, ['bbid', 'offset', 'limit']) %]">[% page.name; %]</option>;
- [% ELSE; %]
- <option value="" disabled selected>[% page.name; %]</option>;
- [% END;
- END; %]
- </select>
- </div>
- <div class="clear-both normal-height"></div>
- [% content; %]
- </div>
- [% END %]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement