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/quantities/_new_form.html.erb
cryptogopher b7b7401833 Updated Quantity to use Formula
and upgraded controller actions to match Measurement/Ingredient
2020-02-19 17:57:29 +01:00

19 lines
479 B
Plaintext

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