feriennet.layout

Module Contents

Classes

DefaultLayout

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

VacationActivityCollectionLayout

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

BookingCollectionLayout

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

GroupInviteLayout

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

VacationActivityFormLayout

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

OccasionFormLayout

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

VacationActivityLayout

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

PeriodCollectionLayout

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

PeriodFormLayout

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

MatchCollectionLayout

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

BillingCollectionLayout

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

OnlinePaymentsLayout

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

BillingCollectionImportLayout

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

BillingCollectionManualBookingLayout

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

BillingCollectionPaymentWithDateLayout

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

InvoiceLayout

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

DonationLayout

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

OccasionAttendeeLayout

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

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.

VolunteerLayout

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

VolunteerFormLayout

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

HomepageLayout

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

class feriennet.layout.DefaultLayout(model: Any, request: onegov.org.request.OrgRequest)[source]

Bases: onegov.org.layout.DefaultLayout

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

property is_owner: bool[source]
property is_editable: bool[source]
app: onegov.feriennet.app.FeriennetApp[source]
request: onegov.feriennet.request.FeriennetRequest[source]
linkify(text: str | None) str[source]
paragraphify(text: str) str[source]
class feriennet.layout.VacationActivityCollectionLayout(model: Any, request: onegov.org.request.OrgRequest)[source]

Bases: DefaultLayout

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

model: onegov.feriennet.collections.VacationActivityCollection[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 feriennet.layout.BookingCollectionLayout(model: onegov.activity.BookingCollection, request: onegov.feriennet.request.FeriennetRequest, user: User | None = None)[source]

Bases: DefaultLayout

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

model: onegov.activity.BookingCollection[source]
title() str[source]
breadcrumbs() list[onegov.core.elements.Link][source]

Returns the breadcrumbs for the current page.

class feriennet.layout.GroupInviteLayout(model: Any, request: onegov.org.request.OrgRequest)[source]

Bases: DefaultLayout

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

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

Returns the breadcrumbs for the current page.

class feriennet.layout.VacationActivityFormLayout(model: onegov.feriennet.models.VacationActivity | onegov.feriennet.collections.VacationActivityCollection, request: onegov.feriennet.request.FeriennetRequest, title: str)[source]

Bases: DefaultLayout

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

model: onegov.feriennet.models.VacationActivity | onegov.feriennet.collections.VacationActivityCollection[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 feriennet.layout.OccasionFormLayout(model: onegov.activity.Activity, request: onegov.feriennet.request.FeriennetRequest, title: str)[source]

Bases: DefaultLayout

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

model: onegov.activity.Activity[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 feriennet.layout.VacationActivityLayout(model: Any, request: onegov.org.request.OrgRequest)[source]

Bases: DefaultLayout

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

model: onegov.feriennet.models.VacationActivity[source]
breadcrumbs() list[onegov.core.elements.Link][source]

Returns the breadcrumbs for the current page.

latest_request() PublicationRequest | None[source]
ticket() Ticket | None[source]
attendees() onegov.feriennet.collections.OccasionAttendeeCollection | None[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.

class feriennet.layout.PeriodCollectionLayout(model: Any, request: onegov.org.request.OrgRequest)[source]

Bases: DefaultLayout

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

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 feriennet.layout.PeriodFormLayout(model: Period | PeriodCollection, request: onegov.feriennet.request.FeriennetRequest, title: str)[source]

Bases: DefaultLayout

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

model: Period | PeriodCollection[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 feriennet.layout.MatchCollectionLayout(model: Any, request: onegov.org.request.OrgRequest)[source]

Bases: DefaultLayout

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

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

Returns the breadcrumbs for the current page.

class feriennet.layout.BillingCollectionLayout(model: Any, request: onegov.org.request.OrgRequest)[source]

Bases: DefaultLayout

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

class FamilyRow[source]

Bases: NamedTuple

text: str[source]
item: str[source]
count: int[source]
has_online_payments: bool[source]
property families: Iterator[FamilyRow][source]
model: onegov.feriennet.collections.BillingCollection[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 feriennet.layout.OnlinePaymentsLayout(model: Any, request: onegov.feriennet.request.FeriennetRequest, title: str)[source]

Bases: DefaultLayout

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

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.

class feriennet.layout.BillingCollectionImportLayout(model: Any, request: onegov.org.request.OrgRequest)[source]

Bases: DefaultLayout

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

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

Returns the breadcrumbs for the current page.

class feriennet.layout.BillingCollectionManualBookingLayout(model: Any, request: onegov.org.request.OrgRequest)[source]

Bases: DefaultLayout

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

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

Returns the breadcrumbs for the current page.

class feriennet.layout.BillingCollectionPaymentWithDateLayout(model: Any, request: onegov.org.request.OrgRequest)[source]

Bases: DefaultLayout

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

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

Returns the breadcrumbs for the current page.

class feriennet.layout.InvoiceLayout(model: Any, request: onegov.feriennet.request.FeriennetRequest, title: str)[source]

Bases: DefaultLayout

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

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

Returns the breadcrumbs for the current page.

class feriennet.layout.DonationLayout(model: onegov.activity.collections.InvoiceCollection, request: onegov.feriennet.request.FeriennetRequest, title: str)[source]

Bases: DefaultLayout

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

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

Returns the breadcrumbs for the current page.

class feriennet.layout.OccasionAttendeeLayout(model: Any, request: onegov.org.request.OrgRequest)[source]

Bases: DefaultLayout

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

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

Returns the breadcrumbs for the current page.

class feriennet.layout.NotificationTemplateCollectionLayout(model: onegov.feriennet.collections.NotificationTemplateCollection, request: onegov.feriennet.request.FeriennetRequest, subtitle: str | None = None)[source]

Bases: DefaultLayout

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

model: onegov.feriennet.collections.NotificationTemplateCollection[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 feriennet.layout.NotificationTemplateLayout(model: onegov.feriennet.models.NotificationTemplate, request: onegov.feriennet.request.FeriennetRequest, subtitle: str | None = None)[source]

Bases: DefaultLayout

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

model: onegov.feriennet.models.NotificationTemplate[source]
breadcrumbs() list[onegov.core.elements.Link][source]

Returns the breadcrumbs for the current page.

class feriennet.layout.VolunteerLayout(model: Any, request: onegov.org.request.OrgRequest)[source]

Bases: DefaultLayout

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

model: onegov.activity.collections.VolunteerCollection[source]
breadcrumbs() list[onegov.core.elements.Link][source]

Returns the breadcrumbs for the current page.

class feriennet.layout.VolunteerFormLayout(model: Any, request: onegov.org.request.OrgRequest)[source]

Bases: DefaultLayout

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

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

Returns the breadcrumbs for the current page.

class feriennet.layout.HomepageLayout(model: Any, request: onegov.org.request.OrgRequest)[source]

Bases: DefaultLayout

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

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.

model: onegov.org.models.Organisation[source]