fsi.layouts.course

Module Contents

Classes

CourseInviteMailLayout

Takes a course as its model, not a notification template

CourseCollectionLayout

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

CourseLayout

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

AddCourseLayout

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

EditCourseLayout

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

InviteCourseLayout

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

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

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

Takes a course as its model, not a notification template

property notification_type: str[source]
app: onegov.fsi.app.FsiApp[source]
request: onegov.fsi.request.FsiRequest[source]
model: onegov.fsi.models.Course[source]
event_collection() onegov.fsi.collections.course_event.CourseEventCollection[source]
default_macros() onegov.core.templates.MacrosLookup[source]
event_collection_url() str[source]
course_url() str[source]
upcoming_events_collection() onegov.fsi.collections.course_event.CourseEventCollection[source]
open_events_url() str[source]
class fsi.layouts.course.CourseCollectionLayout(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.

property title: str[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.

accordion_items(upcoming_only: bool = True) list[onegov.core.types.RenderData][source]
class fsi.layouts.course.CourseLayout(model: Any, request: onegov.org.request.OrgRequest)[source]

Bases: CourseCollectionLayout

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

model: onegov.fsi.models.Course[source]
audit_collection() onegov.fsi.collections.audit.AuditCollection[source]
event_collection() onegov.fsi.collections.course_event.CourseEventCollection[source]
breadcrumbs() list[onegov.core.elements.Link][source]

Returns the breadcrumbs for the detail 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.course.AddCourseLayout(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.

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

Returns the breadcrumbs for the current page.

class fsi.layouts.course.EditCourseLayout(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.

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

Returns the breadcrumbs for the current page.

class fsi.layouts.course.InviteCourseLayout(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.

property title: str[source]
model: onegov.fsi.models.Course[source]

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.

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

Returns the breadcrumbs for the current page.