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

20 lines
751 B
Plaintext

<style>
hr.dashed_style{
border-style: dashed;
}
</style>
<% email_set = ApplicationFormMain.find(@data['application_form_id']).application_form_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('application_form.email_submission_content') %>
<% end %>
<hr class="dashed_style">
<%= t('application_form.please_click_the_link_below_directly') %>
<% ['agree', 'disagree'].each do |c| %>
<h4><a href="<%= @data['agree_link'] + "&type=#{c}" %>"><%= t("application_form.link_choice.#{c}") %></a></h4>
<% end %>
<hr class="dashed_style">
<%= (@data['extra_text'] rescue "").to_s.html_safe %>