fsi.layouts.course

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.

Module Contents

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

app: onegov.fsi.app.FsiApp[source]

Returns the application behind the request.

request: onegov.fsi.request.FsiRequest[source]
model: onegov.fsi.models.Course[source]
property event_collection: onegov.fsi.collections.course_event.CourseEventCollection[source]
property default_macros: onegov.core.templates.MacrosLookup[source]
property event_collection_url: str[source]
property course_url: str[source]
property upcoming_events_collection: onegov.fsi.collections.course_event.CourseEventCollection[source]
property open_events_url: str[source]
property notification_type: str[source]
class fsi.layouts.course.CourseCollectionLayout(model: Any, request: onegov.org.request.OrgRequest, edit_mode: bool = False)[source]

Bases: onegov.fsi.layout.DefaultLayout

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

property title: str[source]
property 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, edit_mode: bool = False)[source]

Bases: CourseCollectionLayout

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

model: onegov.fsi.models.Course[source]
property audit_collection: onegov.fsi.collections.audit.AuditCollection[source]
property event_collection: onegov.fsi.collections.course_event.CourseEventCollection[source]
property 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, edit_mode: bool = False)[source]

Bases: onegov.fsi.layout.DefaultLayout

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

property breadcrumbs: list[onegov.core.elements.Link][source]

Returns the breadcrumbs for the current page.

property title: str[source]
class fsi.layouts.course.EditCourseLayout(model: Any, request: onegov.org.request.OrgRequest, edit_mode: bool = False)[source]

Bases: onegov.fsi.layout.DefaultLayout

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

model: onegov.fsi.models.Course[source]
property title: str[source]
property 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, edit_mode: bool = False)[source]

Bases: onegov.fsi.layout.DefaultLayout

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

model: onegov.fsi.models.Course[source]
property title: str[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.

property breadcrumbs: list[onegov.core.elements.Link][source]

Returns the breadcrumbs for the current page.