37 lines
893 B
Plaintext
37 lines
893 B
Plaintext
|
<h1>Vendors</h1>
|
||
|
|
||
|
<table>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Name</th>
|
||
|
<th>Address</th>
|
||
|
<th>Phone</th>
|
||
|
<th>Email</th>
|
||
|
<th>DBA</th>
|
||
|
<th>TIN</th>
|
||
|
<th>Contact</th>
|
||
|
<th>Actions</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<% @vendors.each do |vendor| %>
|
||
|
<tr>
|
||
|
<td><%= vendor.name %></td>
|
||
|
<td><%= vendor.address %></td>
|
||
|
<td><%= vendor.phone %></td>
|
||
|
<td><%= vendor.email %></td>
|
||
|
<td><%= vendor.dba %></td>
|
||
|
<td><%= vendor.tin %></td>
|
||
|
<td><%= vendor.contact %></td>
|
||
|
<td>
|
||
|
<%= link_to 'Show', vendor_path(vendor) %> |
|
||
|
<%= link_to 'Edit', edit_vendor_path(vendor) %> |
|
||
|
<%= link_to 'Destroy', vendor_path(vendor), method: :delete, data: { confirm: 'Are you sure?' } %>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
<%= link_to 'New Vendor', new_vendor_path %>
|