mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 10:49:10 -04:00
3.2.1
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user