Closed mathieuLU closed 1 year ago
Hej Fredrik.
Here is what we could do :
Right now on the homepage every user can see the link "Uppdatera min profil". This page allows a user to edit his profile information and his surveys. We could add there a tab "Lokaler"
so first, from my point of view the item menu should be renamed. ""Uppdatera min profil, se mina undersökningar och bokningar". Well something like that :) Your choice.
When you click that link, you can now see 3 tabs (admin could already see the "Lokalbokning" tag. Now every user could see it :
An admin can see 3 blocks there. A regular user would see only the middle one (or maybe the last one as well ?)
Right now, clicking on "avboka" displays this :
so we have to translate this. Let me know what should stand there ;-)
ANd in addition, of course, an email has to be sent to the admin, saying that the site has been unbooked. PLease tell me as well what we should write there :)
Let me know if it looks fine to you. And if yes, please send me the swedish text for all these steps :) 1- item menu on the home page ("uppdatera min profil...") 2- pop-up when clicking on avboka 3- popup when unbooking processed 4- email to the admin 5- should we allow the users to see the 3rd block ? ("visa andra" with the list of sites)
Ok so we have 2 alternatives :
1- all the bookables sites can be unbooked, using the process described in the previous message
Missing in the previous list : when the user is about the unbook, a text field should be mandatory to specify the reason of the unbooking. This textfield will be pasted in the email sent to the admin (no need to save it in he database)
2- the same way that we have a flag "siteBooking" for the project with sites allowed to be booked, we could have a flag siteUnbooking to allow thhe unbooking only for these projects.
Hej @fredrikhaas
here is how it looks now (TEST version)
homepage menu:
if admin, menu as usual :
I kept the list the way it was, since it quite messy to change the order of the sites displayed. BUt I added the scheme column to help understanding
for normal users, only the unbookable sites have the unbook button :
when clicking on unbook :
the unbook information message
Now I'm working on the email for the admin.
Email: Subject - "Avbokning av IWC-lokal", Content: "Site/internal site ID har avbokats av Fredrik Haas, 650802-1", dvs "L016 har avbokats av Fredrik Haas, 650802-1"
email is ready as well. Can be deployed to production when you want!
deployed in production.
works as well for Kustfågelrutor
email changed + email address fixed with https://github.com/biodiversitydata-se/biocollect/commit/cddc2daa868fab06270ca6e1141cc246cbe70e45 and https://github.com/biodiversitydata-se/biocollect/commit/fe837dec73dffdfdb794a2544899d1cc47bc49c0
allow to sort the table for a user like : with https://github.com/biodiversitydata-se/biocollect/commit/eaddd36b9d64cc181bb088356cb4305fff6f4304
I think it's all ok and can be closed now !
Looks good, fine with me to close the case.
Fredrik
From: mathieuLU @. Sent: den 9 augusti 2023 16:34 To: biodiversitydata-se/biocollect @.> Cc: Fredrik Haas @.>; Mention @.> Subject: Re: [biodiversitydata-se/biocollect] Allow users to unbook routes (IWC) and send an email to the admins when they do (Issue #234)
deployed in production.
works as well for Kustfågelrutor
email changed + email address fixed with cddc2dahttps://github.com/biodiversitydata-se/biocollect/commit/cddc2daa868fab06270ca6e1141cc246cbe70e45 and fe837dehttps://github.com/biodiversitydata-se/biocollect/commit/fe837dec73dffdfdb794a2544899d1cc47bc49c0
allow to sort the table for a user like : [Screenshot from 2023-08-09 16-32-30]https://user-images.githubusercontent.com/50901365/259444569-2c0a0bef-3692-43fc-ab9b-92500fc7a602.png with eaddd36https://github.com/biodiversitydata-se/biocollect/commit/eaddd36b9d64cc181bb088356cb4305fff6f4304
I think it's all ok and can be closed now !
— Reply to this email directly, view it on GitHubhttps://github.com/biodiversitydata-se/biocollect/issues/234#issuecomment-1671505837, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AW46YAG4K2S6RCPGM3Q543DXUONTZANCNFSM6AAAAAAUVIU2II. You are receiving this because you were mentioned.Message ID: @.**@.>>
from @fredrikhaas
Det hade varit bra om inventerarna själva kunde avboka sina kustrutor och sjöfågelområden (iwc). När inventeraren avbokar hade det varit bra om det skickades ett meddelande till oss om att så skett.
Design to be determined
Change title of "uppdatera min profil" (add infos about site bookings handling and previous surveys) Show the 3rd tab for all users with Lokalbokning. Only "visa bokade lokaler"
avboka button
confirmation email to admins