Files
docuseal/app/views/personalization_settings/_form_toggle_options.html.erb
T

17 lines
709 B
Plaintext
Raw Normal View History

2024-03-09 23:29:59 +02:00
<% account_config = AccountConfig.where(account: current_account, key: AccountConfig::FORM_WITH_CONFETTI_KEY).first_or_initialize(value: true) %>
<% if can?(:manage, account_config) %>
<div class="px-1 mt-2">
<%= form_for account_config, url: account_configs_path, method: :post do |f| %>
<%= f.hidden_field :key %>
<div class="flex items-center justify-between py-2.5">
<span>
2024-09-18 19:47:47 +03:00
<%= t('show_confetti_on_successful_completion') %>
2024-03-09 23:29:59 +02:00
</span>
2025-09-24 12:07:54 +03:00
<submit-form data-on="change" class="flex">
<%= f.check_box :value, { class: 'toggle', checked: account_config.value != false }, '1', '0' %>
</submit-form>
2024-03-09 23:29:59 +02:00
</div>
<% end %>
</div>
<% end %>