Problem/Motivation

Lessons that are cancelled could simply be removed from the lesson list, but that would make it difficult for students to note the exception from the regular schedule. It would be useful to have cancelled lessons marked explicitly.

Proposed resolution

* Add a field to lessons to mark their status, such as normal/cancelled. (More states could be added later on – maybe the "content fixed" thing should go here, see #1910870: Allow lessons to never be pushed/shifted.)
* Use the state to filter out cancelled lessons from ordinary week lists.
* Add a list of cancelled lessons at the top of week lists.
* Give cancelled lessons another appearance in the calendar view.
* Add another button to the lesson admin page, for cancelling lessons (rather than deleting them).

It should be considred to have a completely different content type for cancelled lessons – some kind of place holder which should never be included in summaries and the like.

Note: This is kind of a big issue, which will affect the structure and functionality of lessons. Until now, they are more or less shell containers for sections (with dates), but now they will become content of their own. This issue should most likely be coordinated with #1893044: Make lessons Field collections, not nodes..

Remaining tasks

Evaluate idea.
Implement.
Evaluate implementation.
Iterate.

User interface changes

(as described above)

API changes

(as described above)

Comments

itangalo’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev

First parts of this feature is now implemented in 2.x:

* Lessons can be marked "cancelled" or "locked".
* Locked or cancelled lessons cannot be checked in the lessons admin page, and so will be skipped when pushing lesson content.

Todo: The rest.

itangalo’s picture

The locked/cancelled lessons now have their own color in the calendars.

itangalo’s picture

Issue summary: View changes

Crossed off two items from the list.

itangalo’s picture

Week lists now updated.

Some more changes still needs to happen, I think, to iCal and RSS feeds, and possibly some other places where lessons are displayed.

itangalo’s picture

Issue summary: View changes

Crossed off two more items.

itangalo’s picture

Status: Active » Fixed

This will do for now. Marking issue as fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.