Sha256: e1392f17076629bca81edcf7427de88bb6ef1a0ef8399fe2f7a01e0ee299ad48

Contents?: true

Size: 762 Bytes

Versions: 13

Compression:

Stored size: 762 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

        private

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-meetings-0.22.0 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.21.0 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.20.1 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.20.0 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.19.1 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.18.1 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.19.0 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.17.2 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.18.0 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.17.1 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.16.1 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.17.0 app/controllers/decidim/meetings/admin/registration_form_controller.rb
decidim-meetings-0.16.0 app/controllers/decidim/meetings/admin/registration_form_controller.rb