allow to disable text signature via account prefs

This commit is contained in:
Pete Matsyburka
2023-12-02 16:26:34 +02:00
parent 489f9859be
commit c5d71505ef
12 changed files with 98 additions and 38 deletions
-13
View File
@@ -4,19 +4,6 @@
<div class="flex justify-between mb-4">
<h1 class="text-4xl font-bold">Team</h1>
<div class="flex items-center space-x-4">
<% if !Docuseal.multitenant? %>
<% account_config = AccountConfig.find_or_initialize_by(account: current_account, key: AccountConfig::FORCE_MFA) %>
<% if can?(:manage, account_config) %>
<%= form_for :force_mfa, url: mfa_force_path do |f| %>
<label for="force_mfa_value" class="flex items-center justify-between space-x-2 border py-2.5 px-3 rounded-md">
<span>
Force 2FA
</span>
<%= f.check_box :value, class: 'toggle', checked: account_config.value, onchange: 'this.form.requestSubmit()' %>
</label>
<% end %>
<% end %>
<% end %>
<% if can?(:create, User.new(account: current_account)) %>
<%= link_to new_user_path, class: 'btn btn-primary btn-md gap-2', data: { turbo_frame: 'modal' } do %>
<%= svg_icon('plus', class: 'w-6 h-6') %>