class Decidim::Meetings::Admin::RegistrationFormController

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

def after_update_url

def after_update_url
  edit_meeting_registrations_path(meeting_id: meeting.id)
end

def edit_questions_template

def edit_questions_template
  "decidim/meetings/admin/registration_form/edit_questions"
end

def i18n_questions_flashes_scope

def i18n_questions_flashes_scope
  "decidim.forms.admin.questionnaires"
end

def meeting

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

def public_url

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

def questionnaire_for

def questionnaire_for
  meeting
end

def update_url

def update_url
  meeting_registrations_form_path(meeting_id: meeting.id)
end