feriennet.layout

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.

Module Contents

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

Bases: onegov.org.layout.DefaultLayout

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

app: onegov.feriennet.app.FeriennetApp[source]

Returns the application behind the request.

request: onegov.feriennet.request.FeriennetRequest[source]
property is_owner: bool[source]
property is_editable: bool[source]
linkify(text: str | None) markupsafe.Markup[source]
paragraphify(text: str) markupsafe.Markup[source]
class feriennet.layout.VacationActivityCollectionLayout(model: onegov.feriennet.collections.VacationActivityCollection, request: onegov.feriennet.request.FeriennetRequest)[source]

Bases: DefaultLayout

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

model: onegov.feriennet.collections.VacationActivityCollection[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.

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

Bases: 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.

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]
title[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.

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]
title[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.

class feriennet.layout.VacationActivityLayout(model: onegov.feriennet.models.VacationActivity, request: onegov.feriennet.request.FeriennetRequest)[source]

Bases: DefaultLayout

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

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

Returns the breadcrumbs for the current page.

property latest_request: PublicationRequest | None[source]
property ticket: Ticket | None[source]
property 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, edit_mode: bool = False)[source]

Bases: 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.

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]
title[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.

class feriennet.layout.MatchCollectionLayout(model: Any, request: onegov.org.request.OrgRequest, edit_mode: bool = False)[source]

Bases: 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.

class feriennet.layout.BillingCollectionLayout(model: onegov.feriennet.collections.BillingCollection, request: onegov.feriennet.request.FeriennetRequest)[source]

Bases: DefaultLayout

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

model: onegov.feriennet.collections.BillingCollection[source]
class FamilyRow[source]

Bases: NamedTuple

text: str[source]
item: str[source]
count: int[source]
has_online_payments: bool[source]
property families: Iterator[FamilyRow][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.

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.

title[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.

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

Bases: 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.

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

Bases: 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.

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

Bases: 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.

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.

title[source]
property 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.

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

Bases: 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.

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]
subtitle = None[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.

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]
subtitle = None[source]
property breadcrumbs: list[onegov.core.elements.Link][source]

Returns the breadcrumbs for the current page.

class feriennet.layout.VolunteerLayout(model: onegov.activity.collections.VolunteerCollection, request: onegov.feriennet.request.FeriennetRequest)[source]

Bases: DefaultLayout

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

model: onegov.activity.collections.VolunteerCollection[source]
property 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, edit_mode: bool = False)[source]

Bases: 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.

class feriennet.layout.HomepageLayout(model: onegov.org.models.Organisation, request: onegov.feriennet.request.FeriennetRequest)[source]

Bases: DefaultLayout

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

model: onegov.org.models.Organisation[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.