fsi.layouts.notification

Module Contents

Classes

MailLayout

Layout for emails expecting the model to be a subscription object.

NotificationTemplateCollectionLayout

The default layout meant for the public facing parts of the site.

NotificationTemplateLayout

The default layout meant for the public facing parts of the site.

EditNotificationTemplateLayout

The default layout meant for the public facing parts of the site.

SendNotificationTemplateLayout

The default layout meant for the public facing parts of the site.

class fsi.layouts.notification.MailLayout(model: Any, request: onegov.core.request.CoreRequest)[source]

Bases: onegov.org.layout.DefaultMailLayout, onegov.fsi.layout.FormatMixin

Layout for emails expecting the model to be a subscription object. Takes in a notification template linked to a course_event.

property title: str[source]
app: onegov.fsi.app.FsiApp[source]
request: onegov.fsi.request.FsiRequest[source]
model: onegov.fsi.models.CourseNotificationTemplate[source]
default_macros() onegov.core.templates.MacrosLookup[source]
base() chameleon.PageTemplateFile[source]

Returns the layout, which defines the base layout of all pages.

See templates/layout.pt.

event_start() str[source]
event_end() str[source]
event_date() str[source]
course_name() str[source]
course_description() str[source]
reservation_name() str[source]
event_url() str[source]
course_url() str[source]
upcoming_events_collection() onegov.fsi.collections.course_event.CourseEventCollection[source]
open_events_url() str[source]
events_list() list[onegov.fsi.models.CourseEvent][source]
notification_type() str[source]
class fsi.layouts.notification.NotificationTemplateCollectionLayout(model: Any, request: onegov.org.request.OrgRequest)[source]

Bases: onegov.fsi.layout.DefaultLayout

The default layout meant for the public facing parts of the site.

class AccordionItem[source]

Bases: NamedTuple

subject: str | None[source]
text: str | None[source]
url: str[source]
edit_url: str[source]
property title: str[source]
model: onegov.fsi.collections.notification_template.CourseNotificationTemplateCollection[source]
breadcrumbs() list[onegov.core.elements.Link][source]

Returns the breadcrumbs for the current page.

accordion_items() tuple[AccordionItem, Ellipsis][source]
class fsi.layouts.notification.NotificationTemplateLayout(model: Any, request: onegov.org.request.OrgRequest)[source]

Bases: onegov.fsi.layout.DefaultLayout

The default layout meant for the public facing parts of the site.

model: onegov.fsi.models.CourseNotificationTemplate[source]
title() str[source]
collection() onegov.fsi.collections.notification_template.CourseNotificationTemplateCollection[source]
breadcrumbs() list[onegov.core.elements.Link][source]

Returns the breadcrumbs for the current page.

A of onegov.org.elements.LinkGroup classes. Each of them will be shown in the top editbar, with the group title being the dropdown title.

class fsi.layouts.notification.EditNotificationTemplateLayout(model: Any, request: onegov.org.request.OrgRequest)[source]

Bases: NotificationTemplateLayout

The default layout meant for the public facing parts of the site.

title() str[source]
breadcrumbs() list[onegov.core.elements.Link][source]

Returns the breadcrumbs for the current page.

class fsi.layouts.notification.SendNotificationTemplateLayout(model: Any, request: onegov.org.request.OrgRequest)[source]

Bases: NotificationTemplateLayout

The default layout meant for the public facing parts of the site.

property title: str[source]
breadcrumbs() list[onegov.core.elements.Link][source]

Returns the breadcrumbs for the current page.