|
|
|
@ -256,10 +256,20 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-control mt-6 pb-2">
|
|
|
|
<% end %>
|
|
|
|
<%= f.button button_title(title: t('save'), disabled_with: t('updating')), class: 'base-button' %>
|
|
|
|
<%= form_for @template, url: template_preferences_path(@template), method: :post, html: { autocomplete: 'off', class: 'mt-2' }, data: { close_on_submit: false } do |f| %>
|
|
|
|
|
|
|
|
<div class="flex items-center pt-4 mt-4 justify-between border-t w-full">
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
<%= t('enforce_recipients_order') %>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<%= f.fields_for :preferences, Struct.new(:submitters_order).new(@template.preferences['submitters_order']) do |ff| %>
|
|
|
|
|
|
|
|
<%= ff.check_box :submitters_order, { class: 'toggle', onchange: 'this.form.requestSubmit()' }, 'preserved', '' %>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div class="form-control mt-5 pb-2">
|
|
|
|
|
|
|
|
<%= button_tag button_title(title: t('save'), disabled_with: t('updating')), class: 'base-button', form: :submitters_form %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% if show_api %>
|
|
|
|
<% if show_api %>
|
|
|
|
@ -285,7 +295,7 @@
|
|
|
|
<%= render 'templates_code_modal/placeholder' %>
|
|
|
|
<%= render 'templates_code_modal/placeholder' %>
|
|
|
|
<%= render 'templates/embedding', template: @template %>
|
|
|
|
<%= render 'templates/embedding', template: @template %>
|
|
|
|
<% if can?(:manage, TemplateSharing.new(template: @template)) %>
|
|
|
|
<% if can?(:manage, TemplateSharing.new(template: @template)) %>
|
|
|
|
<%= form_for '', url: template_sharings_testing_index_path, method: :post, html: { class: 'mt-1' } do |f| %>
|
|
|
|
<%= form_for '', url: template_sharings_testing_index_path, method: :post, html: { class: 'mt-1' }, data: { close_on_submit: false } do |f| %>
|
|
|
|
<%= f.hidden_field :template_id, value: @template.id %>
|
|
|
|
<%= f.hidden_field :template_id, value: @template.id %>
|
|
|
|
<div class="flex items-center justify-between">
|
|
|
|
<div class="flex items-center justify-between">
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
|