<%= t('upload_signed_pdf_file_to_validate_its_signature_') %>
| <%= t('name') %> | <%= t('valid_to') %> | <%= t('status') %> | |
|---|---|---|---|
| <%= item['name'] %> | <%= l(item['pkcs'].certificate.not_after.to_date, format: :long, locale: current_account.locale) %> | <% if item['status'] == 'default' %> <%= t('default') %> <% 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: t('make_default'), data: { turbo_confirm: t('are_you_sure_') } do %> <%= t('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: t('remove'), data: { turbo_confirm: t('are_you_sure_') } do %> <%= t('remove') %> <% end %> <% end %> |