From 5333df38347af1bbdb364c37749251bed81c6c95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=BE=20=D0=A0=D1=94=D0=B7?= =?UTF-8?q?=D1=94=D0=BD=D0=BA=D0=BE=D0=B2?= <108422398+RezenkovD@users.noreply.github.com> Date: Tue, 15 Aug 2023 20:30:01 +0300 Subject: [PATCH] Feat/booking calendar * feat: add API for av slots for month * fix: btn z-index * feat: add getAvailableSlotsMonth * feat: add color * feat: block hover if av_slots <= 0 * ref: add async * feat: max 2 month advance * feat: hidden btn --- vr_club_site/templates/site/calendar.html | 31 +++++++- vr_club_site/templates/site/js/calendar.js | 35 +++++++-- .../templates/site/style/calendar.css | 23 +++++- vr_club_site/templates/site/style/index.css | 2 + vr_club_site/urls.py | 11 ++- vr_club_site/utils.py | 76 +++++++++++++++++-- vr_club_site/views.py | 10 +++ 7 files changed, 174 insertions(+), 14 deletions(-) diff --git a/vr_club_site/templates/site/calendar.html b/vr_club_site/templates/site/calendar.html index 8493bd3..540dc5a 100644 --- a/vr_club_site/templates/site/calendar.html +++ b/vr_club_site/templates/site/calendar.html @@ -18,7 +18,7 @@
-