-
-
Notifications
You must be signed in to change notification settings - Fork 573
Expand file tree
/
Copy path_item_list.html.erb
More file actions
24 lines (23 loc) · 873 Bytes
/
_item_list.html.erb
File metadata and controls
24 lines (23 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<div class="tab-pane fade show active" id="custom-tabs-three-home" role="tabpanel" aria-labelledby="custom-tabs-three-home-tab">
<div class='flex justify-end mb-4'>
<%= new_button_to new_item_path, {text: "New Item"} %>
</div>
<table id='items-table' class="table">
<thead>
<tr>
<th>Category</th>
<th>Name</th>
<th>Add. Info</th>
<th class="text-right">Quantity Per Individual</th>
<th class="text-right">Fair Market Value (per item)</th>
<% unless current_organization.request_units.empty? %>
<th>Custom Request Units</th>
<% end %>
<th class="text-right">Actions</th>
</tr>
</thead>
<tbody>
<%= render partial: "items/item_row", collection: items, as: :item_row, locals: { inventory: inventory, kits: kits } %>
</tbody>
</table>
</div><!-- /.box-body.table-responsive -->