org.views.survey_definition
Attributes
Functions
|
|
|
Renders the empty survey and takes input, even if it's not valid, |
|
|
|
|
|
Deletes the survey along with all its submissions. |
|
Deletes all survey submissions. |
Module Contents
- org.views.survey_definition.handle_new_survey_definition(self: onegov.form.collection.SurveyCollection, request: onegov.org.request.OrgRequest, form: onegov.org.forms.form_definition.SurveyDefinitionForm, layout: onegov.org.layout.FormEditorLayout | None = None) RenderData | Response [source]
- org.views.survey_definition.handle_defined_survey(self: onegov.form.models.definition.SurveyDefinition, request: onegov.org.request.OrgRequest, form: onegov.form.Form, layout: onegov.org.layout.SurveySubmissionLayout | None = None) RenderData | Response [source]
Renders the empty survey and takes input, even if it’s not valid, stores it as a pending submission and redirects the user to the view that handles pending submissions.
- org.views.survey_definition.handle_edit_survey_definition(self: onegov.form.models.definition.SurveyDefinition, request: onegov.org.request.OrgRequest, form: onegov.org.forms.form_definition.SurveyDefinitionForm, layout: onegov.org.layout.FormEditorLayout | None = None) RenderData | Response [source]
- org.views.survey_definition.view_survey_results(self: onegov.form.models.definition.SurveyDefinition, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.SurveySubmissionLayout | None = None) onegov.core.types.RenderData [source]