From 50824d7932a96bfb38fdd1d5a32e109b5a1a32e6 Mon Sep 17 00:00:00 2001 From: Bohung Date: Wed, 8 Jun 2022 21:33:20 +0800 Subject: [PATCH] Fix delete upload bug. --- app/views/seminars/con_upload.html.erb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/seminars/con_upload.html.erb b/app/views/seminars/con_upload.html.erb index b753c40..d184fb4 100644 --- a/app/views/seminars/con_upload.html.erb +++ b/app/views/seminars/con_upload.html.erb @@ -70,11 +70,11 @@ <% end %> <%= link_to t(:edit), prefix_url + '?method=edit_file&con_no=' + seminar_signup_contribute.id, :class => 'btn btn-primary' %> -
- <%= submit_tag t(:delete_), class: "btn btn-primary" %> - "> - -
+ <%= form_with url: del_file_seminars_path, method: "post" do |f| %> + <%= f.submit_tag t(:delete_), class: "btn btn-primary" %> + <%= f.hidden_field_tag "referer_url", request.original_url.split(request.env["HTTP_HOST"]).last.split('?').first %> + <%= f.hidden_field_tag "con_no", seminar_signup_contribute.id %> + <% end %>