Sha256: 5d0041c3415e3cb3e71ac3d097480015c2ff31e1a5c7c0bd33d77ac7042b2ae4

Contents?: true

Size: 900 Bytes

Versions: 58

Compression:

Stored size: 900 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Meetings
    module Admin
      # This controller allows an admin to manage the form to be filled when an user joins the meeting
      class RegistrationFormController < Admin::ApplicationController
        include Decidim::Forms::Admin::Concerns::HasQuestionnaire

        def questionnaire_for
          meeting
        end

        def update_url
          meeting_registrations_form_path(meeting_id: meeting.id)
        end

        def after_update_url
          edit_meeting_registrations_path(meeting_id: meeting.id)
        end

        def public_url
          Decidim::EngineRouter.main_proxy(current_component).join_meeting_registration_path(meeting)
        end

        private

        def meeting
          @meeting ||= Meeting.where(component: current_component).find(params[:meeting_id])
        end
      end
    end
  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
decidim-meetings-0.29.1 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.28.4 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.27.9 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.29.0 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.28.3 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.27.8 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.29.0.rc4 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.29.0.rc3 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.29.0.rc2 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.29.0.rc1 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.28.2 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.27.7 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.28.1 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.27.6 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.26.10 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.26.9 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.28.0 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.27.5 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.28.0.rc5 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.28.0.rc4 app/controllers/decidim/meetings/admin/registration_form_controller.rb