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