Class: Decidim::Meetings::Admin::RegistrationFormController

Inherits:
ApplicationController
  • Object
show all
Includes:
Forms::Admin::Concerns::HasQuestionnaire
Defined in:
app/controllers/decidim/meetings/admin/registration_form_controller.rb

Overview

This controller allows an admin to manage the form to be filled when an user joins the meeting

Instance Method Summary collapse

Methods inherited from ApplicationController

#maps_enabled?, #meetings

Instance Method Details

#after_update_urlObject



18
19
20
# File 'app/controllers/decidim/meetings/admin/registration_form_controller.rb', line 18

def after_update_url
  edit_meeting_registrations_path(meeting_id: meeting.id)
end

#public_urlObject



22
23
24
# File 'app/controllers/decidim/meetings/admin/registration_form_controller.rb', line 22

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

#questionnaire_forObject



10
11
12
# File 'app/controllers/decidim/meetings/admin/registration_form_controller.rb', line 10

def questionnaire_for
  meeting
end

#update_urlObject



14
15
16
# File 'app/controllers/decidim/meetings/admin/registration_form_controller.rb', line 14

def update_url
  meeting_registrations_form_path(meeting_id: meeting.id)
end