|
|
|
|
@ -69,7 +69,7 @@
|
|
|
|
|
<%= f.label :message, t('body'), class: 'label' %>
|
|
|
|
|
<% body_variables = AccountConfig::EMAIL_VARIABLES[AccountConfig::SUBMITTER_INVITATION_EMAIL_KEY] %>
|
|
|
|
|
<%= render 'personalization_settings/email_body_editor', name: f.field_name(:body), value: local_assigns[:submitter_email_message]&.normalized_body.presence || (is_edit_viewer ? view_template_body : nil) || submitter_preferences_index.dig(local_assigns[:submitter]&.uuid, 'request_email_body').presence || (is_edit_viewer ? view_config.value['body'] : default_body), variables: body_variables %>
|
|
|
|
|
<% if !local_assigns.fetch(:disable_save_as_default_template_option, false) && config.value['body_type'] != 'html' %>
|
|
|
|
|
<% if !local_assigns.fetch(:disable_save_as_default_template_option, false) && config.value['body_type'] != 'html' && template && can?(:update, template) %>
|
|
|
|
|
<label for="<%= uuid = SecureRandom.uuid %>" class="flex items-center cursor-pointer">
|
|
|
|
|
<%= check_box_tag :save_message, id: uuid, class: 'base-checkbox', checked: false %>
|
|
|
|
|
<span class="label"><%= t('save_as_default_template_message') %></span>
|
|
|
|
|
|