1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-20 14:54:15 +01:00

prevent add space availability if disabled

This commit is contained in:
Sylvain 2017-02-15 16:58:17 +01:00
parent 34e8ffeffd
commit f850c66f01
3 changed files with 3 additions and 3 deletions

View File

@ -340,7 +340,7 @@ Application.Controllers.controller "ReserveTrainingController", ["$scope", "$sta
##
# Cancel the current booking modification, reseting the whole process
##
$scope.cancelModifyMachineSlot = ->
$scope.cancelModifyTrainingSlot = ->
$scope.slotToPlace.backgroundColor = 'white'
$scope.slotToPlace.title = $scope.slotToPlace.training.name
$scope.slotToPlace = null

View File

@ -18,7 +18,7 @@
<span translate>{{ 'admin_calendar.machine' }}</span>
</label>
</div>
<div class="radio">
<div class="radio" ng-hide="fablabWithoutSpaces">
<label>
<input type="radio" id="space" name="available_type" value="space" ng-model="availability.available_type">
<span translate>{{ 'admin_calendar.space' }}</span>

View File

@ -166,7 +166,7 @@
</div>
<div class="panel-footer no-padder" ng-if="slotToModify && slotToPlace">
<button class="btn btn-invalid btn-default btn-block p-l btn-lg text-u-c r-n text-base" ng-click="cancelModifyMachineSlot()" translate>{{ 'cancel' }}</button>
<button class="btn btn-invalid btn-default btn-block p-l btn-lg text-u-c r-n text-base" ng-click="cancelModifyTrainingSlot()" translate>{{ 'cancel' }}</button>
<div>
<button class="btn btn-valid btn-info btn-block p-l btn-lg text-u-c r-b text-base" ng-click="modifyTrainingSlot()" translate>{{ 'confirm_my_modification' }}</button>
</div>