winterthur.layout

Attributes

MissionReportContext

Classes

AddressLayout

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

AddressSubsetLayout

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

RoadworkCollectionLayout

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

RoadworkLayout

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

DaycareSubsidyCalculatorLayout

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

MissionReportLayout

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

Module Contents

winterthur.layout.MissionReportContext: TypeAlias = MissionReport | MissionReportVehicle | MissionReportCollection | MissionReportVehicleCollection...[source]
class winterthur.layout.AddressLayout(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.

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 winterthur.layout.AddressSubsetLayout(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.

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

Returns the breadcrumbs for the current page.

class winterthur.layout.RoadworkCollectionLayout(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.

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

Returns the breadcrumbs for the current page.

class winterthur.layout.RoadworkLayout(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.

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

Returns the breadcrumbs for the current page.

class winterthur.layout.DaycareSubsidyCalculatorLayout(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.

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

Returns the breadcrumbs for the current page.

class winterthur.layout.MissionReportLayout(model: MissionReportContext, request: onegov.winterthur.request.WinterthurRequest, *suffixes: onegov.core.elements.Link)[source]

Bases: onegov.org.layout.DefaultLayout

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

model: MissionReportContext[source]
suffixes = ()[source]
breadcrumbs_iter() Iterator[Link][source]
property breadcrumbs: list[onegov.core.elements.Link][source]

Returns the breadcrumbs for the current page.

property image_upload_url: str[source]

Returns the url to the image upload action.

property image_upload_json_url: str[source]

Adds the json url for image uploads.

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.