This commit is contained in:
Mathieu Lagace
2019-09-11 10:13:29 -04:00
parent 133f430445
commit 7f07490bdf
8 changed files with 173 additions and 16 deletions

View File

@@ -27,7 +27,7 @@
<td>{{$item->name}}</td>
<td>{{$item->category()->name}}</td>
<td>{!! $item->desc !!}</td>
<td>{{$item->available()}}</td>
<td>{{$item->available($event->date_begin,$event->date_end)}}</td>
<td>
<button class="btn btn-primary btn-block" onclick='openModal("{{$item->id}}")'>Réserver</button>
</td>
@@ -58,7 +58,7 @@
function openModal(id)
{
$.get("/api/booking/modal/item/" + id + "?api_token="+api_token, function (data) {
$.get("/api/booking/modal/item/" + id + "/{{$event_type}}/{{$event_id}}?api_token="+api_token, function (data) {
$("#modal-content").html(data);
});
$('#createModal').modal('toggle')