<%= render 'shared/settings_nav' %>

PDF Signature

Upload signed PDF file to validate its signature:

<%= form_for '', url: verify_pdf_signature_index_path, method: :post, html: { enctype: 'multipart/form-data' } do |f| %> <%= f.button type: 'submit', class: 'flex' do %>
<%= svg_icon('loader', class: 'w-5 h-5 animate-spin inline') %> Analyzing...
<% end %> <% end %>

Signing Certificates

<% if can?(:create, @encrypted_config) %> <%= link_to new_settings_esign_path, class: 'btn btn-primary btn-md', data: { turbo_frame: 'modal' } do %> <%= svg_icon('plus', class: 'w-6 h-6') %> Upload Cert <% end %> <% end %>
<%= render 'alert' %>
<% @pkcs_list.each do |item| %> <% end %>
Name Valid To Status
<%= item['name'] %> <%= l(item['pkcs'].certificate.not_after.to_date, format: :long, locale: current_account.locale) %> <% if item['status'] == 'default' %> <%= item['status'] %> <% elsif can?(:update, @encrypted_config) %> <%= button_to settings_esign_path, method: :put, params: { name: item['name'] }, class: 'btn btn-outline btn-neutral btn-xs whitespace-nowrap', title: 'Delete', data: { turbo_confirm: 'Are you sure?' } do %> Make Default <% end %> <% end %> <% if item['name'] != EsignSettingsController::DEFAULT_CERT_NAME && item['status'] != 'default' && can?(:destroy, @encrypted_config) %> <%= button_to settings_esign_path, params: { name: item['name'] }, method: :delete, class: 'btn btn-outline btn-error btn-xs', title: 'Delete', data: { turbo_confirm: 'Are you sure?' } do %> Remove <% end %> <% end %>
<% encrypted_config = EncryptedConfig.find_or_initialize_by(account: current_account, key: EncryptedConfig::TIMESTAMP_SERVER_URL_KEY) %> <% if !Docuseal.multitenant? && can?(:manage, encrypted_config) %>

Timestamp Server

<%= form_for encrypted_config, url: timestamp_server_index_path, method: :post, html: { autocomplete: 'off', class: 'space-y-4' } do |f| %>
<%= f.label :value, class: 'label' do %> Timeserver URL <%= svg_icon('info_circle', class: 'w-4 h-4') %> <% end %> <%= f.url_field :value, autocomplete: 'off', class: 'base-input', placeholder: 'URL (optional)' %>
<%= f.button button_title(title: 'Save', disabled_with: 'Updating'), class: 'base-button' %>
<% end %>
<% end %> <% account_config = AccountConfig.where(account: current_account, key: AccountConfig::ESIGNING_PREFERENCE_KEY).first_or_initialize(value: 'single') %> <% if can?(:manage, account_config) %>

Preferences

<% if can?(:manage, account_config) %> <%= form_for account_config, url: account_configs_path, method: :post do |f| %> <%= f.hidden_field :key %>
Apply multiple PDF digital signatures in the document per each signer <%= f.check_box :value, { class: 'toggle', checked: account_config.value == 'multiple', onchange: 'this.form.requestSubmit()' }, 'multiple', 'single' %>
<% end %> <% end %> <% account_config = AccountConfig.find_or_initialize_by(account: current_account, key: AccountConfig::FLATTEN_RESULT_PDF_KEY) %> <% if can?(:manage, account_config) %> <%= form_for account_config, url: account_configs_path, method: :post do |f| %> <%= f.hidden_field :key %>
Remove PDF form fillable fields from the signed PDF (flatten form) <%= f.check_box :value, { class: 'toggle', checked: account_config.value != false, onchange: 'this.form.requestSubmit()' } %>
<% end %> <% end %>
<% end %>