forked from spen/seminar
commit
3518ce2525
|
@ -178,17 +178,21 @@ class SeminarsController < ApplicationController
|
||||||
update_params = seminar_signup_contribute_params.merge('seminar_submission_values'=>params['seminar_submission_values'])
|
update_params = seminar_signup_contribute_params.merge('seminar_submission_values'=>params['seminar_submission_values'])
|
||||||
flag = true
|
flag = true
|
||||||
update_params.permit!
|
update_params.permit!
|
||||||
if update_params['seminar_submission_values']['0']['value'].class==String
|
if !update_params['seminar_submission_values'].nil?
|
||||||
value = update_params['seminar_submission_values']['0']['value']
|
if update_params['seminar_submission_values']['0']['value'].class==String
|
||||||
if !value.to_s.blank?
|
value = update_params['seminar_submission_values']['0']['value']
|
||||||
flag = false
|
if !value.to_s.blank?
|
||||||
end
|
|
||||||
else
|
|
||||||
update_params['seminar_submission_values']['0']['value'].each do |key,value|
|
|
||||||
if !value.to_s.blank?
|
|
||||||
flag = false
|
flag = false
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
update_params['seminar_submission_values']['0']['value'].each do |key,value|
|
||||||
|
if !value.to_s.blank?
|
||||||
|
flag = false
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
flag = false
|
||||||
end
|
end
|
||||||
if flag
|
if flag
|
||||||
update_params['seminar_submission_values']['0']['value']['en'] = ' '
|
update_params['seminar_submission_values']['0']['value']['en'] = ' '
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
wb = xlsx_package.workbook
|
wb = xlsx_package.workbook
|
||||||
|
|
||||||
wb.add_worksheet(name: @seminar.title) do |sheet|
|
wb.add_worksheet(name: (@seminar.title.to_s[0..27]+'...')) do |sheet|
|
||||||
|
|
||||||
row = [t('seminar_signup.signup_time')]
|
row = [t('seminar_signup.signup_time')]
|
||||||
|
|
||||||
|
|
|
@ -80,7 +80,7 @@
|
||||||
</div>
|
</div>
|
||||||
<% elsif field_set.field_name== 'status' %>
|
<% elsif field_set.field_name== 'status' %>
|
||||||
<%= t("seminar.registration_status_#{seminar_signup.status}") if !seminar_signup.status.blank? %>
|
<%= t("seminar.registration_status_#{seminar_signup.status}") if !seminar_signup.status.blank? %>
|
||||||
<% else %>
|
<% elsif field_set.field_name != 'recaptcha' %>
|
||||||
<%= seminar_signup.send("#{field_set.field_name}") %>
|
<%= seminar_signup.send("#{field_set.field_name}") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in New Issue