org.elements

Contains small helper classes used as abstraction for various templating macros.

Classes

Link

Represents a link rendered in a template.

QrCodeLink

Implements a qr code link that shows a modal with the QrCode.

DeleteLink

Represents a link rendered in a template.

ConfirmLink

Represents a link rendered in a template.

Module Contents

Bases: _Base

Represents a link rendered in a template.

__slots__ = ('active', 'attributes', 'classes', 'model', 'request_method', 'subtitle', 'text', 'url')[source]
text: str[source]
url[source]
classes = None[source]
request_method = 'GET'[source]
attributes[source]
active = False[source]
model = None[source]
subtitle = None[source]
__eq__(other: object) bool[source]
__call__(request: ChameleonLayout | CoreRequest, extra_classes: Iterable[str] | None = None) markupsafe.Markup[source]

Renders the element.

Bases: onegov.core.elements.Link

Implements a qr code link that shows a modal with the QrCode. Thu url is sent to the qr endpoint url which generates the image and sends it back.

id = 'qr_code_link'[source]
__slots__ = ('active', 'attributes', 'classes', 'text', 'url', 'title')[source]
title = None[source]
__repr__() str[source]

Bases: Link

Represents a link rendered in a template.

Bases: DeleteLink

Represents a link rendered in a template.