Lines 25-81
Link Here
|
25 |
[% ELSE %] |
25 |
[% ELSE %] |
26 |
<div class="span12"> |
26 |
<div class="span12"> |
27 |
[% END %] |
27 |
[% END %] |
28 |
<h1>Report a problem</h1> |
28 |
<h1>Report a problem</h1> |
29 |
|
29 |
|
30 |
[% IF ( successfuladd ) %] |
30 |
[% IF ( successfuladd ) %] |
31 |
<div class="alert alert-info">Your problem report has been sent to the [% IF ( recipient == 'admin' ) %]Koha Administrator[% ELSE %][% recipient | html %][% END %].</div> |
31 |
<div class="alert alert-info"> |
32 |
[% END %] |
32 |
[% IF recipient == 'admin' %] |
33 |
[% IF ( ( nolibemail and noadminemail ) or norecipients ) %] |
33 |
Your problem report has been sent to the Koha administrator. |
34 |
<div class="alert">Unable to send problem reports.</div> |
34 |
[% ELSE %] |
35 |
[% ELSE %] |
35 |
Your problem report has been sent to the library. |
36 |
<div id="reportproblem" class="maincontent toptabs"> |
36 |
[% END %] |
37 |
<form name="reportlibform" action="/cgi-bin/koha/opac-reportproblem.pl" method="post"> |
37 |
</div> |
38 |
<input type="hidden" name="op" value="addreport"> |
38 |
[% END %] |
39 |
<fieldset class="rows"> |
39 |
<div id="reportproblem" class="maincontent toptabs"> |
40 |
<ol> |
40 |
<form name="reportlibform" action="/cgi-bin/koha/opac-reportproblem.pl" method="post"> |
41 |
<li> |
41 |
<input type="hidden" name="op" value="addreport"> |
42 |
<label for="recipient">Send problem report to: </label> |
42 |
<fieldset class="rows"> |
43 |
[% IF !nolibemail and noadminemail %] |
43 |
<ol> |
44 |
<option value="library">A librarian</option> |
44 |
<li> |
45 |
[% ELSIF !noadminemail and nolibemail %] |
45 |
<label for="recipient">Send problem report to: </label> |
46 |
<option value="admin">Koha Administrator</option> |
46 |
[% IF library.branchemail %] |
47 |
[% ELSE %] |
47 |
<select name="recipient" id="recipient"> |
48 |
<select name="recipient" id="recipient"> |
48 |
<option value="library">A librarian</option> |
49 |
<option value="library">A librarian</option> |
49 |
<option value="admin">Koha administrator</option> |
50 |
<option value="admin">Koha Administrator</option> |
50 |
</select> |
51 |
</select> |
51 |
[% ELSE %] |
52 |
[% END %] |
52 |
<span>Koha administrator</span> |
53 |
</li> |
53 |
[% END %] |
54 |
<li> |
54 |
</li> |
55 |
<label for="place">Problem found on page: </label> |
55 |
<li> |
56 |
<input type="hidden" name="place" id="place" value="[% probpage | html %]"> |
56 |
<label for="place">Problem found on page: </label> |
57 |
[% probpage | html %] |
57 |
<input type="hidden" name="place" id="place" value="[% probpage | html %]"> |
58 |
</li> |
58 |
[% probpage | html %] |
59 |
<li> |
59 |
</li> |
60 |
<label for="user">Username: </label> |
60 |
<li> |
61 |
<input type="hidden" name="user" id="user" value="[% username | html %]" class="span3"> |
61 |
<label for="user">Username: </label> |
62 |
[% username | html %] |
62 |
<input type="hidden" name="user" id="user" value="[% username | html %]" class="span3"> |
63 |
<li> |
63 |
[% username | html %] |
64 |
<label for="subject">Subject: </label> |
64 |
<li> |
65 |
<input type="text" name="subject" id="subject" value="[% subject | html %]" class="span3"> |
65 |
<label for="subject">Subject: </label> |
66 |
</li> |
66 |
<input type="text" name="subject" id="subject" value="[% subject | html %]" class="span3"> |
67 |
<li> |
67 |
</li> |
68 |
<label for="message">Message: </label> |
68 |
<li> |
69 |
<textarea name="message" id="message" rows="7" cols="60"></textarea> |
69 |
<label for="message">Message: </label> |
70 |
</li> |
70 |
<textarea name="message" id="message" rows="7" cols="60"></textarea> |
71 |
</ol> |
71 |
</li> |
72 |
</fieldset> |
72 |
</ol> |
73 |
<fieldset class="action"> |
73 |
</fieldset> |
74 |
<input type="submit" value="Submit" class="btn"> |
74 |
<fieldset class="action"> |
75 |
</fieldset> |
75 |
<input type="submit" value="Submit" class="btn"> |
76 |
</form> |
76 |
</fieldset> |
77 |
</div> |
77 |
</form> |
78 |
[% END %] |
78 |
</div> <!-- / #reportproblem --> |
79 |
|
79 |
|
80 |
</div> <!-- / .span10/12 --> |
80 |
</div> <!-- / .span10/12 --> |
81 |
</div> <!-- / .row-fluid --> |
81 |
</div> <!-- / .row-fluid --> |