<% @page_title = @webhook.name %> <% content_for :header do %> <%= render "filters/menu" %>
<%= link_to @webhook, class: "btn borderless txt-medium", data: { controller: "hotkey", action: "keydown.esc@document->hotkey#click" } do %> <%= @page_title %> <% end %>
<% end %>
<%= form_with model: @webhook, url: @webhook, method: :put, data: { controller: "form" }, html: { class: "flex flex-column gap" } do |form| %>

<%= form.text_field :name, required: true, autofocus: true, class: "input full-width", placeholder: "Name your Webhook…", data: { action: "keydown.esc@document->form#cancel" } %>

<%= form.label :actions do %> Events

Trigger a call to the Payload URL when these things occur:

<% end %> <%= render "webhooks/form/actions", form: form %>
<%= form.button type: :submit, class: "btn btn--link center txt-medium" do %> Save Changes <% end %> <%= link_to "Go back", collection_webhooks_path, data: { form_target: "cancel" }, hidden: true %> <% end %>