diff --git a/app/controllers/admin/seminars_controller.rb b/app/controllers/admin/seminars_controller.rb index 6c16491..f06b862 100644 --- a/app/controllers/admin/seminars_controller.rb +++ b/app/controllers/admin/seminars_controller.rb @@ -332,8 +332,8 @@ class Admin::SeminarsController < OrbitAdminController seminar_signup_set_params = seminar_main_params['seminar_signup_field_sets'] seminar_submission_set_params = seminar_main_params['seminar_submission_field_sets'] seminar_email_sets_params = seminar_main_params['seminar_email_sets'] - seminar_signup_field_customs_params = seminar_main_params["seminar_signup_field_customs"].to_hash - seminar_main_params["seminar_signup_field_customs"].each do |k,v| + seminar_signup_field_customs_params = seminar_main_params["seminar_signup_field_customs"].to_h rescue {} + seminar_main_params["seminar_signup_field_customs"].to_h.each do |k,v| v.delete "title" end seminar_main_params.delete(:seminar_signup_field_sets) @@ -533,6 +533,9 @@ class Admin::SeminarsController < OrbitAdminController end def set_seminar_signup_admin_setting page = params[:type] || params[:page] + if params[:action] == "seminar_signup" + page = params[:type] + end page = nil if page.blank? @seminar_signup_admin_setting = SeminarSignupAdminSetting.where(:seminar_main_id=>params[:id],:page=>page).first if @seminar_signup_admin_setting.nil? diff --git a/app/views/admin/seminars/_seminar_signup_render_table.html.erb b/app/views/admin/seminars/_seminar_signup_render_table.html.erb index e8f7001..cfc0758 100644 --- a/app/views/admin/seminars/_seminar_signup_render_table.html.erb +++ b/app/views/admin/seminars/_seminar_signup_render_table.html.erb @@ -118,7 +118,7 @@
<%= trans %> | - <% end %> -|
---|---|
- <% if val[0].class == SeminarSignupContribute #File %> - <% seminar_signup_contribute = val[0] %> - <%= link_to (seminar_signup_contribute.title.blank? ? File.basename(seminar_signup_contribute.file.path) : seminar_signup_contribute.title) , seminar_signup_contribute.file.url, {:target => '_blank', :title => Nokogiri::HTML(seminar_signup_contribute.description).text} if seminar_signup_contribute.file.file %> - <% else %> - <%= val[0].html_safe.to_s rescue "" %> - <% end %> - | - <% else %> -><%= val.to_s.html_safe %> | - <% end %> - <% end %> - <% (0...count).each do |i|%> -
- <% if vals[index][i].class == SeminarSignupContribute #File %> - <% seminar_signup_contribute = vals[index][i] %> - <%= link_to (seminar_signup_contribute.title.blank? ? File.basename(seminar_signup_contribute.file.path) : seminar_signup_contribute.title) , seminar_signup_contribute.file.url, {:target => '_blank', :title => Nokogiri::HTML(seminar_signup_contribute.description).text} if seminar_signup_contribute.file.file %> - <% else %> - <%= vals[index][i].html_safe.to_s rescue "" %> - <% end %> - | - <% end %> -