Class: Decidim::Meetings::Admin::RegistrationFormController
- Inherits:
-
ApplicationController
- Object
- Admin::Components::BaseController
- ApplicationController
- Decidim::Meetings::Admin::RegistrationFormController
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
#maps_enabled?, #meetings
Instance Method Details
#after_update_url ⇒ Object
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_url ⇒ Object
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_for ⇒ Object
10
11
12
|
# File 'app/controllers/decidim/meetings/admin/registration_form_controller.rb', line 10
def questionnaire_for
meeting
end
|
#update_url ⇒ Object
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
|