seminar2_old/app/views/email/submission_email.html.erb

9 lines
379 B
Plaintext
Raw Normal View History

2020-01-12 06:39:32 +00:00
<% email_set = SeminarMain.where(id:@data['seminar_id']).first.seminar_email_sets.select{|v| v.field_name == 'submission'} %>
<% if email_set.length != 0 %>
<% if !(email_set[0].content.nil?) %>
<%= email_set[0].content[@data['locale']].html_safe %>
<% end %>
<% else %>
<%= t('seminar.email_submission_content') %>
2021-03-29 14:27:08 +00:00
<% end %>
<%= (@data['extra_text'] rescue "").html_safe %>