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

Inherits:
ApplicationController show all
Includes:
Forms::Admin::Concerns::HasQuestionnaire
Defined in:
decidim-meetings/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

Methods inherited from Admin::Components::BaseController

#current_component, #current_participatory_space, #parent_path, #permission_class_chain, #permission_scope, #permissions_context, #skip_manage_component_permission

Methods included from RegistersPermissions

register_permissions

Methods inherited from Admin::ApplicationController

#permission_class_chain, #permission_scope, #user_has_no_permission_path, #user_not_authorized_path

Methods included from HttpCachingDisabler

#disable_http_caching

Methods included from NeedsSnippets

#snippets

Methods included from NeedsOrganization

enhance_controller, extended, included

Instance Method Details

#after_update_urlObject


18
19
20
# File 'decidim-meetings/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 'decidim-meetings/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 'decidim-meetings/app/controllers/decidim/meetings/admin/registration_form_controller.rb', line 10

def questionnaire_for
  meeting
end

#update_urlObject


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

def update_url
  meeting_registrations_form_path(meeting_id: meeting.id)
end