org.forms.ticket

Classes

TicketNoteForm

TicketChatMessageForm

InternalTicketChatMessageForm

ReservationTicketChatMessageForm

ExtendedInternalTicketChatMessageForm

Extends the form with Email BCC-Fields.

TicketAssignmentForm

TicketChangeTagForm

RequestCancellationForm

Cancellation request form for reservation tickets.

Functions

tag_choices(form, field) → list[wtforms.fields.SelectChoice]

Module Contents

class org.forms.ticket.TicketNoteForm[source]

Bases: onegov.form.Form

text[source]
files[source]
class org.forms.ticket.TicketChatMessageForm[source]

Bases: onegov.form.Form

text[source]
files[source]
validate_text(field: wtforms.fields.TextAreaField) → None[source]
class org.forms.ticket.InternalTicketChatMessageForm[source]

Bases: TicketChatMessageForm

request: onegov.org.request.OrgRequest[source]
allow_file: bool = False[source]
notify_hint[source]
notify[source]
on_request() → None[source]
class org.forms.ticket.ReservationTicketChatMessageForm[source]

Bases: InternalTicketChatMessageForm

allow_file: bool = True[source]
class org.forms.ticket.ExtendedInternalTicketChatMessageForm[source]

Bases: InternalTicketChatMessageForm

Extends the form with Email BCC-Fields.

email_bcc[source]
email_attachment[source]
property internal_email_recipients: tuple[tuple[str, str], ...][source]
on_request() → None[source]
class org.forms.ticket.TicketAssignmentForm[source]

Bases: onegov.form.Form

usernames: dict[str, str][source]
user[source]
property username: str | None[source]
on_request() → None[source]
org.forms.ticket.tag_choices(form: TicketChangeTagForm, field: onegov.form.fields.ChosenSelectField) → list[wtforms.fields.SelectChoice][source]
class org.forms.ticket.TicketChangeTagForm[source]

Bases: onegov.form.Form

request: onegov.org.request.OrgRequest[source]
tag[source]
class org.forms.ticket.RequestCancellationForm[source]

Bases: onegov.form.Form

Cancellation request form for reservation tickets.

Shows reservation checkboxes when there are multiple reservations, allowing the user to select which ones to cancel. For a single reservation the checkbox field is removed and the form acts as a plain confirmation.

model: onegov.org.models.ticket.ReservationTicket[source]
reservation_ids[source]
on_request() → None[source]