feat: selectable drop-offs for inbound bus travel
This commit is contained in:
1 parent
f8a56b7de2
commit
f795a3ea21
31 files changed
+701
-200
No files matched your search
@@ -260,6 +260,23 @@ class CreateFieldStateProvider extends AbstractFieldStateProvider
|
||||
),
|
||||
];
|
||||
|
||||
// Show differentDropOff checkbox only when BOTH outbound and inbound are BUS
|
||||
$this->fieldStateConditions['differentDropOff'] = [
|
||||
'hidden' => CompositeCondition::not(
|
||||
CompositeCondition::and(
|
||||
ServiceSubTypeCondition::equals('transportationOutbound', DirectionMapper::SUBTYPE_BUS_API),
|
||||
ServiceSubTypeCondition::equals('transportationInbound', DirectionMapper::SUBTYPE_BUS_API)
|
||||
)
|
||||
),
|
||||
];
|
||||
|
||||
// Show drop-off when inbound is BUS (options provider further gates on checkbox state in BUS+BUS)
|
||||
$this->fieldStateConditions['dropOff'] = [
|
||||
'hidden' => CompositeCondition::not(
|
||||
ServiceSubTypeCondition::equals('transportationInbound', DirectionMapper::SUBTYPE_BUS_API)
|
||||
),
|
||||
];
|
||||
|
||||
// Show parking only when outbound transportation is PKW AND participant is 18+ (hidden by default)
|
||||
// Parking is offered at holiday destination for those arriving by car
|
||||
// Participants under 18 cannot drive in Germany, so parking is not relevant for them
|
||||
|
||||
Reference in new issue
Block a user