diff --git a/app/views/workflows/edit.html.erb b/app/views/workflows/edit.html.erb index b8405698b..7ee4555e6 100644 --- a/app/views/workflows/edit.html.erb +++ b/app/views/workflows/edit.html.erb @@ -17,7 +17,7 @@ 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 %> + <%= 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" %> Delete <%= @workflow.name %> <% end %> diff --git a/app/views/workflows/index.html.erb b/app/views/workflows/index.html.erb index 5f0717262..6726cb0dc 100644 --- a/app/views/workflows/index.html.erb +++ b/app/views/workflows/index.html.erb @@ -11,8 +11,6 @@ <% end %> -<%= turbo_frame_tag :workflows do %> -
- <%= render partial: "workflows/workflow", collection: @workflows %> -
-<% end %> +
+ <%= render partial: "workflows/workflow", collection: @workflows %> +
diff --git a/app/views/workflows/new.html.erb b/app/views/workflows/new.html.erb index 0009e46a4..2fc3e1de4 100644 --- a/app/views/workflows/new.html.erb +++ b/app/views/workflows/new.html.erb @@ -5,15 +5,13 @@

<%= @page_title %>

<% 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 %> +
+ <%= 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 %> -
-<% end %> + <%= link_to "Go back", workflows_path, data: { form_target: "cancel" }, hidden: true %> + <% end %> +