<% @page_title = "Create a new Workflow" %> <% content_for :header do %> <% end %> <%= turbo_frame_tag :workflows do %>
<%= form_with model: @workflow, url: workflows_path, data: { controller: "form" } do |form| %> <%= form.text_field :name, required: true, autofocus: true, class: "input txt-large", placeholder: "Name your Workflow…", data: { action: "keydown.esc@document->form#cancel" } %> <%= form.button type: :submit, class: "btn btn--reversed center margin-block-start txt-large" do %> <%= icon_tag "check" %> Create Workflow <% end %> <%= link_to "Go back", workflows_path, data: { form_target: "cancel", turbo_frame: "_top" }, hidden: true %> <% end %>
<% end %>