forked from spen/seminar
Merge branch 'master' into 'master'
Fix delete upload bug. See merge request spen/seminar!43
This commit is contained in:
commit
d8935f160d
|
@ -70,11 +70,11 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
<td>
|
<td>
|
||||||
<%= link_to t(:edit), prefix_url + '?method=edit_file&con_no=' + seminar_signup_contribute.id, :class => 'btn btn-primary' %>
|
<%= 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 %>">
|
<%= form_with url: del_file_seminars_path, method: "post" do |f| %>
|
||||||
<%= submit_tag t(:delete_), class: "btn btn-primary" %>
|
<%= f.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 %>">
|
<%= f.hidden_field_tag "referer_url", request.original_url.split(request.env["HTTP_HOST"]).last.split('?').first %>
|
||||||
<input type="hidden" name="con_no" value="<%= seminar_signup_contribute.id %>">
|
<%= f.hidden_field_tag "con_no", seminar_signup_contribute.id %>
|
||||||
</form>
|
<% end %>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in New Issue