]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/opac/parts/myopac/main_base.tt2
16ad59b04e3fd7a17db808d49411621d75f02753
[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'>
7
8     <div class='div-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         [% l('Fines:') %]
20         <span class='[% ctx.user_stats.fines.balance_owed ? "alert" : ""%]'>
21             [% money(ctx.user_stats.fines.balance_owed) %]
22         </span><br />
23         [% IF (ctx.fines.grocery.size OR ctx.fines.circulation.size) AND ctx.get_org_setting(ctx.user.home_ou, 'credit.payments.allow') == 1 %]
24         <form action="[% ctx.opac_root %]/myopac/main_payment_form" method="get"><input
25             type="submit" title="[% l('Pay Fines') %]"
26             value="[% l('Pay Fines') %]" class="pos-rel-top-5 opac-button" /></form>
27         [% END %]
28     </div>
29     [% END %]
30
31     <div>
32         <div id="acct_sum_block">
33             <div style="padding:10px 0px;">
34             [%- IF date.format(ctx.parse_datetime(ctx.user.expire_date), '%s') < date.format(date.now , '%s');
35                fmt_expire_date = date.format(ctx.parse_datetime(ctx.user.expire_date), DATE_FORMAT);
36             %]
37             <span class="alert">[% l("Your library card expired on [_1]. Please contact a librarian to resolve this issue.", fmt_expire_date) %]</span>
38             [% END %]
39             </div>
40             <table class="acct_sum_table" title="[% l('Account Summary') %]">
41                 <tr>
42                     <td>[% l("Account Expiration Date") %]</td>
43                     <td class='td-right'>
44                         [% date.format(ctx.parse_datetime(ctx.user.expire_date), DATE_FORMAT) %]
45                     </td>
46                 </tr>
47                 <tr>
48                     <td>[% l("Items Currently Checked out ([_1])", ctx.user_stats.checkouts.total_out) %]</td>
49                     <td class='td-right'>
50                         <a href="[% mkurl(ctx.opac_root _ '/myopac/circs') %]"
51                             title="[% l('View My Checked Out Items') %]">
52                             [% l("View All") %]
53                         </a>
54                     </td>
55                 </tr>
56                 <tr>
57                     <td>[% l('Items Currently on Hold ([_1])', ctx.user_stats.holds.total) %]</td>
58                     <td class='td-right'>
59                         <a href="[% mkurl(ctx.opac_root _ '/myopac/holds') %]"
60                             title="[% l('View My Holds') %]">
61                             [% l('View All') %]
62                         </a>
63                     </td>
64                 </tr>
65                 <tr>
66                     <td>[% l('Items ready for pickup ([_1])', ctx.user_stats.holds.ready) %]</td>
67                     <td class='td-right'>
68                         <a href="[% mkurl(ctx.opac_root _ '/myopac/holds', {available => 1}) %]"
69                             title="[% l('View My Holds Ready for Pickup') %]">
70                             [% l('View All') %]
71                         </a>
72                     </td>
73                 </tr>
74             </table>
75         </div>
76     </div>
77     <div class="clear-both"></div>
78
79     <div id='fines_payments_wrapper'>
80         <div id='acct_fines_tabs'>
81             [% IF myopac_main_page == 'main' %]
82             <a href='#' class="acct-tab-on">[% l("Fines") %]</a>
83             <a href='[% mkurl(ctx.opac_root _ '/myopac/main_payments') %]' class="acct-tab-off">[% l("Payments") %]</a>
84             [% ELSE %]
85             <a href='[% mkurl(ctx.opac_root _ '/myopac/main') %]' class="acct-tab-off">[% l("Fines") %]</a>
86             <a href='#' class="acct-tab-on">[% l("Payments") %]</a>
87             [% END %]
88         </div>
89     </div>
90     [% content %]
91 </div>
92 [% END %]