OSDN Git Service

add files
[pettanr/pettanr.git] / app / views / system_pictures / list.html.erb
diff --git a/app/views/system_pictures/list.html.erb b/app/views/system_pictures/list.html.erb
new file mode 100644 (file)
index 0000000..42eaf5d
--- /dev/null
@@ -0,0 +1,34 @@
+<h1>Listing system_pictures</h1>
+
+<%= form_tag( {:action => "create"} , { :multipart => true }) do %>
+  <label for="file">File to Upload</label> <%= file_field_tag "system_picture[file]" %>
+  <%= submit_tag 'upload' -%>
+<% end -%>
+
+<table>
+  <tr>
+    <th>id</th>
+    <th>Ext</th>
+    <th>Width</th>
+    <th>Height</th>
+    <th>filesize</th>
+    <th>created_at</th>
+    <th>updated_at</th>
+    <th></th>
+  </tr>
+
+<% @system_pictures.each do |system_picture| %>
+  <tr>
+    <td><%= link_to system_picture.id, :action => :browse, :id => system_picture.id %></td>
+    <td><%= system_picture.ext %></td>
+    <td><%= system_picture.width %></td>
+    <td><%= system_picture.height %></td>
+    <td><%= system_picture.filesize %></td>
+    <td><%= system_picture.created_at %></td>
+    <td><%= system_picture.updated_at %></td>
+    <td>
+      <%= link_to 'Destroy', system_picture, confirm: 'Are you sure?', method: :delete %>
+    </td>
+  </tr>
+<% end %>
+</table>