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/measurements/_new_form.html.erb
2021-05-06 21:52:35 +02:00

20 lines
585 B
Plaintext

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