]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/opac/parts/myopac/main_base.tt2
TPAC: Slightly more accessible user-visible account notes display
[working/Evergreen.git] / Open-ILS / src / templates / opac / parts / myopac / main_base.tt2
1 [%  PROCESS "opac/parts/header.tt2";
2     PROCESS "opac/parts/misc_util.tt2";
3     WRAPPER "opac/parts/myopac/base.tt2";
4 %]
5
6 <div id='myopac_summary_div' style="padding:0px;">
7
8     <div style="width:742px;float:left;">
9         <div class="header_middle">[% l('Account Summary') %]</div>
10     </div>
11
12     <!-- fines summary along the right of the page -->
13     [% IF myopac_main_page == "payment_form" OR (
14         !ctx.fines.circulation.size AND !ctx.fines.grocery.size
15     ) %]
16     <div id="myopac_sum_fines_placehold"></div>
17     [% ELSE %]
18     <div id="myopac_sum_fines">
19         <div style="position:absolute;">
20             <div style="position:relative;top:-15px;left:-23px;">
21                 <img src="[% ctx.media_prefix %]/images/acct_sum_fines_tl.png" />
22             </div>
23         </div>
24         <div style="position:absolute;">
25             <div style="position:relative;top:-15px;left:172px;">
26                 <img src="[% ctx.media_prefix %]/images/acct_sum_fines_tr.png" />
27             </div>
28         </div>
29         <div style="position:absolute;">
30             <div style="position:relative;top:161px;left:-23px;">
31                 <img src="[% ctx.media_prefix %]/images/acct_sum_fines_bl.png" />
32             </div>
33         </div>
34         <div style="position:absolute;">
35             <div style="position:relative;top:161px;left:172px;">
36                 <img src="[% ctx.media_prefix %]/images/acct_sum_fines_br.png" />
37             </div>
38         </div>
39         [% l('Fines:') %]
40         <span class='[% ctx.user_stats.fines.balance_owed ? "alert" : ""%]'>
41             [% money(ctx.user_stats.fines.balance_owed) %]
42         </span><br />
43         [% IF (ctx.fines.grocery.size OR ctx.fines.circulation.size) AND ctx.get_org_setting(ctx.user.home_ou, 'credit.payments.allow') == 1 %]
44         <form action="[% ctx.opac_root %]/myopac/main_payment_form" method="GET"><input
45             type="submit" title="[% l('Pay Fines') %]" alt="[% l('Pay Fines') %]"
46             value="[% l('Pay Fines') %]" class="pos-rel-top-5 opac-button" /></form>
47         [% END %]
48     </div>
49     [% END %]
50
51     <div style="width:662px;">
52         <div style="float:left;">
53             <div style="padding:10px 0px;"></div>
54             <div class="acct_sum_row">
55                 <table width="100%" cellspacing="0" cellpadding="0">
56                     <tr>
57                         <td>[% l("Items Currently Checked out ([_1])", ctx.user_stats.checkouts.total_out) %]</td>
58                         <td align="right">
59                             <a href="[% mkurl(ctx.opac_root _ '/myopac/circs') %]">[% l("View All") %]</a>
60                         </td>
61                     </tr>
62                 </table>
63             </div>
64             <div class="acct_sum_row">
65                 <table width="100%" cellspacing="0" cellpadding="0">
66                     <tr>
67                         <td>[% l('Items Currently on Hold ([_1])', ctx.user_stats.holds.total) %]</td>
68                         <td align="right">
69                             <a href="[% mkurl(ctx.opac_root _ '/myopac/holds') %]">[% l('View All') %]</a>
70                         </td>
71                     </tr>
72                 </table>
73             </div>
74             <div class="acct_sum_row">
75                 <table width="100%" cellspacing="0" cellpadding="0">
76                     <tr>
77                         <td>[% l('Items ready for pickup ([_1])', ctx.user_stats.holds.ready) %]</td>
78                         <td align="right">
79                             <a href="[% mkurl(ctx.opac_root _ '/myopac/holds', {available => 1}) %]">[% l('View All') %]</a>
80                         </td>
81                     </tr>
82                 </table>
83             </div>
84
85         </div>
86     </div>
87     <div class="clear-both"></div>
88
89     [% IF ctx.user.notes.0 %]
90     <table class="acct_notes">
91         <thead><th>[% l('Note title') %]</th><th>[% l('Content') %]</th></thead>
92         <tbody>
93         [% FOR note IN ctx.user.notes %]
94             <tr><td class='public-note-title'>[% note.title | html %]</td><td>[% note.value | html %]</td></tr>
95         [% END %]
96         </tbody>
97     </table>
98     [% END %]
99
100     <div id='fines_payments_wrapper'>
101         <div id='acct_fines_tabs'>
102             [% IF myopac_main_page == 'main' %]
103             <a href='#' class="acct-tab-on">[% l("Fines") %]</a>
104             <a href='[% mkurl(ctx.opac_root _ '/myopac/main_payments') %]' class="acct-tab-off">[% l("Payments") %]</a>
105             [% ELSE %]
106             <a href='[% mkurl(ctx.opac_root _ '/myopac/main') %]' class="acct-tab-off">[% l("Fines") %]</a>
107             <a href='#' class="acct-tab-on">[% l("Payments") %]</a>
108             [% END %]
109         </div>
110     </div>
111     [% content %]
112 </div>
113 [% END %]