Sha256: 84eb07e73ab7894b8ab742eb62d5d86d28aa327be1fedac5b1513e823dacb559
Contents?: true
Size: 1.06 KB
Versions: 8
Compression:
Stored size: 1.06 KB
Contents
# frozen_string_literal: true module Decidim module Surveys module Admin # This controller allows the user to update a Page. class SurveysController < Admin::ApplicationController include Decidim::Forms::Admin::Concerns::HasQuestionnaire include Decidim::Forms::Admin::Concerns::HasQuestionnaireAnswers def questionnaire_for survey end # Specify the public url from which the survey can be viewed and answered def public_url Decidim::EngineRouter.main_proxy(current_component).survey_path(survey) end # Specify where to redirect after exporting a user response def questionnaire_participant_answers_url(session_token) Decidim::EngineRouter.admin_proxy(survey.component).show_survey_path(session_token: session_token) end private def i18n_flashes_scope "decidim.surveys.admin.surveys" end def survey @survey ||= Survey.find_by(component: current_component) end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems