2020-01-27 14:30:23 +00:00
|
|
|
class OlympiamanagementsController < ApplicationController
|
2020-01-31 13:46:35 +00:00
|
|
|
def initialize
|
|
|
|
super
|
|
|
|
@app_title = "olympiamanagement"
|
|
|
|
end
|
2020-01-22 14:03:38 +00:00
|
|
|
def index
|
2020-01-31 13:46:35 +00:00
|
|
|
uid = OrbitHelper.params[:uid] rescue ""
|
|
|
|
tags = OrbitHelper.widget_tags
|
|
|
|
categories = OrbitHelper.widget_categories || []
|
|
|
|
@sign_up_setting = SignUpSetting.last
|
|
|
|
@olympiamanagement_instruction = @sign_up_setting.registration_instructions[I18n.locale.to_s].to_s
|
|
|
|
@sign_up_setting.attributes.to_h.each do |key,value|
|
|
|
|
@olympiamanagement_instruction = @olympiamanagement_instruction.gsub("{{#{key}}}",value.to_s)
|
|
|
|
end
|
|
|
|
{
|
|
|
|
"olympiamanagement" => [],
|
|
|
|
"extras"=>{"instructions"=> @olympiamanagement_instruction}
|
|
|
|
}
|
2020-01-22 14:03:38 +00:00
|
|
|
end
|
|
|
|
def widget
|
2020-01-31 13:46:35 +00:00
|
|
|
uid = OrbitHelper.params[:uid] rescue ""
|
|
|
|
tags = OrbitHelper.widget_tags
|
|
|
|
categories = OrbitHelper.widget_categories || []
|
|
|
|
@sign_up_setting = SignUpSetting.last
|
|
|
|
@olympiamanagement_instruction = @sign_up_setting.registration_instructions[I18n.locale.to_s].to_s
|
|
|
|
@sign_up_setting.attributes.to_h.each do |key,value|
|
|
|
|
@olympiamanagement_instruction = @olympiamanagement_instruction.gsub("{{#{key}}}",value.to_s)
|
|
|
|
end
|
|
|
|
{
|
|
|
|
"olympiamanagement" => [],
|
|
|
|
"extras"=>{"instructions"=> @olympiamanagement_instruction}
|
|
|
|
}
|
|
|
|
end
|
|
|
|
def updata_school_data
|
|
|
|
#render :html => '123'
|
|
|
|
end
|
|
|
|
def updata_student_data
|
|
|
|
#render :html => '123'
|
2020-01-22 14:03:38 +00:00
|
|
|
end
|
|
|
|
end
|