40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
<div class="container mt-5">
|
|
<h1 class="mb-4 text-center">Vendors</h1>
|
|
|
|
<table class="table table-striped table-hover">
|
|
<thead class="table-dark">
|
|
<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), class: 'btn btn-sm btn-info' %>
|
|
<%= link_to 'Edit', edit_vendor_path(vendor), class: 'btn btn-sm btn-primary' %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="text-center mt-3">
|
|
<%= link_to 'New Vendor', new_vendor_path, class: 'btn btn-success' %>
|
|
</div>
|
|
</div>
|