fsi.layouts.subscription

Classes

SubscriptionCollectionLayout

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

SubscriptionLayout

Only used for editing since it does not contain fields

Module Contents

class fsi.layouts.subscription.SubscriptionCollectionLayout(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.collections.subscription.SubscriptionsCollection[source]
property for_himself: bool[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 course_event: CourseEvent | None[source]
property preview_info_mail_url: str[source]
property show_send_info_mail_button: bool[source]
property breadcrumbs: list[onegov.core.elements.Link][source]

Returns the breadcrumbs for the current page.

intercooler_btn_for_item(subscription: onegov.fsi.models.CourseSubscription) onegov.core.elements.Link[source]
class fsi.layouts.subscription.SubscriptionLayout(model: Any, request: onegov.org.request.OrgRequest, edit_mode: bool = False)[source]

Bases: onegov.fsi.layout.DefaultLayout

Only used for editing since it does not contain fields

model: onegov.fsi.models.CourseSubscription[source]
property collection: onegov.fsi.collections.subscription.SubscriptionsCollection[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.