adjust tempalte preferences

This commit is contained in:
Pete Matsyburka
2024-06-21 14:05:23 +03:00
parent 7616774613
commit d5bf54ee26
8 changed files with 85 additions and 16 deletions
@@ -1,5 +1,5 @@
<% if @email_config %>
<%= render 'custom_content', content: @email_config.value['body'], submitter: @submitter %>
<% if @body.present? %>
<%= render 'custom_content', content: @body, submitter: @submitter %>
<% else %>
<p>Hi there,</p>
<p>"<%= @submitter.submission.template.name %>" form has been completed by <%= @submitter.submission.submitters.order(:completed_at).map { |e| e.name || e.email || e.phone }.join(', ') %>.</p>