mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-23 03:19: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')
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
|
||||
function openModal(id)
|
||||
{
|
||||
$.get("/api/booking/modal/edit/item/" + id + "?api_token="+api_token, function (data) {
|
||||
$.get("/api/booking/modal/edit/item/" + id + "/{{$event_type}}/{{$event_id}}?api_token="+api_token, function (data) {
|
||||
$("#modal-content").html(data);
|
||||
});
|
||||
$('#editModal').modal('toggle')
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
<label>Quantité</label>
|
||||
<input class="form-control" name="amount" type="number" min="1" required value="1" max="{{$item->available()}}">
|
||||
<input class="form-control" name="amount" type="number" min="1" required value="1" max="{{$item->available($event->date_begin,$event->date_end)}}">
|
||||
<small class="form-text text-muted">Quantité d'item a réserver</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
<label>Quantité</label>
|
||||
<input class="form-control" name="amount" type="number" min="1" required value="{{$booking->amount}}" max="{{$booking->item->available()}}">
|
||||
<input class="form-control" name="amount" type="number" min="1" required value="{{$booking->amount}}" max="{{$booking->item->available($event->date_begin,$event->date_end)}}">
|
||||
<small class="form-text text-muted">Quantité d'item a réserver</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user