Lines 16-26
$(document).ready(function () {
Link Here
|
16 |
columns: [ |
16 |
columns: [ |
17 |
{ |
17 |
{ |
18 |
data: "booking_id", |
18 |
data: "booking_id", |
19 |
title: _("Booking ID"), |
19 |
title: __("Booking ID"), |
20 |
}, |
20 |
}, |
21 |
{ |
21 |
{ |
22 |
data: "biblio.title", |
22 |
data: "biblio.title", |
23 |
title: _("Title"), |
23 |
title: __("Title"), |
24 |
searchable: true, |
24 |
searchable: true, |
25 |
orderable: true, |
25 |
orderable: true, |
26 |
render: function (data, type, row, meta) { |
26 |
render: function (data, type, row, meta) { |
Lines 31-40
$(document).ready(function () {
Link Here
|
31 |
}, |
31 |
}, |
32 |
{ |
32 |
{ |
33 |
data: "item.external_id", |
33 |
data: "item.external_id", |
34 |
title: _("Item"), |
34 |
title: __("Item"), |
35 |
searchable: true, |
35 |
searchable: true, |
36 |
orderable: true, |
36 |
orderable: true, |
37 |
defaultContent: _("Any item"), |
37 |
defaultContent: __("Any item"), |
38 |
render: function (data, type, row, meta) { |
38 |
render: function (data, type, row, meta) { |
39 |
if (row.item) { |
39 |
if (row.item) { |
40 |
return ( |
40 |
return ( |
Lines 50-56
$(document).ready(function () {
Link Here
|
50 |
}, |
50 |
}, |
51 |
{ |
51 |
{ |
52 |
data: "start_date", |
52 |
data: "start_date", |
53 |
title: _("Start date"), |
53 |
title: __("Start date"), |
54 |
searchable: true, |
54 |
searchable: true, |
55 |
orderable: true, |
55 |
orderable: true, |
56 |
render: function (data, type, row, meta) { |
56 |
render: function (data, type, row, meta) { |
Lines 59-65
$(document).ready(function () {
Link Here
|
59 |
}, |
59 |
}, |
60 |
{ |
60 |
{ |
61 |
data: "end_date", |
61 |
data: "end_date", |
62 |
title: _("End date"), |
62 |
title: __("End date"), |
63 |
searchable: true, |
63 |
searchable: true, |
64 |
orderable: true, |
64 |
orderable: true, |
65 |
render: function (data, type, row, meta) { |
65 |
render: function (data, type, row, meta) { |
Lines 68-74
$(document).ready(function () {
Link Here
|
68 |
}, |
68 |
}, |
69 |
{ |
69 |
{ |
70 |
data: "", |
70 |
data: "", |
71 |
title: _("Actions"), |
71 |
title: __("Actions"), |
72 |
class: "actions", |
72 |
class: "actions", |
73 |
searchable: false, |
73 |
searchable: false, |
74 |
orderable: false, |
74 |
orderable: false, |
Lines 79-85
$(document).ready(function () {
Link Here
|
79 |
'<button type="button" class="btn btn-default btn-xs cancel-action" data-toggle="modal" data-target="#cancelBookingModal" data-booking="' + |
79 |
'<button type="button" class="btn btn-default btn-xs cancel-action" data-toggle="modal" data-target="#cancelBookingModal" data-booking="' + |
80 |
row.booking_id + |
80 |
row.booking_id + |
81 |
'"><i class="fa fa-trash" aria-hidden="true"></i> ' + |
81 |
'"><i class="fa fa-trash" aria-hidden="true"></i> ' + |
82 |
_("Cancel") + |
82 |
__("Cancel") + |
83 |
"</button>"; |
83 |
"</button>"; |
84 |
} |
84 |
} |
85 |
return result; |
85 |
return result; |
86 |
- |
|
|