add combine pdf toggle

This commit is contained in:
Pete Matsyburka
2024-08-23 23:46:22 +03:00
parent 66c44f8ff5
commit b6f307690d
13 changed files with 50 additions and 16 deletions
+12
View File
@@ -123,6 +123,18 @@
</div>
<% end %>
<% end %>
<% account_config = AccountConfig.find_or_initialize_by(account: current_account, key: AccountConfig::COMBINE_PDF_RESULT_KEY) %>
<% if can?(:manage, account_config) %>
<%= 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>
Combine completed documents and Audit Log
</span>
<%= f.check_box :value, class: 'toggle', checked: account_config.value, onchange: 'this.form.requestSubmit()' %>
</div>
<% end %>
<% end %>
</div>
<% end %>
<%= render 'integrations' %>