Application_Form/app/views/email/edit_file_email.html.erb

8 lines
363 B
Plaintext

<% email_set = ApplicationFormMain.where(id:@data['application_form_id']).first.application_form_email_sets.select{|v| v.field_name == 'edit_file'} %>
<% if email_set.length != 0 %>
<% if !(email_set[0].content.nil?) %>
<%= email_set[0].content[@data['locale']].html_safe %>
<% end %>
<% else %>
<%= t('application_form.email_edit_file_content') %>
<% end %>