Lines 351-357
Link Here
|
351 |
<th scope="col">Description</th> |
351 |
<th scope="col">Description</th> |
352 |
<th scope="col" class="title-string">Start date</th> |
352 |
<th scope="col" class="title-string">Start date</th> |
353 |
<th scope="col" class="title-string">End date</th> |
353 |
<th scope="col" class="title-string">End date</th> |
354 |
<th scope="col">Actions</th> |
354 |
[% IF CAN_user_acquisition_contracts_manage %] |
|
|
355 |
<th scope="col">Actions</th> |
356 |
[% END %] |
355 |
</tr> |
357 |
</tr> |
356 |
</thead> |
358 |
</thead> |
357 |
<tbody> |
359 |
<tbody> |
Lines 363-372
Link Here
|
363 |
<td>[% contract.contractdescription | html %]</td> |
365 |
<td>[% contract.contractdescription | html %]</td> |
364 |
<td><span title="[% contract.contractstartdate | html %]">[% contract.contractstartdate | $KohaDates %]</span></td> |
366 |
<td><span title="[% contract.contractstartdate | html %]">[% contract.contractstartdate | $KohaDates %]</span></td> |
365 |
<td><span title="[% contract.contractenddate | html %]">[% contract.contractenddate | $KohaDates %]</span></td> |
367 |
<td><span title="[% contract.contractenddate | html %]">[% contract.contractenddate | $KohaDates %]</span></td> |
366 |
<td class="actions"> |
368 |
[% IF CAN_user_acquisition_contracts_manage %] |
367 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&contractnumber=[% contract.contractnumber | html %]&booksellerid=[% contract.booksellerid | html %]"><i class="fa fa-pencil"></i> Edit</a> |
369 |
<td class="actions"> |
368 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/aqcontract.pl?op=delete_confirm&contractnumber=[% contract.contractnumber | html %]&booksellerid=[% contract.booksellerid | html %]"><i class="fa fa-trash"></i> Delete</a> |
370 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&contractnumber=[% contract.contractnumber | html %]&booksellerid=[% contract.booksellerid | html %]"><i class="fa fa-pencil"></i> Edit</a> |
369 |
</td> |
371 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/aqcontract.pl?op=delete_confirm&contractnumber=[% contract.contractnumber | html %]&booksellerid=[% contract.booksellerid | html %]"><i class="fa fa-trash"></i> Delete</a> |
|
|
372 |
</td> |
373 |
[% END %] |
370 |
</tr> |
374 |
</tr> |
371 |
[% END %] |
375 |
[% END %] |
372 |
</tbody> |
376 |
</tbody> |
Lines 426-432
Link Here
|
426 |
$(document).ready(function() { |
430 |
$(document).ready(function() { |
427 |
var contractst = $("#contractst").dataTable($.extend(true, {}, dataTablesDefaults, { |
431 |
var contractst = $("#contractst").dataTable($.extend(true, {}, dataTablesDefaults, { |
428 |
"aoColumnDefs": [ |
432 |
"aoColumnDefs": [ |
|
|
433 |
[% IF CAN_user_acquisition_contracts_manage %] |
429 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
434 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
|
|
435 |
[% ELSE %] |
436 |
{ "bSortable": false, "bSearchable": false }, |
437 |
[% END %] |
430 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] } |
438 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] } |
431 |
], |
439 |
], |
432 |
'sDom': 't' |
440 |
'sDom': 't' |
433 |
- |
|
|