-
Notifications
You must be signed in to change notification settings - Fork 2
Pro 1436 delete attendees #2236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR implements a feature allowing users to delete attendees (children) in the Feriennet application. Deletion is restricted when attendees have bookings in the active period, but allowed for attendees with only non-active period bookings. The feature includes proper UI elements, confirmation dialogs, and internationalization support.
- Adds DELETE endpoint for attendees with active period booking restrictions
- Implements delete button UI with confirmation dialog and accessibility support
- Updates templates to show attendees even without bookings (for deletion purposes)
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/onegov/feriennet/views/attendee.py | Implements DELETE endpoint with validation logic to prevent deletion of attendees with active period bookings |
| src/onegov/feriennet/views/booking.py | Adds attendee_delete_link function to generate delete links with confirmation dialogs |
| src/onegov/feriennet/templates/bookings.pt | Integrates delete button into attendee cards and removes conditional rendering to show attendees without bookings |
| src/onegov/town6/templates/elements.pt | Adds screen reader text support for icon-only links to improve accessibility |
| src/onegov/feriennet/theme/styles/feriennet.scss | Adds delete-icon styling and removes padding-left from icon elements |
| tests/onegov/feriennet/test_views.py | Adds test coverage for attendee deletion with active/inactive period scenarios |
| src/onegov/feriennet/locale/de_CH/LC_MESSAGES/onegov.feriennet.po | Adds German translations for deletion messages |
| src/onegov/feriennet/locale/fr_CH/LC_MESSAGES/onegov.feriennet.po | Adds French translations for deletion messages |
| src/onegov/feriennet/locale/it_CH/LC_MESSAGES/onegov.feriennet.po | Adds Italian translations for deletion messages |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Please fill in the commit message below and work through the checklist. You can delete parts that are not needed, e.g. the optional description, the link to a ticket or irrelevant options of the checklist.
Commit message
Feriennet: Delete attendees
TYPE: Feature
LINK: PRO-1436
Checklist