Bug 15823: Can still access patron discharge slip without having the syspref on
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-discharge.tt
1 [% USE Koha %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Discharge
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% BLOCK cssinclude %][% END %]
6 </head>
7 <body id="opac-discharge" class="scrollto">
8 [% INCLUDE 'masthead.inc' %]
9
10 <div class="main">
11     <ul class="breadcrumb">
12         <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
13         <li><a href="#">Discharge</a></li>
14     </ul>
15
16     <div class="container-fluid">
17         <div class="row-fluid">
18             <div class="span2">
19                 <div id="navigation">
20                     [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
21                 </div>
22             </div>
23             <div class="span10">
24                 <div id="discharge" class="maincontainer">
25                     <h1>Discharge</h1>
26                     [% IF not(Koha.Preference("useDischarge")) %]
27                         Discharges have not been enabled. Please contact the library.
28                     [% ELSE %]
29                     [% FOR message IN messages %]
30                         <div class="dialog [% message.type %]">
31                         [% IF message.code == "unable_to_generate_pdf" %]
32                             An error occurs when generating the pdf file.
33                             Please contact the staff to resolve this problem.
34                         [% END %]
35                         </div>
36                     [% END %]
37
38                     [% IF success %]
39                         <p>Your discharge request has been sent. Your discharge will be available on this page within a few days.</p>
40                     [% ELSIF available %]
41                         <a href="/cgi-bin/koha/opac-discharge.pl?op=get">Get your discharge</a></li>
42                     [% ELSIF pending %]
43                         <p>Your discharge will be available on this page within a few days.</p>
44                     [% ELSIF has_issues %]
45                         <p>You cannot be discharged, you have issues. Please return items before asking for a discharge.</p>
46                     [% ELSIF not messages %]
47                         <h2>What is a discharge?</h2>
48                         <p>This document certifies that you have returned all borrowed items. It is sometimes asked during a file transfer from a school to another. The discharge is sent by us to your school. You will also find it available on your reader account.</p>
49                         <p><strong>Warning</strong>: This request is only valid if you are in good standing with the library. Once the application is made, you can not borrow library materials.</p>
50                         <a href="/cgi-bin/koha/opac-discharge.pl?op=request">Ask for a discharge</a>
51                     [% END %]
52                     [% END %]
53                 </div> <!-- / #discharge -->
54             </div> <!-- / .span10 -->
55         </div> <!-- / .row-fluid -->
56     </div>  <!-- / .container-fluid -->
57 </div> <!-- / .main -->
58
59 [% INCLUDE 'opac-bottom.inc' %]
60 [% BLOCK jsinclude %][% END %]