commit
3518ce2525
|
@ -178,6 +178,7 @@ 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'].nil?
|
||||||
if update_params['seminar_submission_values']['0']['value'].class==String
|
if update_params['seminar_submission_values']['0']['value'].class==String
|
||||||
value = update_params['seminar_submission_values']['0']['value']
|
value = update_params['seminar_submission_values']['0']['value']
|
||||||
if !value.to_s.blank?
|
if !value.to_s.blank?
|
||||||
|
@ -190,6 +191,9 @@ class SeminarsController < ApplicationController
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
flag = false
|
||||||
|
end
|
||||||
if flag
|
if flag
|
||||||
update_params['seminar_submission_values']['0']['value']['en'] = ' '
|
update_params['seminar_submission_values']['0']['value']['en'] = ' '
|
||||||
end
|
end
|
||||||
|
|
|
@ -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