Add an accommodations reservations module #188

Merged
pierre merged 81 commits from accomodation_module into master 2024-06-22 21:30:26 +00:00
Showing only changes of commit bc4fb79f8c - Show all commits

View File

@ -101,9 +101,11 @@ export function UpdateReservationDialog(p: {
<Button
onClick={submit}
disabled={
!(
(reservation?.accommodation_id ?? -1) > 0 &&
(reservation?.start ?? -1) > 0 &&
(reservation?.end ?? -1) > (reservation?.start ?? 0)
)
}
>
{p.create ? "Créer" : "Mettre à jour"}