|
Lines 64-69
Link Here
|
| 64 |
<th class="NoSort"> </th> |
64 |
<th class="NoSort"> </th> |
| 65 |
<th class="anti-the">Message</th> |
65 |
<th class="anti-the">Message</th> |
| 66 |
<th>Problem page</th> |
66 |
<th>Problem page</th> |
|
|
67 |
<th>Sent to</th> |
| 67 |
<th class="title-string">Created on</th> |
68 |
<th class="title-string">Created on</th> |
| 68 |
<th>Set by</th> |
69 |
<th>Set by</th> |
| 69 |
<th>Status</th> |
70 |
<th>Status</th> |
|
Lines 79-99
Link Here
|
| 79 |
[% report.content | html %] |
80 |
[% report.content | html %] |
| 80 |
</td> |
81 |
</td> |
| 81 |
<td><a href="[% report.problempage | uri %]">[% report.problempage | html %]</a></td> |
82 |
<td><a href="[% report.problempage | uri %]">[% report.problempage | html %]</a></td> |
|
|
83 |
<td>[% report.recipient %]</td> |
| 82 |
<td><span title="[% report.created_on | html %]">[% report.created_on | $KohaDates with_hours => 1 %]</span></td> |
84 |
<td><span title="[% report.created_on | html %]">[% report.created_on | $KohaDates with_hours => 1 %]</span></td> |
| 83 |
<td>[% INCLUDE 'patron-title.inc' patron => report.patron hide_patron_infos_if_needed=1 %]</td> |
85 |
<td>[% INCLUDE 'patron-title.inc' patron => report.patron hide_patron_infos_if_needed=1 %]</td> |
| 84 |
<td class="status[% report.status | html %]" name="status"> |
86 |
<td class="status[% report.status | html %]" name="status"><span id="status_[% report.reportid | html %]">[% report.status | html %]</span></td> |
| 85 |
[% IF ( report.status == 'V' ) %] |
|
|
| 86 |
<span id="status_[% report.reportid | html %]">Viewed</span> |
| 87 |
[% ELSIF ( report.status == 'C' ) %] |
| 88 |
<span id="status_[% report.reportid | html %]">Closed</span> |
| 89 |
[% ELSE %] |
| 90 |
<span id="status_[% report.reportid | html %]">New</span> |
| 91 |
[% END %] |
| 92 |
</td> |
| 93 |
<td class="actions"> |
87 |
<td class="actions"> |
| 94 |
[% IF ( report.status == 'N' ) %] |
88 |
[% IF ( report.status == 'New' ) %] |
| 95 |
<button name="viewed" data-report_id="[% report.reportid | html %]" class="viewed btn btn-default btn-xs"><i class="fa fa-eye"></i> Mark viewed</button> <button name="closed" data-report_id="[% report.reportid | html %]" class="closed btn btn-default btn-xs"><i class="fa fa-times-circle"></i> Mark closed</button> <button name="new" disabled="disabled" data-report_id="[% report.reportid | html %]" class="new btn btn-default btn-xs"><i class="fa fa-star"></i> Mark new</button> |
89 |
<button name="viewed" data-report_id="[% report.reportid | html %]" class="viewed btn btn-default btn-xs"><i class="fa fa-eye"></i> Mark viewed</button> <button name="closed" data-report_id="[% report.reportid | html %]" class="closed btn btn-default btn-xs"><i class="fa fa-times-circle"></i> Mark closed</button> <button name="new" disabled="disabled" data-report_id="[% report.reportid | html %]" class="new btn btn-default btn-xs"><i class="fa fa-star"></i> Mark new</button> |
| 96 |
[% ELSIF ( report.status == 'V' ) %] |
90 |
[% ELSIF ( report.status == 'Viewed' ) %] |
| 97 |
<button name="viewed" disabled="disabled" data-report_id="[% report.reportid | html %]" class="viewed btn btn-default btn-xs"><i class="fa fa-eye"></i> Mark viewed</button> <button name="closed" data-report_id="[% report.reportid | html %]" class="closed btn btn-default btn-xs"><i class="fa fa-times-circle"></i> Mark closed</button> <button name="new" data-report_id="[% report.reportid | html %]" class="new btn btn-default btn-xs"><i class="fa fa-star"></i> Mark new</button> |
91 |
<button name="viewed" disabled="disabled" data-report_id="[% report.reportid | html %]" class="viewed btn btn-default btn-xs"><i class="fa fa-eye"></i> Mark viewed</button> <button name="closed" data-report_id="[% report.reportid | html %]" class="closed btn btn-default btn-xs"><i class="fa fa-times-circle"></i> Mark closed</button> <button name="new" data-report_id="[% report.reportid | html %]" class="new btn btn-default btn-xs"><i class="fa fa-star"></i> Mark new</button> |
| 98 |
[% ELSE %] |
92 |
[% ELSE %] |
| 99 |
<button name="viewed" data-report_id="[% report.reportid | html %]" class="viewed btn btn-default btn-xs"><i class="fa fa-eye"></i> Mark viewed</button> <button name="closed" disabled="disabled" data-report_id="[% report.reportid | html %]" class="closed btn btn-default btn-xs"><i class="fa fa-times-circle"></i> Mark closed</button> <button name="new" data-report_id="[% report.reportid | html %]" class="new btn btn-default btn-xs"><i class="fa fa-star"></i> Mark new</button> |
93 |
<button name="viewed" data-report_id="[% report.reportid | html %]" class="viewed btn btn-default btn-xs"><i class="fa fa-eye"></i> Mark viewed</button> <button name="closed" disabled="disabled" data-report_id="[% report.reportid | html %]" class="closed btn btn-default btn-xs"><i class="fa fa-times-circle"></i> Mark closed</button> <button name="new" data-report_id="[% report.reportid | html %]" class="new btn btn-default btn-xs"><i class="fa fa-star"></i> Mark new</button> |
|
Lines 151-166
Link Here
|
| 151 |
$(".marknew").prop("disabled", true); |
145 |
$(".marknew").prop("disabled", true); |
| 152 |
}); |
146 |
}); |
| 153 |
|
147 |
|
|
|
148 |
|
| 149 |
|
| 154 |
$(".HideViewed").on("click", function(){ |
150 |
$(".HideViewed").on("click", function(){ |
| 155 |
$(".statusV").parent().hide(); |
151 |
$(".statusViewed").parent().hide(); |
| 156 |
}); |
152 |
}); |
| 157 |
|
153 |
|
| 158 |
$(".HideClosed").on("click", function(){ |
154 |
$(".HideClosed").on("click", function(){ |
| 159 |
$(".statusC").parent().hide(); |
155 |
$(".statusClosed").parent().hide(); |
| 160 |
}); |
156 |
}); |
| 161 |
|
157 |
|
| 162 |
$(".HideNew").on("click", function(){ |
158 |
$(".HideNew").on("click", function(){ |
| 163 |
$(".statusN").parent().hide(); |
159 |
$(".statusNew").parent().hide(); |
| 164 |
}); |
160 |
}); |
| 165 |
|
161 |
|
| 166 |
$(".ShowAll").on("click", function(){ |
162 |
$(".ShowAll").on("click", function(){ |
|
Lines 201-219
Link Here
|
| 201 |
if (data.status == 'success'){ |
197 |
if (data.status == 'success'){ |
| 202 |
if ( $action == 'viewed' ){ |
198 |
if ( $action == 'viewed' ){ |
| 203 |
$("#status_" + $report_id).text(_("Viewed")); |
199 |
$("#status_" + $report_id).text(_("Viewed")); |
| 204 |
$(event.target).parent().siblings("status").removeClass().addClass("statusV"); |
200 |
$(event.target).parent().siblings("[name='status']").removeClass().addClass("statusViewed"); |
| 205 |
$(event.target).siblings(".closed").prop("disabled", false); |
201 |
$(event.target).siblings(".closed").prop("disabled", false); |
| 206 |
$(event.target).siblings(".new").prop("disabled", false); |
202 |
$(event.target).siblings(".new").prop("disabled", false); |
| 207 |
$(event.target).prop("disabled", true); |
203 |
$(event.target).prop("disabled", true); |
| 208 |
} else if ( $action == 'new' ){ |
204 |
} else if ( $action == 'new' ){ |
| 209 |
$("#status_" + $report_id).text(_("New")); |
205 |
$("#status_" + $report_id).text(_("New")); |
| 210 |
$(event.target).parent().siblings("status").removeClass().addClass("statusN"); |
206 |
$(event.target).parent().siblings("[name='status']").removeClass().addClass("statusNew"); |
| 211 |
$(event.target).siblings(".closed").prop("disabled", false); |
207 |
$(event.target).siblings(".closed").prop("disabled", false); |
| 212 |
$(event.target).siblings(".viewed").prop("disabled", false); |
208 |
$(event.target).siblings(".viewed").prop("disabled", false); |
| 213 |
$(event.target).prop("disabled", true); |
209 |
$(event.target).prop("disabled", true); |
| 214 |
} else { |
210 |
} else { |
| 215 |
$("#status_" + $report_id).text(_("Closed")); |
211 |
$("#status_" + $report_id).text(_("Closed")); |
| 216 |
$(event.target).parent().siblings("status").removeClass().addClass("statusC"); |
212 |
$(event.target).parent().siblings("[name='status']").removeClass().addClass("statusClosed"); |
| 217 |
$(event.target).siblings(".viewed").prop("disabled", false); |
213 |
$(event.target).siblings(".viewed").prop("disabled", false); |
| 218 |
$(event.target).siblings(".new").prop("disabled", false); |
214 |
$(event.target).siblings(".new").prop("disabled", false); |
| 219 |
$(event.target).prop("disabled", true); |
215 |
$(event.target).prop("disabled", true); |