]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/opac/parts/myopac/main_base.tt2
Remove useless image-based fines border
[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="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         [% 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("Items Currently Checked out ([_1])", ctx.user_stats.checkouts.total_out) %]</td>
43                     <td align="right">
44                         <a href="[% mkurl(ctx.opac_root _ '/myopac/circs') %]"
45                             title="[% l('View My Checked Out Items') %]">
46                             [% l("View All") %]
47                         </a>
48                     </td>
49                 </tr>
50                 <tr>
51                     <td>[% l('Items Currently on Hold ([_1])', ctx.user_stats.holds.total) %]</td>
52                     <td align="right">
53                         <a href="[% mkurl(ctx.opac_root _ '/myopac/holds') %]"
54                             title="[% l('View My Holds') %]">
55                             [% l('View All') %]
56                         </a>
57                     </td>
58                 </tr>
59                 <tr>
60                     <td>[% l('Items ready for pickup ([_1])', ctx.user_stats.holds.ready) %]</td>
61                     <td align="right">
62                         <a href="[% mkurl(ctx.opac_root _ '/myopac/holds', {available => 1}) %]"
63                             title="[% l('View My Holds Ready for Pickup') %]">
64                             [% l('View All') %]
65                         </a>
66                     </td>
67                 </tr>
68             </table>
69         </div>
70     </div>
71     <div class="clear-both"></div>
72
73     [% IF ctx.user.notes.0 %]
74     <table class="acct_notes">
75         <thead><th>[% l('Note title') %]</th><th>[% l('Content') %]</th></thead>
76         <tbody>
77         [% FOR note IN ctx.user.notes %]
78             <tr><td class='public-note-title'>[% note.title | html %]</td><td>[% note.value | html %]</td></tr>
79         [% END %]
80         </tbody>
81     </table>
82     [% END %]
83
84     <div id='fines_payments_wrapper'>
85         <div id='acct_fines_tabs'>
86             [% IF myopac_main_page == 'main' %]
87             <a href='#' class="acct-tab-on">[% l("Fines") %]</a>
88             <a href='[% mkurl(ctx.opac_root _ '/myopac/main_payments') %]' class="acct-tab-off">[% l("Payments") %]</a>
89             [% ELSE %]
90             <a href='[% mkurl(ctx.opac_root _ '/myopac/main') %]' class="acct-tab-off">[% l("Fines") %]</a>
91             <a href='#' class="acct-tab-on">[% l("Payments") %]</a>
92             [% END %]
93         </div>
94     </div>
95     [% content %]
96 </div>
97 [% END %]