Move delete to a more obvious place
This commit is contained in:
@@ -5,6 +5,13 @@
|
||||
<%= link_to edit_workflow_path(workflow) do %>
|
||||
<h3 class="txt-large txt-nowrap margin-none overflow-ellipsis"><%= workflow.name %></h3>
|
||||
<% 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?" },
|
||||
form: { class: "flex-item-justify-end" } do %>
|
||||
<%= icon_tag "trash" %>
|
||||
<span class="for-screen-reader">Delete <%= workflow.name %></span>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -16,10 +16,5 @@
|
||||
<%= icon_tag "remove-med" %>
|
||||
<span class="for-screen-reader">Cancel</span>
|
||||
<% end %>
|
||||
|
||||
<%= button_to workflow_path(@workflow), method: :delete, class: "btn txt-small btn--negative", data: { turbo_frame: "_top", turbo_confirm: "Are you sure you want to delete this workflow?" } do %>
|
||||
<%= icon_tag "minus" %>
|
||||
<span class="for-screen-reader">Delete <%= @workflow.name %></span>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user