Skip to content

Commit

Permalink
FIX Fallo en horarios
Browse files Browse the repository at this point in the history
  • Loading branch information
Borja José committed Sep 9, 2015
1 parent a5cb3fe commit effbaaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/client/view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@
<button class="btn btn btn-success" data-toggle="modal" data-target="#enrolRoomModal" onclick="enrolModal({{$model->id}}, {{$roomService->id}}, {{$a}}, {{$i}})">Grupo Libre ({{RoomController::getRoomOcupance($roomService->id, $a, $i)}} / {{(RoomController::getCapacity($roomService->id))}})</button>
@else
<!-- Mid occupance -->
@if(($roomService->capacity - RoomController::getRoomOcupance($roomService->id, $a, $i)) < 2 && ($roomService->capacity - RoomController::getRoomOcupance($roomService->id, $a, $i)) > 0)
@if(($roomService->capacity - RoomController::getRoomOcupance($roomService->id, $a, $i)) <= 2 && ($roomService->capacity - RoomController::getRoomOcupance($roomService->id, $a, $i)) > 0)
<button class="btn btn btn-warning"data-toggle="modal" data-target="#enrolRoomModal" onclick="enrolModal({{$model->id}}, {{$roomService->id}}, {{$a}}, {{$i}})">Grupo casi lleno ({{RoomController::getRoomOcupance($roomService->id, $a, $i)}} / {{(RoomController::getCapacity($roomService->id))}})</button>
@else
<!-- Full! -->
Expand Down

0 comments on commit effbaaa

Please sign in to comment.