from onegov.fsi.models.course_event import (
COURSE_EVENT_STATUSES_TRANSLATIONS, COURSE_EVENT_STATUSES
)
from onegov.fsi.models.course_notification_template import (
NOTIFICATION_TYPE_TRANSLATIONS, NOTIFICATION_TYPES)
from onegov.town6.layout import DefaultLayout as BaseLayout
from onegov.fsi import _
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from onegov.fsi.app import FsiApp
from onegov.fsi.models.course_event import EventStatusType
from onegov.fsi.models.course_notification_template import NotificationType
from onegov.fsi.request import FsiRequest
[docs]
class DefaultLayout(BaseLayout, FormatMixin):
[docs]
def instance_link(self, instance: object) -> str:
return self.request.link(instance)