28 lines
718 B
Plaintext
28 lines
718 B
Plaintext
|
<h1>Listing suppliers</h1>
|
||
|
|
||
|
<table>
|
||
|
<tr>
|
||
|
<th>Name</th>
|
||
|
<th>Description</th>
|
||
|
<th>Code</th>
|
||
|
<th>Created at</th>
|
||
|
<th>Updated at</th>
|
||
|
</tr>
|
||
|
|
||
|
<% for supplier in @suppliers %>
|
||
|
<tr>
|
||
|
<td><%=h supplier.name %></td>
|
||
|
<td><%=h supplier.description %></td>
|
||
|
<td><%=h supplier.code %></td>
|
||
|
<td><%=h supplier.created_at %></td>
|
||
|
<td><%=h supplier.updated_at %></td>
|
||
|
<td><%= link_to 'Show', supplier_path(supplier) %></td>
|
||
|
<td><%= link_to 'Edit', edit_supplier_path(supplier) %></td>
|
||
|
<td><%= link_to 'Destroy', supplier_path(supplier), :confirm => 'Are you sure?', :method => :delete %></td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</table>
|
||
|
|
||
|
<br />
|
||
|
|
||
|
<%= link_to 'New supplier', new_supplier_path %>
|