This frame is unnecessary, just redirect
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
<span class="for-screen-reader">Cancel</span>
|
||||
<% 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 %>
|
||||
<%= 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 %>
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%= turbo_frame_tag :workflows do %>
|
||||
<section class="center justify-center flex flex-wrap gap">
|
||||
<%= render partial: "workflows/workflow", collection: @workflows %>
|
||||
</section>
|
||||
<% end %>
|
||||
<section class="center justify-center flex flex-wrap gap">
|
||||
<%= render partial: "workflows/workflow", collection: @workflows %>
|
||||
</section>
|
||||
|
||||
@@ -5,15 +5,13 @@
|
||||
<h1 class="header__title"><%= @page_title %></h1>
|
||||
<% end %>
|
||||
|
||||
<%= turbo_frame_tag :workflows do %>
|
||||
<article class="panel center margin-block-start flex flex-column gap" style="view-transition-name: <%= dom_id(@workflow) %>">
|
||||
<%= 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" %>
|
||||
<span class="for-screen-reader">Create Workflow</span>
|
||||
<% end %>
|
||||
<%= link_to "Go back", workflows_path, data: { form_target: "cancel", turbo_frame: "_top" }, hidden: true %>
|
||||
<article class="panel center margin-block-start flex flex-column gap" style="view-transition-name: <%= dom_id(@workflow) %>">
|
||||
<%= 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" %>
|
||||
<span class="for-screen-reader">Create Workflow</span>
|
||||
<% end %>
|
||||
</article>
|
||||
<% end %>
|
||||
<%= link_to "Go back", workflows_path, data: { form_target: "cancel" }, hidden: true %>
|
||||
<% end %>
|
||||
</article>
|
||||
|
||||
Reference in New Issue
Block a user