<%= workflow.name %>
<% end %> + + <%= button_to workflow_path(workflow), method: :delete, class: "btn txt-small borderless txt-subtle", + data: { turbo_frame: "_top", turbo_confirm: "Are you sure you want to delete this Workflow? #{ dependent_collections_sentence(workflow) }" }, + form: { class: "flex-item-justify-end" } do %> + <%= icon_tag "trash" %> + Delete <%= workflow.name %> + <% end %> <% end %>- <%= form.text_field :name, required: true, autofocus: true, class: "input full-width", style: "--input-padding: 0.2em 0.5em;", data: { action: "keydown.esc@document->form#cancel" } %> + <%= form.text_field :name, required: true, autofocus: true, class: "input full-width", + style: "--input-padding: 0.2em 0.5em;", data: { action: "keydown.esc@document->form#cancel focus->form#select" } %>
<%= link_to "Cancel", workflow_path(@workflow), data: { form_target: "cancel", turbo_frame: dom_id(@workflow) }, hidden: true %> <% end %> @@ -16,10 +17,5 @@ <%= icon_tag "remove-med" %> Cancel <% end %> - - <%= button_to workflow_path(@workflow), method: :delete, class: "btn txt-small btn--negative", data: { turbo_frame: :workflows, turbo_confirm: "Are you sure you want to delete this workflow?" } do %> - <%= icon_tag "minus" %> - Delete <%= @workflow.name %> - <% end %>+ Workflows are for organizing Cards you're working on into stages. +
++ <%= link_to new_workflow_path, class: "btn btn--link" do %> + <%= icon_tag "add" %> + Create a new workflow + <% end %> +
+