Class: Decidim::Elections::Admin::FeedbackFormsController
- Inherits:
-
ApplicationController
- Object
- Admin::Components::BaseController
- ApplicationController
- Decidim::Elections::Admin::FeedbackFormsController
- Includes:
- Forms::Admin::Concerns::HasQuestionnaire, Forms::Admin::Concerns::HasQuestionnaireAnswers
- Defined in:
- app/controllers/decidim/elections/admin/feedback_forms_controller.rb
Overview
This controller allows an admin to manage the form to be filled when a user finishes voting
Instance Method Summary collapse
- #after_update_url ⇒ Object
- #answer_options_url(params) ⇒ Object
- #public_url ⇒ Object
- #questionnaire_export_response_url(session_token) ⇒ Object
- #questionnaire_for ⇒ Object
- #questionnaire_participant_answers_url(session_token) ⇒ Object
- #questionnaire_participants_url ⇒ Object
- #questionnaire_url ⇒ Object
- #update_url ⇒ Object
Instance Method Details
#after_update_url ⇒ Object
19 20 21 |
# File 'app/controllers/decidim/elections/admin/feedback_forms_controller.rb', line 19 def after_update_url edit_feedback_form_path(id: election.id) end |
#answer_options_url(params) ⇒ Object
27 28 29 |
# File 'app/controllers/decidim/elections/admin/feedback_forms_controller.rb', line 27 def (params) (**params) end |
#public_url ⇒ Object
23 24 25 |
# File 'app/controllers/decidim/elections/admin/feedback_forms_controller.rb', line 23 def public_url Decidim::EngineRouter.main_proxy(current_component).election_feedback_path(election) end |
#questionnaire_export_response_url(session_token) ⇒ Object
39 40 41 |
# File 'app/controllers/decidim/elections/admin/feedback_forms_controller.rb', line 39 def questionnaire_export_response_url(session_token) answer_export_feedback_form_path(id: election.id, session_token:, format: "pdf") end |
#questionnaire_for ⇒ Object
11 12 13 |
# File 'app/controllers/decidim/elections/admin/feedback_forms_controller.rb', line 11 def questionnaire_for election end |
#questionnaire_participant_answers_url(session_token) ⇒ Object
35 36 37 |
# File 'app/controllers/decidim/elections/admin/feedback_forms_controller.rb', line 35 def questionnaire_participant_answers_url(session_token) answer_feedback_form_path(id: election.id, session_token:) end |
#questionnaire_participants_url ⇒ Object
31 32 33 |
# File 'app/controllers/decidim/elections/admin/feedback_forms_controller.rb', line 31 def questionnaire_participants_url answers_feedback_form_path(id: election.id) end |
#questionnaire_url ⇒ Object
43 44 45 |
# File 'app/controllers/decidim/elections/admin/feedback_forms_controller.rb', line 43 def questionnaire_url edit_feedback_form_path(id: election.id) end |
#update_url ⇒ Object
15 16 17 |
# File 'app/controllers/decidim/elections/admin/feedback_forms_controller.rb', line 15 def update_url feedback_form_path(election_id: election.id) end |