election_day.views.manage.votes

Functions

view_votes(→ onegov.core.types.RenderData)

View a list of all votes.

create_vote(→ RenderData | Response)

Create a new vote.

edit_vote(→ RenderData | Response)

Edit an existing vote.

clear_vote(→ RenderData | Response)

Clear the results of a vote.

clear_election_media(→ RenderData | Response)

Deletes alls SVGs and PDFs of this vote.

delete_vote(→ RenderData | Response)

Delete an existing vote.

trigger_vote(→ RenderData | Response)

Trigger the notifications related to a vote.

Module Contents

election_day.views.manage.votes.view_votes(self: onegov.election_day.collections.VoteCollection, request: onegov.election_day.request.ElectionDayRequest) onegov.core.types.RenderData[source]

View a list of all votes.

election_day.views.manage.votes.create_vote(self: onegov.election_day.collections.VoteCollection, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.VoteForm) RenderData | Response[source]

Create a new vote.

election_day.views.manage.votes.edit_vote(self: onegov.election_day.models.Vote, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.VoteForm) RenderData | Response[source]

Edit an existing vote.

election_day.views.manage.votes.clear_vote(self: onegov.election_day.models.Vote, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.ClearResultsForm) RenderData | Response[source]

Clear the results of a vote.

election_day.views.manage.votes.clear_election_media(self: onegov.election_day.models.Vote, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.EmptyForm) RenderData | Response[source]

Deletes alls SVGs and PDFs of this vote.

election_day.views.manage.votes.delete_vote(self: onegov.election_day.models.Vote, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.EmptyForm) RenderData | Response[source]

Delete an existing vote.

election_day.views.manage.votes.trigger_vote(self: onegov.election_day.models.Vote, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.TriggerNotificationForm) RenderData | Response[source]

Trigger the notifications related to a vote.