Add the ReviewDateMixin
to your page model:
from wagtailnhsukfrontend.mixins import (
ReviewDateMixin,
)
class MyPage(Page, ReviewDateMixin):
...
settings_panels = Page.settings_panels + ReviewDateMixin.settings_panels
The ReviewDateMixin
will add last_review_date
and next_review_date
fields to your page model,
editable in the settings panel of the wagtail page edit interface.
To include the review date component on a page you will have to include the review date template in your page template:
{% include "wagtailnhsukfrontend/review_date.html" %}