2 [% USE AdditionalContents %]
3 [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
4 [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Report a problem › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 [% BLOCK cssinclude %][% END %]
10 [% INCLUDE 'bodytag.inc' bodyid='opac-reportproblem' bodyclass='scrollto' %]
11 [% INCLUDE 'masthead.inc' %]
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>
19 <li class="breadcrumb-item active">
20 <a href="#" aria-current="page">Report a problem</a>
23 </nav> <!-- /#breadcrumbs -->
25 <div class="container-fluid">
27 [% IF ( OpacNav || OpacNavBottom ) %]
28 <div class="col-lg-2">
30 [% INCLUDE 'navigation.inc' %]
33 <div class="col-10 order-first order-md-first order-lg-2">
35 <div class="col order-first order-md-first order-lg-2">
37 <h1>Report a problem</h1>
40 [% FOR m IN messages %]
41 <div class="alert alert-[% m.type | html %]">
43 [% CASE 'success_on_send' %]
44 [% IF recipient == 'admin' %]
45 Your problem report has been sent to the Koha administrator.
47 Your problem report has been sent to the library.
49 [% CASE 'error_on_send' #We really should avoid reaching this! %]
50 Something wrong happened when sending the report. Please contact your library.
56 <div id="reportproblem" class="maincontent toptabs">
57 <form name="reportlibform" action="/cgi-bin/koha/opac-reportproblem.pl" method="post">
58 <legend class="sr-only">Report a problem</legend>
59 <input type="hidden" name="op" value="addreport" />
60 <fieldset class="rows">
63 <label for="recipient">Send problem report to: </label>
64 [% IF library.inbound_email_address && library.inbound_email_address != Koha.Preference('KohaAdminEmailAddress') %]
65 <select name="recipient" id="recipient">
66 <option value="library">A librarian</option>
67 <option value="admin">Koha administrator</option>
70 <span>Koha administrator</span>
74 <label for="problempage">Problem found on page: </label>
75 <input type="hidden" name="problempage" id="problempage" value="[% problempage | url %]" />
76 [% problempage | html %]<br/>
79 <label for="user">Username: </label>
80 <input type="hidden" name="user" id="user" value="[% username | html %]" />
83 <label for="subject">Subject: </label>
84 <input type="text" name="subject" id="subject" value="[% subject | html %]" />
87 <label for="message">Message: </label>
88 <textarea name="message" id="message" rows="7" cols="60"></textarea>
92 <fieldset class="action">
93 <input type="submit" value="Submit" class="btn btn-primary">
96 </div> <!-- / #reportproblem -->
98 [% END # /IF messages %]
100 </div> <!-- / .col-10/12 -->
101 </div> <!-- / .row -->
102 </div> <!-- / .container-fluid -->
103 </div> <!-- / .main -->
105 [% INCLUDE 'opac-bottom.inc' %]
106 [% BLOCK jsinclude %][% END %]