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_child_form.html.erb
2020-02-19 21:24:17 +01:00

16 lines
440 B
Plaintext

<%= labelled_form_for @quantity,
url: create_child_quantity_path(@parent_quantity),
remote: true,
html: {id: 'new-child-form', name: 'new-child-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: '$(this).closest("tr").remove(); return false;' %>
</p>
</div>
<% end %>