mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
847 B
20 lines
847 B
<%= render 'shared/turbo_modal', title: 'Webhook Secret' do %>
|
|
<%= form_for @encrypted_config, url: webhook_secret_index_path, method: :post, html: { class: 'space-y-4' }, data: { turbo_frame: :_top } do |f| %>
|
|
<div class="space-y-2">
|
|
<%= f.fields_for :value, Struct.new(:key, :value).new(*@encrypted_config.value.to_a.first) do |ff| %>
|
|
<div class="form-control">
|
|
<%= ff.label :key, class: 'label' %>
|
|
<%= ff.text_field :key, class: 'base-input', placeholder: 'X-Example-Header' %>
|
|
</div>
|
|
<div class="form-control">
|
|
<%= ff.label :value, class: 'label' %>
|
|
<%= ff.text_field :value, class: 'base-input' %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
<div class="form-control pt-2">
|
|
<%= f.button button_title, class: 'base-button' %>
|
|
</div>
|
|
<% end %>
|
|
<% end %>
|