From a1427593aedf542a5197a1565968e3d3694c3be8 Mon Sep 17 00:00:00 2001 From: ciukstar Date: Sun, 8 Oct 2023 00:21:08 +0300 Subject: [PATCH] Fix appoinntment and request cards --- src/Admin/Services.hs | 121 ++++++------------ src/Admin/Staff.hs | 5 +- src/Demo/DemoDataEN.hs | 56 +++++--- src/Foundation.hs | 64 +++++---- src/Handler/Appointments.hs | 28 ++-- src/Handler/Book.hs | 12 +- src/Handler/Requests.hs | 28 ++-- static/img/Salon-ERD.svg | 41 +++--- templates/admin/services/create.hamlet | 6 +- templates/admin/services/edit.hamlet | 6 +- .../admin/services/expert/create.cassius | 2 + templates/admin/services/expert/form.cassius | 3 + templates/admin/services/expert/form.hamlet | 46 +++++++ templates/admin/services/offer/create.hamlet | 6 +- templates/admin/services/offer/edit.hamlet | 6 +- templates/admin/services/offer/offer.hamlet | 6 +- templates/admin/services/search.hamlet | 2 +- templates/admin/services/services.hamlet | 75 +++++------ templates/admin/services/services.julius | 23 +--- templates/admin/services/subservices.hamlet | 4 +- templates/admin/staff/staff.cassius | 15 ++- templates/admin/staff/staff.hamlet | 2 +- templates/appointments/appointment.cassius | 24 +++- templates/appointments/appointment.hamlet | 74 ++++++----- templates/appointments/appointments.hamlet | 36 +++--- templates/appointments/hist.hamlet | 34 +---- templates/appointments/hist.julius | 4 +- templates/login.cassius | 3 + templates/login.hamlet | 15 ++- templates/requests/hist.hamlet | 34 +---- templates/requests/hist.julius | 4 +- templates/requests/request.cassius | 24 +++- templates/requests/request.hamlet | 70 +++++----- 33 files changed, 448 insertions(+), 431 deletions(-) create mode 100644 templates/admin/services/expert/form.cassius create mode 100644 templates/admin/services/expert/form.hamlet diff --git a/src/Admin/Services.hs b/src/Admin/Services.hs index afd0418..30edd0b 100644 --- a/src/Admin/Services.hs +++ b/src/Admin/Services.hs @@ -238,51 +238,7 @@ formExpert sid role extra = do , fsAttrs = [("class","mdc-text-field__input"),("min","0"),("max","5")] } (roleRating . entityVal <$> role) let r = Role <$> emplR <*> FormSuccess sid <*> nameR <*> ratingR - let w = [whamlet| -#{extra} - - - ^{fvInput emplV} -