Merge branch 'master' into 'master'

Fix delete upload bug.

See merge request spen/seminar!43
This commit is contained in:
chiu 2022-06-08 13:34:19 +00:00
commit d8935f160d
1 changed files with 5 additions and 5 deletions

View File

@ -70,11 +70,11 @@
<% end %>
<td>
<%= link_to t(:edit), prefix_url + '?method=edit_file&con_no=' + seminar_signup_contribute.id, :class => 'btn btn-primary' %>
<form method="post" action="<%= del_file_seminars_path %>">
<%= submit_tag t(:delete_), class: "btn btn-primary" %>
<input type="hidden" name="referer_url" value="<%= request.original_url.split(request.env["HTTP_HOST"]).last.split('?').first %>">
<input type="hidden" name="con_no" value="<%= seminar_signup_contribute.id %>">
</form>
<%= 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 %>
</td>
</tr>