_index_files.html.erb 334 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<h1>File Attachments for <%=@sample.name %></h1>

<h2>Delete Files</h2>
<p>
  <%= render 'samples/form_delete_files'%>
</p>

<h2>Add Files</h2>
<p>
  <%= form_with model: @sample do |f| %>
    <%= f.file_field :add_files, multiple: true %><br>
    <%= f.submit "Add Files",  data: { confirm: "Are you sure?" } %>
  <% end %>
</p>