mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-23 07:41:52 +00:00
Implement add/edit/delete forms for logbook entries #1
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: expo/troggle#1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Logbook entries are currently written by editing HTML inside an HTML form that contains all the logbook entries for the year. This HTML is then parsed using RegEx (apparently) and rendered into Django objects by a parser.
Code-efficiency wise, it would be best to set up class-based views as then we can re-use generic forms for add/edit/delete pages elsewhere, increasing maintainability. See https://ccbv.co.uk/ and https://docs.djangoproject.com/en/4.2/topics/class-based-views/.
Models-wise, we already define
models.logbooks.LogbookEntry
so adding templates and views for add/edit/delete should be trivial.The logbook view template will need to be updated to provide hyperlinks for these actions.
Added high priority label as this quality-of-life feature is actively dissuading non-nerds from contributing data to the set.
Progress. See https://expo.survex.com/logbookedit/2015_s43