1 [% PROCESS "opac/parts/header.tt2";
2 PROCESS "opac/parts/misc_util.tt2";
3 WRAPPER "opac/parts/myopac/base.tt2";
6 <div id='myopac_summary_div' style="padding:0px;">
8 <div style="float:left;">
9 <div class="header_middle">[% l('Account Summary') %]</div>
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
16 <div id="myopac_sum_fines_placehold"></div>
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 alt="[% l('Account Fines Border Image 1') %]"/>
25 <div style="position:absolute;">
26 <div style="position:relative;top:-15px;left:172px;">
27 <img src="[% ctx.media_prefix %]/images/acct_sum_fines_tr.png"
28 alt="[% l('Account Fines Border Image 2') %]"/>
31 <div style="position:absolute;">
32 <div style="position:relative;top:161px;left:-23px;">
33 <img src="[% ctx.media_prefix %]/images/acct_sum_fines_bl.png"
34 alt="[% l('Account Fines Border Image 3') %]"/>
37 <div style="position:absolute;">
38 <div style="position:relative;top:161px;left:172px;">
39 <img src="[% ctx.media_prefix %]/images/acct_sum_fines_br.png"
40 alt="[% l('Account Fines Border Image 4') %]"/>
44 <span class='[% ctx.user_stats.fines.balance_owed ? "alert" : ""%]'>
45 [% money(ctx.user_stats.fines.balance_owed) %]
47 [% IF (ctx.fines.grocery.size OR ctx.fines.circulation.size) AND ctx.get_org_setting(ctx.user.home_ou, 'credit.payments.allow') == 1 %]
48 <form action="[% ctx.opac_root %]/myopac/main_payment_form" method="get"><input
49 type="submit" title="[% l('Pay Fines') %]"
50 value="[% l('Pay Fines') %]" class="pos-rel-top-5 opac-button" /></form>
56 <div id="acct_sum_block">
57 <div style="padding:10px 0px;">
58 [%- IF date.format(ctx.parse_datetime(ctx.user.expire_date), '%s') < date.format(date.now , '%s');
59 fmt_expire_date = date.format(ctx.parse_datetime(ctx.user.expire_date), DATE_FORMAT);
61 <span class="alert">[% l("Your library card expired on [_1]. Please contact a librarian to resolve this issue.", fmt_expire_date) %]</span>
64 <table class="acct_sum_table" title="[% l('Account Summary') %]">
66 <td>[% l("Items Currently Checked out ([_1])", ctx.user_stats.checkouts.total_out) %]</td>
68 <a href="[% mkurl(ctx.opac_root _ '/myopac/circs') %]"
69 title="[% l('View My Checked Out Items') %]">
75 <td>[% l('Items Currently on Hold ([_1])', ctx.user_stats.holds.total) %]</td>
77 <a href="[% mkurl(ctx.opac_root _ '/myopac/holds') %]"
78 title="[% l('View My Holds') %]">
84 <td>[% l('Items ready for pickup ([_1])', ctx.user_stats.holds.ready) %]</td>
86 <a href="[% mkurl(ctx.opac_root _ '/myopac/holds', {available => 1}) %]"
87 title="[% l('View My Holds Ready for Pickup') %]">
95 <div class="clear-both"></div>
97 [% IF ctx.user.notes.0 %]
98 <table class="acct_notes">
99 <thead><th>[% l('Note title') %]</th><th>[% l('Content') %]</th></thead>
101 [% FOR note IN ctx.user.notes %]
102 <tr><td class='public-note-title'>[% note.title | html %]</td><td>[% note.value | html %]</td></tr>
108 <div id='fines_payments_wrapper'>
109 <div id='acct_fines_tabs'>
110 [% IF myopac_main_page == 'main' %]
111 <a href='#' class="acct-tab-on">[% l("Fines") %]</a>
112 <a href='[% mkurl(ctx.opac_root _ '/myopac/main_payments') %]' class="acct-tab-off">[% l("Payments") %]</a>
114 <a href='[% mkurl(ctx.opac_root _ '/myopac/main') %]' class="acct-tab-off">[% l("Fines") %]</a>
115 <a href='#' class="acct-tab-on">[% l("Payments") %]</a>