|
|
|
@ -8,12 +8,18 @@
|
|
|
|
<div class="collapse-content">
|
|
|
|
<div class="collapse-content">
|
|
|
|
<%= form_for AccountConfigs.find_or_initialize_for_key(current_account, AccountConfig::SUBMITTER_INVITATION_EMAIL_KEY), url: settings_personalization_path, method: :post, html: { autocomplete: 'off', class: 'space-y-4' } do |f| %>
|
|
|
|
<%= form_for AccountConfigs.find_or_initialize_for_key(current_account, AccountConfig::SUBMITTER_INVITATION_EMAIL_KEY), url: settings_personalization_path, method: :post, html: { autocomplete: 'off', class: 'space-y-4' } do |f| %>
|
|
|
|
<%= f.hidden_field :key %>
|
|
|
|
<%= f.hidden_field :key %>
|
|
|
|
<%= f.fields_for :value, Struct.new(:subject, :body).new(*f.object.value.values_at('subject', 'body')) do |ff| %>
|
|
|
|
<%= f.fields_for :value, Struct.new(:subject, :body, :reply_to).new(*f.object.value.values_at('subject', 'body', 'reply_to')) do |ff| %>
|
|
|
|
<div class="form-control">
|
|
|
|
<div class="form-control">
|
|
|
|
<%= ff.label :subject, t('subject'), class: 'label' %>
|
|
|
|
<%= ff.label :subject, t('subject'), class: 'label' %>
|
|
|
|
<%= ff.text_field :subject, required: true, class: 'base-input', dir: 'auto' %>
|
|
|
|
<%= ff.text_field :subject, required: true, class: 'base-input', dir: 'auto' %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<%= render 'personalization_settings/email_body_field', ff:, config: f.object %>
|
|
|
|
<%= render 'personalization_settings/email_body_field', ff:, config: f.object %>
|
|
|
|
|
|
|
|
<% if can?(:manage, :reply_to) || can?(:manage, :personalization_advanced) %>
|
|
|
|
|
|
|
|
<div class="form-control">
|
|
|
|
|
|
|
|
<%= ff.label :reply_to, t('reply_to'), class: 'label' %>
|
|
|
|
|
|
|
|
<%= ff.email_field :reply_to, class: 'base-input', dir: 'auto', placeholder: t(:email) %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<div class="form-control pt-2">
|
|
|
|
<div class="form-control pt-2">
|
|
|
|
<%= f.button button_title(title: t('save'), disabled_with: t('saving')), class: 'base-button' %>
|
|
|
|
<%= f.button button_title(title: t('save'), disabled_with: t('saving')), class: 'base-button' %>
|
|
|
|
|