ephios-dev / ephios

ephios is a django web application for managing participation for services at events, like paramedics at a festival, lifeguards at the beach, referees and judges at competitions, etc.
https://ephios.de
MIT License
26 stars 8 forks source link

Improve event PDF exporter #1130

Open felixrindt opened 11 months ago

felixrindt commented 11 months ago

As part of the complex signup method aftermath we want to improve the pdf exporter:

Feel free to add more suggestions to this issue

BenBals commented 7 months ago
Screenshot 2024-03-09 at 14 14 31

Maybe as inspiration: This is the layout we used for our last Christmas party.

jeriox commented 7 months ago

Export as it is currently: We have two different layouts. One for events with only one shift: grafik

And one for events with multiple shifts: grafik

While they are quite ugly, I don't think that they will become what you posted. This is mainly due to the fact that the export is only for one event at a time, while your view is more like the grid view optimised for printing. We already have a similar case: a client of ours has events with uniform shifts every weekend. We also built a custom PDF export for them, which layouts the whole year on a single page. This is realised by using the bulk action on the event list and implementing a custom action in a plugin. This way, you can select all the events you want to include in your export. Have a look here: https://github.com/ephios-dev/ephios-signup-beachguard/blob/main/ephios_signup_beachguard/views.py#L49

I would limit this issue to the event-specific export. @lukasrad02 and @dasGoogle also had opinions on that IIRC

dasGoogle commented 7 months ago

Would have been smart if I had taken notes when we had this discussion... 😅 But this is what I remember:

If I understand @felixrindt correctly, he wants to also add special features for different shift signup types. I also see why this would be pretty useful since there is some info missing in the export. For example, I resorted to printing out screenshots instead of the PDF export as the feature where users can request a certain position was very chaotic in the PDF and I would have wanted a view more similar to the web page. While working on this, one could also replace the "Can select own starting and end time" field with the actual times that people chose in the table and move the meeting point time to the header for Multi-Export to save quite a lot of space on the page.

dasGoogle commented 7 months ago

Regarding @BenBals Use-Case: I think that a basic CSV export of all shifts in a certain range would do the job perfectly as he could then use the data in his Excel PivotTable (is that what this comes from?) directly. In modern excel, he could even integrate this as a dynamic data source iirc, so that one can update it with a single click.

IIRC, you also wanted to implement an API route for searching for shift participations. Maybe, this would be a feature to integrate there by just offering a CSV download format via an additional GET parameter.