wip: insurance booking
This commit is contained in:
1 parent
8af7f0e797
commit
4ba81b8f03
19 files changed
+807
-128
No files matched your search
@@ -87,12 +87,17 @@ class CreateFieldStateProvider extends AbstractFieldStateProvider
|
||||
'hidden' => CompositeCondition::not($dateOfBirthProvidedCondition),
|
||||
];
|
||||
|
||||
// Hide insurance field until date of birth is provided
|
||||
$this->fieldStateConditions['insurance'] = [
|
||||
'hidden' => CompositeCondition::not($dateOfBirthProvidedCondition),
|
||||
];
|
||||
|
||||
// Room-specific field conditions
|
||||
$mbzRoomCondition = new RoomSelectionCondition(['mbz']);
|
||||
$sharedRoomCondition = new RoomSelectionCondition(['mbz']);
|
||||
|
||||
// Show remarks room field only when room with code 'mbz' is selected
|
||||
$this->fieldStateConditions['remarksRoom'] = [
|
||||
'hidden' => CompositeCondition::not($mbzRoomCondition),
|
||||
'hidden' => CompositeCondition::not($sharedRoomCondition),
|
||||
];
|
||||
|
||||
// Transportation-related field conditions
|
||||
|
||||
Reference in new issue
Block a user