<% @page_title = "New Webhook" %> <% content_for :header do %> <%= render "filters/menu", user_filtering: @user_filtering %>

<%= @page_title %>

<% end %>
<%= form_with model: @webhook, url: @webhook, method: :put, data: { controller: "form" }, html: { class: "flex flex-column gap align-center justify-starts" } do |form| %>

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

<%= form.label :actions %> <%= render "webhooks/form/actions", form: form %>
<%= form.button type: :submit, class: "btn btn--reversed center margin-block-start txt-medium" do %> Update Webhook <% end %> <%= link_to "Go back", webhooks_path, data: { form_target: "cancel" }, hidden: true %> <% end %>