2024-01-19 18:25:59 -06:00
|
|
|
<div class="container mt-5">
|
|
|
|
<h1 class="mb-4 text-center">Vendors</h1>
|
2024-01-17 01:44:36 -06:00
|
|
|
|
2024-01-19 18:25:59 -06:00
|
|
|
<table class="table table-striped table-hover">
|
|
|
|
<thead class="table-dark">
|
2024-01-17 01:44:36 -06:00
|
|
|
<tr>
|
2024-01-19 18:25:59 -06:00
|
|
|
<th>Name</th>
|
|
|
|
<th>Address</th>
|
|
|
|
<th>Phone</th>
|
|
|
|
<th>Email</th>
|
|
|
|
<th>DBA</th>
|
|
|
|
<th>TIN</th>
|
|
|
|
<th>Contact</th>
|
|
|
|
<th>Actions</th>
|
2024-01-17 01:44:36 -06:00
|
|
|
</tr>
|
2024-01-19 18:25:59 -06:00
|
|
|
</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), class: 'btn btn-sm btn-info' %> |
|
|
|
|
<%= link_to 'Edit', edit_vendor_path(vendor), class: 'btn btn-sm btn-primary' %> |
|
|
|
|
<%= link_to 'Destroy', vendor_path(vendor), method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-sm btn-danger' %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2024-01-17 01:44:36 -06:00
|
|
|
|
2024-01-19 18:25:59 -06:00
|
|
|
<div class="text-center mt-3">
|
|
|
|
<%= link_to 'New Vendor', new_vendor_path, class: 'btn btn-success' %>
|
|
|
|
</div>
|
|
|
|
</div>
|