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/_new_form.html.erb
cryptogopher 8e8160c41a Renamed Ingredient -> Food
Ingredient is now part of composition (meal/recipe/dish)
2020-04-14 19:44:19 +02:00

19 lines
461 B
Plaintext

<h2><%= t ".heading_new_food" %></h2>
<%= labelled_form_for @food,
url: project_foods_path(@project, view: view),
remote: true,
html: {id: 'new-food-form', name: 'new-food-form'} do |f| %>
<%= render partial: 'foods/form', locals: {f: f} %>
<div class="tabular">
<p>
<%= submit_tag l(:button_create) %>
<%= link_to l(:button_cancel), "#",
onclick: '$("#new-food").empty(); return false;' %>
</p>
</div>
<% end %>
<hr>