Bug 24224: Convert OpacNavBottom system preference to additional content
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-discharge.tt
1 [% USE Koha %]
2 [% USE AdditionalContents %]
3 [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode, blocktitle => 0 ) %]
4 [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode, blocktitle => 0 ) %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Discharge &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 [% BLOCK cssinclude %][% END %]
9 </head>
10 <body id="opac-discharge" class="scrollto">
11 [% INCLUDE 'masthead.inc' %]
12
13 <div class="main">
14     <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
15         <ol class="breadcrumb">
16             <li class="breadcrumb-item">
17                 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
18             </li>
19             <li class="breadcrumb-item active">
20                 <a href="#" aria-current="page">Discharge</a>
21             </li>
22         </ol>
23     </nav> <!-- /#breadcrumbs -->
24
25     <div class="container-fluid">
26         <div class="row">
27             <div class="col-lg-2">
28                 <div id="navigation">
29                     [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
30                 </div>
31             </div>
32             <div class="col-10 order-first order-md-first order-lg-2">
33                 <div id="discharge" class="maincontent">
34                     <h1>Discharge</h1>
35                     [% FOR message IN messages %]
36                         <div class="dialog [% message.type | html %]">
37                         [% IF message.code == "unable_to_generate_pdf" %]
38                             An error occurs when generating the pdf file.
39                             Please contact the staff to resolve this problem.
40                         [% END %]
41                         </div>
42                     [% END %]
43
44                     [% IF success %]
45                         <p>Your discharge request has been sent. Your discharge will be available on this page within a few days.</p>
46                     [% ELSIF available %]
47                         <a href="/cgi-bin/koha/opac-discharge.pl?op=get">Get your discharge</a></li>
48                     [% ELSIF pending %]
49                         <p>Your discharge will be available on this page within a few days.</p>
50                     [% ELSIF has_issues %]
51                         <p>You cannot be discharged, you have checked out items. Please return items before asking for a discharge.</p>
52                     [% ELSIF not messages %]
53                         <h2>What is a discharge?</h2>
54                         <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>
55                         <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>
56                         [% IF has_checkouts %]
57                             <div class="alert alert-info">You cannot be discharged, you have checked out items. Please return items before asking for a discharge.</div>
58                         [% ELSE %]
59                             <a class="btn btn-primary" href="/cgi-bin/koha/opac-discharge.pl?op=request">Ask for a discharge</a>
60                         [% END %]
61
62                     [% END %]
63                 </div> <!-- / #discharge -->
64             </div> <!-- / .col-10 -->
65         </div> <!-- / .row -->
66     </div>  <!-- / .container-fluid -->
67 </div> <!-- / .main -->
68
69 [% INCLUDE 'opac-bottom.inc' %]
70 [% BLOCK jsinclude %][% END %]