1
0
This repository has been archived on 2023-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
body_tracking/app/views/foods/_edit_form.html.erb
2020-04-20 22:56:05 +02:00

16 lines
429 B
Plaintext

<%= labelled_form_for @food,
url: food_path(@food, view: view),
method: :patch, remote: true,
html: {id: 'edit-food-form', name: 'edit-food-form'} do |f| %>
<%= render partial: 'foods/form', locals: {f: f} %>
<div class="tabular">
<p>
<%= submit_tag l(:button_save) %>
<%= link_to l(:button_cancel), "#",
onclick: '$(this).closest("tr").remove(); return false;' %>
</p>
</div>
<% end %>