mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-21 15:54:22 +01:00
fix bug: cant reserve formation slot
This commit is contained in:
parent
d9676b604c
commit
760109de05
@ -243,6 +243,8 @@ Application.Controllers.controller('ReserveSpaceController', ['$scope', '$stateP
|
|||||||
|
|
||||||
// list of plans, classified by group
|
// list of plans, classified by group
|
||||||
$scope.plansClassifiedByGroup = [];
|
$scope.plansClassifiedByGroup = [];
|
||||||
|
$scope.groups = groupsPromise;
|
||||||
|
$scope.plans = plansPromise;
|
||||||
for (let group of Array.from(groupsPromise)) {
|
for (let group of Array.from(groupsPromise)) {
|
||||||
const groupObj = { id: group.id, name: group.name, plans: [] };
|
const groupObj = { id: group.id, name: group.name, plans: [] };
|
||||||
for (let plan of Array.from(plansPromise)) {
|
for (let plan of Array.from(plansPromise)) {
|
||||||
|
@ -111,6 +111,8 @@ Application.Controllers.controller('ReserveTrainingController', ['$scope', '$sta
|
|||||||
{ member: {} };
|
{ member: {} };
|
||||||
|
|
||||||
// list of plans, classified by group
|
// list of plans, classified by group
|
||||||
|
$scope.groups = groupsPromise;
|
||||||
|
$scope.plans = plansPromise;
|
||||||
$scope.plansClassifiedByGroup = [];
|
$scope.plansClassifiedByGroup = [];
|
||||||
for (let group of Array.from(groupsPromise)) {
|
for (let group of Array.from(groupsPromise)) {
|
||||||
const groupObj = { id: group.id, name: group.name, plans: [] };
|
const groupObj = { id: group.id, name: group.name, plans: [] };
|
||||||
|
@ -35,6 +35,8 @@
|
|||||||
plan="selectedPlan"
|
plan="selectedPlan"
|
||||||
plan-selection-time="planSelectionTime"
|
plan-selection-time="planSelectionTime"
|
||||||
settings="settings"
|
settings="settings"
|
||||||
|
plans="plans"
|
||||||
|
groups="groups"
|
||||||
on-slot-added-to-cart="markSlotAsAdded"
|
on-slot-added-to-cart="markSlotAsAdded"
|
||||||
on-slot-removed-from-cart="markSlotAsRemoved"
|
on-slot-removed-from-cart="markSlotAsRemoved"
|
||||||
on-slot-start-to-modify="markSlotAsModifying"
|
on-slot-start-to-modify="markSlotAsModifying"
|
||||||
|
@ -47,6 +47,8 @@
|
|||||||
plan="selectedPlan"
|
plan="selectedPlan"
|
||||||
plan-selection-time="planSelectionTime"
|
plan-selection-time="planSelectionTime"
|
||||||
settings="settings"
|
settings="settings"
|
||||||
|
plans="plans"
|
||||||
|
groups="groups"
|
||||||
on-slot-added-to-cart="markSlotAsAdded"
|
on-slot-added-to-cart="markSlotAsAdded"
|
||||||
on-slot-removed-from-cart="markSlotAsRemoved"
|
on-slot-removed-from-cart="markSlotAsRemoved"
|
||||||
on-slot-start-to-modify="markSlotAsModifying"
|
on-slot-start-to-modify="markSlotAsModifying"
|
||||||
|
@ -33,5 +33,5 @@ json.array!(@availabilities) do |a|
|
|||||||
json.id t.id
|
json.id t.id
|
||||||
json.name t.name
|
json.name t.name
|
||||||
end
|
end
|
||||||
json.plan_ids slot.availability.plan_ids
|
json.plan_ids a.plan_ids
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user