|
Lines 141-149
Link Here
|
| 141 |
<td class="actions"> |
141 |
<td class="actions"> |
| 142 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job.id | html %]"><i class="fa fa-eye"></i> View</a> |
142 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job.id | html %]"><i class="fa fa-eye"></i> View</a> |
| 143 |
[% IF job.status == 'new' || job.status == 'started' %] |
143 |
[% IF job.status == 'new' || job.status == 'started' %] |
| 144 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/background_jobs.pl?op=cancel&id=[% job.id | html %]"><i class="fa fa-pencil"></i> Cancel</a> |
144 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/background_jobs.pl?op=cancel&id=[% job.id | html %]"><i class="fa fa-trash"></i> Cancel</a> |
| 145 |
[% END %] |
145 |
[% END %] |
| 146 |
<a class="btn btn-default btn-xs disabled" href="/cgi-bin/koha/admin/background_jobs.pl?op=replay&id=[% job.id | html %]"><i class="fa fa-trash"></i> Replay</a> |
146 |
<a class="btn btn-default btn-xs disabled" href="/cgi-bin/koha/admin/background_jobs.pl?op=replay&id=[% job.id | html %]"><i class="fa fa-refresh"></i> Replay</a> |
| 147 |
</td> |
147 |
</td> |
| 148 |
</tr> |
148 |
</tr> |
| 149 |
[% END %] |
149 |
[% END %] |
|
Lines 171-181
Link Here
|
| 171 |
[% INCLUDE 'datatables.inc' %] |
171 |
[% INCLUDE 'datatables.inc' %] |
| 172 |
<script> |
172 |
<script> |
| 173 |
$(document).ready(function() { |
173 |
$(document).ready(function() { |
| 174 |
$("#table_cities").dataTable($.extend(true, {}, dataTablesDefaults, { |
174 |
$("#table_background_jobs").dataTable($.extend(true, {}, dataTablesDefaults, { |
| 175 |
"aoColumnDefs": [ |
175 |
"aoColumnDefs": [ |
| 176 |
{ "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false }, |
176 |
{ "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false }, |
| 177 |
], |
177 |
], |
| 178 |
"aaSorting": [[ 1, "asc" ]], |
178 |
"aaSorting": [[ 0, "desc" ]], |
| 179 |
"iDisplayLength": 10, |
179 |
"iDisplayLength": 10, |
| 180 |
"sPaginationType": "full_numbers" |
180 |
"sPaginationType": "full_numbers" |
| 181 |
})); |
181 |
})); |