mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-21 15:54:22 +01:00
improved comments
This commit is contained in:
parent
c2c400107d
commit
3e49c35414
@ -306,23 +306,13 @@ Application.Controllers.controller "ReserveMachineController", ["$scope", "$stat
|
|||||||
## the moment when the plan selection changed for the last time, used to trigger changes in the cart
|
## the moment when the plan selection changed for the last time, used to trigger changes in the cart
|
||||||
$scope.planSelectionTime = null
|
$scope.planSelectionTime = null
|
||||||
|
|
||||||
## array of fullCalendar events. Slots where the user want to book
|
## mapping of fullCalendar events.
|
||||||
$scope.events =
|
$scope.events =
|
||||||
reserved: []
|
reserved: [] # Slots that the user wants to book
|
||||||
modifiable: null
|
modifiable: null # Slot that the user wants to change
|
||||||
placable: null
|
placable: null # Destination slot for the change
|
||||||
paid: []
|
paid: [] # Slots that were just booked by the user (transaction ok)
|
||||||
moved: null
|
moved: null # Slots that were just moved by the user (change done) -> {newSlot:* oldSlot: *}
|
||||||
|
|
||||||
## total amount of the bill to pay
|
|
||||||
$scope.amountTotal = 0
|
|
||||||
|
|
||||||
## total amount of the elements in the cart, without considering any coupon
|
|
||||||
$scope.totalNoCoupon = 0
|
|
||||||
|
|
||||||
## Discount coupon to apply to the basket, if any
|
|
||||||
$scope.coupon =
|
|
||||||
applied: null
|
|
||||||
|
|
||||||
## the moment when the slot selection changed for the last time, used to trigger changes in the cart
|
## the moment when the slot selection changed for the last time, used to trigger changes in the cart
|
||||||
$scope.selectionTime = null
|
$scope.selectionTime = null
|
||||||
@ -360,7 +350,7 @@ Application.Controllers.controller "ReserveMachineController", ["$scope", "$stat
|
|||||||
## Global config: message to the end user concerning the subscriptions rules
|
## Global config: message to the end user concerning the subscriptions rules
|
||||||
$scope.subscriptionExplicationsAlert = settingsPromise.subscription_explications_alert
|
$scope.subscriptionExplicationsAlert = settingsPromise.subscription_explications_alert
|
||||||
|
|
||||||
## Gloabl config: message to the end user concerning the machine bookings
|
## Global config: message to the end user concerning the machine bookings
|
||||||
$scope.machineExplicationsAlert = settingsPromise.machine_explications_alert
|
$scope.machineExplicationsAlert = settingsPromise.machine_explications_alert
|
||||||
|
|
||||||
|
|
||||||
@ -386,6 +376,7 @@ Application.Controllers.controller "ReserveMachineController", ["$scope", "$stat
|
|||||||
slot.id = null
|
slot.id = null
|
||||||
slot.is_reserved = false
|
slot.is_reserved = false
|
||||||
slot.can_modify = false
|
slot.can_modify = false
|
||||||
|
slot.offered = false
|
||||||
updateCalendar()
|
updateCalendar()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user