OSDN Git Service

Merge branch 'v03_test' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v03_test
[pettanr/pettanr.git] / app / views / common_licenses / list.html.erb
1 <h1>Listing common_licenses</h1>
2
3 <table>
4   <tr>
5     <th>id</th>
6     <th>license_id</th>
7     <th>name</th>
8     <th>url</th>
9     <th>cc_by</th>
10     <th>cc_sa</th>
11     <th>cc_nd</th>
12     <th>cc_nc</th>
13     <th>no_resize</th>
14     <th>no_flip</th>
15     <th>no_convert</th>
16     <th>keep_aspect_ratio</th>
17     <th>created_at</th>
18     <th>updated_at</th>
19     <th></th>
20     <th></th>
21   </tr>
22
23 <% @common_licenses.each do |common_license| %>
24   <tr>
25     <td><%= link_to common_license.id, :action => :browse, :id => common_license.id %></td>
26     <td><%= h common_license.name %></td>
27     <td><%= h common_license.url %></td>
28     <td><%= common_license.cc_by %></td>
29     <td><%= common_license.cc_sa %></td>
30     <td><%= common_license.cc_nd %></td>
31     <td><%= common_license.cc_nc %></td>
32     <td><%= common_license.no_resize %></td>
33     <td><%= common_license.no_flip %></td>
34     <td><%= common_license.no_convert %></td>
35     <td><%= common_license.keep_aspect_ratio %></td>
36     <td><%= common_license.created_at %></td>
37     <td><%= common_license.updated_at %></td>
38     <td><%= link_to 'Edit', edit_common_license_path(common_license) %></td>
39     <td><%= link_to 'Destroy', common_license, confirm: 'Are you sure?', method: :delete %></td>
40   </tr>
41 <% end %>
42 </table>
43
44 <br />
45
46 <%= link_to 'New Common_license', new_common_license_path %>
47     <%= form_tag( {:action => "import"} , { :multipart => true }) do %>
48       <label for="file">File to Upload</label> <%= file_field_tag "file" %>
49       <%= submit_tag 'upload' -%>
50     <% end -%>