<%= 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

<%= 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 %>
<%= 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'] %> <% else %> <%= 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' %> <%= 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 %>