Lines 57-62
Link Here
|
57 |
</div> <!-- /.row --> |
57 |
</div> <!-- /.row --> |
58 |
|
58 |
|
59 |
[% INCLUDE modals/place_booking.inc %] |
59 |
[% INCLUDE modals/place_booking.inc %] |
|
|
60 |
[% INCLUDE modals/cancel_booking.inc %] |
60 |
|
61 |
|
61 |
[% MACRO jsinclude BLOCK %] |
62 |
[% MACRO jsinclude BLOCK %] |
62 |
[% Asset.js("lib/dayjs/dayjs.min.js") | $raw %] |
63 |
[% Asset.js("lib/dayjs/dayjs.min.js") | $raw %] |
Lines 66-71
Link Here
|
66 |
[% INCLUDE 'select2.inc' %] |
67 |
[% INCLUDE 'select2.inc' %] |
67 |
[% INCLUDE 'js-date-format.inc' %] |
68 |
[% INCLUDE 'js-date-format.inc' %] |
68 |
[% Asset.js("js/place_booking_modal.js") | $raw %] |
69 |
[% Asset.js("js/place_booking_modal.js") | $raw %] |
|
|
70 |
[% Asset.js("js/cancel_booking_modal.js") | $raw %] |
69 |
<script> |
71 |
<script> |
70 |
var bookings_table; |
72 |
var bookings_table; |
71 |
$(document).ready(function(){ |
73 |
$(document).ready(function(){ |
Lines 132-137
Link Here
|
132 |
"render": function(data, type, row, meta) { |
134 |
"render": function(data, type, row, meta) { |
133 |
return $date(row.end_date); |
135 |
return $date(row.end_date); |
134 |
} |
136 |
} |
|
|
137 |
}, |
138 |
{ |
139 |
"data": "", |
140 |
"title": "Actions", |
141 |
"searchable": false, |
142 |
"orderable": false, |
143 |
"render": function(data, type, row, meta) { |
144 |
var result = '<button type="button" class="btn btn-default btn-xs cancel-action" data-toggle="modal" data-target="#cancelBookingModal" data-booking="'+row.booking_id+'"><i class="fa fa-trash" aria-hidden="true"></i> '+_("Cancel")+'</button>'; |
145 |
return result; |
146 |
} |
135 |
}] |
147 |
}] |
136 |
}, [], 1); |
148 |
}, [], 1); |
137 |
}); |
149 |
}); |