Disabled option in account menu
[working/Evergreen.git] / Open-ILS / src / templates / opac / parts / myopac / base.tt2
1 [%  WRAPPER "opac/parts/base.tt2" %]
2
3 [% myopac_pages = [
4         {url => "main", name => l("Account Summary")},
5         {url => "circs", name => l("Items Checked Out")},
6         {url => "holds", name => l("Holds")},
7         {url => "prefs", name => l("Account Preferences")},
8         {url => "lists", name => l("My Lists")}
9     ];
10     skin_root = "../"
11 %]
12     [% INCLUDE "opac/parts/topnav.tt2" %]
13     [% INCLUDE "opac/parts/searchbar.tt2" %]
14     <div id="content-wrapper">
15         <div id="myopac_tabs">
16             <div id="acct_tabs">
17                 [%- FOREACH page IN myopac_pages;
18                     IF page.url == myopac_page;
19                         cls_which = "acct-tab-on";
20                         ctx.page_title = l("My Account - [_1]", page.name);
21                     ELSE;
22                         cls_which = "acct-tab-off";
23                     END -%]
24                 <a href="[% mkurl(ctx.opac_root _ '/myopac/' _ page.url, {}, ['bbid', 'offset', 'limit']) %]"
25                     class="[% cls_which %]">[% page.name; %]</a>
26                 [% END %]
27             </div>
28             <!- Select box navigation for media view ->
29             <div id="acct_select">
30                <form name="acct_nav">
31                  <select name="acct_url" aria-label="Select an account page" onchange="window.location.href=document.acct_nav.acct_url.options[document.acct_nav.acct_url.selectedIndex].value">
32                    <option value="" selected="selected">Go to...</option>
33                [% FOREACH page IN myopac_pages;
34                   IF page.url != myopac_page; %]
35                     <option value="[% mkurl(ctx.opac_root _ '/myopac/' _ page.url, {}, ['bbid', 'offset', 'limit']) %]">[% page.name; %]</option>
36                  [% ELSE; %]
37                    <option value="" disabled>[% page.name; %]</option>
38                [% END;
39                END; %] 
40                </select>
41             </div>
42            </form>
43         </div>
44         <div id="main-content">
45             [% content %]
46             <div class="common-full-pad"></div>
47         </div>
48     </div>
49 [% END %]