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

21 lines
582 B
Plaintext

<div id="import-foods" style="display:none;">
<h2><%= t ".heading_import_foods" %></h2>
<%= form_tag import_project_foods_path(@project),
id: 'import-form', name: 'import-form', multipart: true do %>
<div class="box tabular">
<p>
<label><%= t ".label_import_select_csv_file" %></label>
<%= file_field_tag 'file' %>
</p>
<p>
<%= t ".import_hints" %>
</p>
</div>
<%= submit_tag l(:button_import) %>
<%= link_to l(:button_cancel), "#", onclick: '$("#import-foods").hide(); return false;' %>
<% end %>
<hr>
</div>