Bug 4461: Simplify recipients code
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-reportproblem.tt
1 [% USE Koha %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog &rsaquo; Report a problem</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         <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="#">Report a problem</a></li>
14         </ul>
15
16         <div class="container-fluid">
17             <div class="row-fluid">
18                 [% IF ( OpacNav || OpacNavBottom ) %]
19                     <div class="span2">
20                         <div id="navigation">
21                             [% INCLUDE 'navigation.inc' %]
22                         </div>
23                     </div>
24                     <div class="span10">
25                 [% ELSE %]
26                     <div class="span12">
27                 [% END %]
28                 <h1>Report a problem</h1>
29
30                 [% IF ( successfuladd ) %]
31                     <div class="alert alert-info">
32                         [% IF recipient == 'admin' %]
33                             Your problem report has been sent to the Koha administrator.
34                         [% ELSE %]
35                             Your problem report has been sent to the library.
36                         [% END %]
37                     </div>
38                 [% END %]
39                 <div id="reportproblem" class="maincontent toptabs">
40                     <form name="reportlibform" action="/cgi-bin/koha/opac-reportproblem.pl" method="post">
41                         <input type="hidden" name="op" value="addreport">
42                         <fieldset class="rows">
43                             <ol>
44                                 <li>
45                                     <label for="recipient">Send problem report to: </label>
46                                     [% IF library.branchemail %]
47                                         <select name="recipient" id="recipient">
48                                             <option value="library">A librarian</option>
49                                             <option value="admin">Koha administrator</option>
50                                         </select>
51                                     [% ELSE %]
52                                         <span>Koha administrator</span>
53                                     [% END %]
54                                 </li>
55                                 <li>
56                                     <label for="place">Problem found on page: </label>
57                                     <input type="hidden" name="place" id="place" value="[% probpage | html %]">
58                                     [% probpage | html %]
59                                 </li>
60                                 <li>
61                                     <label for="user">Username: </label>
62                                     <input type="hidden" name="user" id="user" value="[% username | html %]" class="span3">
63                                     [% username | html %]
64                                 <li>
65                                     <label for="subject">Subject: </label>
66                                     <input type="text" name="subject" id="subject" value="[% subject | html %]" class="span3">
67                                 </li>
68                                 <li>
69                                     <label for="message">Message: </label>
70                                     <textarea name="message" id="message" rows="7" cols="60"></textarea>
71                                 </li>
72                             </ol>
73                         </fieldset>
74                         <fieldset class="action">
75                             <input type="submit" value="Submit" class="btn">
76                         </fieldset>
77                     </form>
78                 </div> <!-- / #reportproblem -->
79
80                 </div> <!-- / .span10/12 -->
81             </div> <!-- / .row-fluid -->
82         </div> <!-- / .container-fluid -->
83     </div> <!-- / .main -->
84
85 [% INCLUDE 'opac-bottom.inc' %]
86 [% BLOCK jsinclude %][% END %]