Bug 27742: Page titles have unique info first
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-reportproblem.tt
1 [% USE Koha %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Report a problem &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% BLOCK cssinclude %][% END %]
6 </head>
7 [% INCLUDE 'bodytag.inc' bodyid='opac-reportproblem' bodyclass='scrollto' %]
8 [% INCLUDE 'masthead.inc' %]
9
10     <div class="main">
11         <nav aria-label="breadcrumb">
12             <ul class="breadcrumb">
13                 <li class="breadcrumb-item">
14                 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
15                 </li>
16                 <li class="breadcrumb-item active" aria-current="page">
17                     <a href="#">Report a problem</a>
18                 </li>
19             </ul>
20         </nav>
21
22         <div class="container-fluid">
23             <div class="row">
24                 [% IF ( OpacNav || OpacNavBottom ) %]
25                     <div class="col-lg-2">
26                         <div id="navigation">
27                             [% INCLUDE 'navigation.inc' %]
28                         </div>
29                     </div>
30                     <div class="col-10 order-first order-md-first order-lg-2">
31                 [% ELSE %]
32                     <div class="col order-first order-md-first order-lg-2">
33                 [% END %]
34                 <h1>Report a problem</h1>
35
36                 [% IF messages %]
37                     [% FOR m IN messages %]
38                         <div class="alert alert-[% m.type | html %]">
39                             [% SWITCH m.code %]
40                             [% CASE 'success_on_send' %]
41                                 [% IF recipient == 'admin' %]
42                                     Your problem report has been sent to the Koha administrator.
43                                 [% ELSE %]
44                                     Your problem report has been sent to the library.
45                                 [% END %]
46                             [% CASE 'error_on_send' #We really should avoid reaching this! %]
47                                 Something wrong happened when sending the report. Please contact your library.
48                             [% END %]
49                         </div>
50                     [% END %]
51                 [% ELSE %]
52
53                     <div id="reportproblem" class="maincontent toptabs">
54                         <form name="reportlibform" action="/cgi-bin/koha/opac-reportproblem.pl" method="post">
55                             <input type="hidden" name="op" value="addreport" />
56                             <fieldset class="rows">
57                                 <ol>
58                                     <li>
59                                         <label for="recipient">Send problem report to: </label>
60                                         [% IF library.inbound_email_address && library.inbound_email_address != Koha.Preference('KohaAdminEmailAddress') %]
61                                             <select name="recipient" id="recipient">
62                                                 <option value="library">A librarian</option>
63                                                 <option value="admin">Koha administrator</option>
64                                             </select>
65                                         [% ELSE %]
66                                             <span>Koha administrator</span>
67                                         [% END %]
68                                     </li>
69                                     <li>
70                                         <label for="problempage">Problem found on page: </label>
71                                         <input type="hidden" name="problempage" id="problempage" value="[% problempage | url %]" />
72                                          [% problempage | html %]<br/>
73                                     </li>
74                                     <li>
75                                         <label for="user">Username: </label>
76                                         <input type="hidden" name="user" id="user" value="[% username | html %]" />
77                                         [% username | html %]
78                                     <li>
79                                         <label for="subject">Subject: </label>
80                                         <input type="text" name="subject" id="subject" value="[% subject | html %]" />
81                                     </li>
82                                     <li>
83                                         <label for="message">Message: </label>
84                                         <textarea name="message" id="message" rows="7" cols="60"></textarea>
85                                     </li>
86                                 </ol>
87                             </fieldset>
88                             <fieldset class="action">
89                                 <input type="submit" value="Submit" class="btn btn-primary">
90                             </fieldset>
91                         </form>
92                     </div> <!-- / #reportproblem -->
93
94                 [% END # /IF messages %]
95
96                 </div> <!-- / .col-10/12 -->
97             </div> <!-- / .row -->
98         </div> <!-- / .container-fluid -->
99     </div> <!-- / .main -->
100
101 [% INCLUDE 'opac-bottom.inc' %]
102 [% BLOCK jsinclude %][% END %]