View | Details | Raw Unified | Return to bug 15823
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-discharge.tt (-4 lines)
Lines 23-31 Link Here
23
            <div class="span10">
23
            <div class="span10">
24
                <div id="discharge" class="maincontainer">
24
                <div id="discharge" class="maincontainer">
25
                    <h1>Discharge</h1>
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 %]
26
                    [% FOR message IN messages %]
30
                        <div class="dialog [% message.type %]">
27
                        <div class="dialog [% message.type %]">
31
                        [% IF message.code == "unable_to_generate_pdf" %]
28
                        [% IF message.code == "unable_to_generate_pdf" %]
Lines 49-55 Link Here
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>
46
                        <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>
47
                        <a href="/cgi-bin/koha/opac-discharge.pl?op=request">Ask for a discharge</a>
51
                    [% END %]
48
                    [% END %]
52
                    [% END %]
53
                </div> <!-- / #discharge -->
49
                </div> <!-- / #discharge -->
54
            </div> <!-- / .span10 -->
50
            </div> <!-- / .span10 -->
55
        </div> <!-- / .row-fluid -->
51
        </div> <!-- / .row-fluid -->
(-)a/opac/opac-discharge.pl (-1 / +5 lines)
Lines 33-38 use Koha::DateUtils; Link Here
33
33
34
my $input = new CGI;
34
my $input = new CGI;
35
35
36
unless ( C4::Context->preference('useDischarge') ) {
37
    print $input->redirect("/cgi-bin/koha/errors/404.pl");
38
    exit;
39
}
40
36
my $op = $input->param("op");
41
my $op = $input->param("op");
37
42
38
# Getting the template and auth
43
# Getting the template and auth
39
- 

Return to bug 15823