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/targets/_edit_form.html.erb
cryptogopher bea0a8371d WIP Targets #edit/#update
NestedUniqueness properly restores collection.target
2021-04-23 19:19:44 +02:00

16 lines
481 B
Plaintext

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