Files
docuseal/app/views/testing_api_settings/index.html.erb
T

19 lines
1.0 KiB
Plaintext
Raw Normal View History

<%= render 'shared/turbo_modal', title: t('test_mode') do %>
2024-01-20 23:53:14 +02:00
<div>
<label class="text-sm font-semibold" for="api_key">
2025-01-04 01:42:25 +02:00
X-Auth-Token
2024-01-20 23:53:14 +02:00
</label>
<div class="flex gap-2 mb-4 mt-2">
<input id="api_key" type="text" value="<%= current_user.access_token.token %>" class="base-input w-full" autocomplete="off" readonly>
2024-09-18 19:47:47 +03:00
<%= render 'shared/clipboard_copy', icon: 'copy', text: current_user.access_token.token, class: 'base-button', icon_class: 'w-6 h-6 text-white', copy_title: t('copy'), copied_title: t('copied') %>
2024-01-20 23:53:14 +02:00
</div>
</div>
<%= form_for @webhook_url, url: settings_webhooks_path, method: :post, html: { autocomplete: 'off' }, data: { turbo_frame: :_top } do |f| %>
<%= f.label :url, 'Webhook URL', class: 'text-sm font-semibold' %>
2024-01-20 23:53:14 +02:00
<div class="space-y-2 md:flex-nowrap mt-2">
<%= f.url_field :url, class: 'base-input w-full', placeholder: 'https://example.com/hook' %>
2024-09-18 19:47:47 +03:00
<%= f.button button_title(title: t('save'), disabled_with: t('saving')), class: 'base-button w-full' %>
2024-01-20 23:53:14 +02:00
</div>
<% end %>
<% end %>