raven/views/item/view.erb

37 lines
1.1 KiB
Plaintext

<div id="item-header" class="row">
<div class="twelve columns">
<h1 class="item-name"><%= item.name %></h1>
<h4 class="item-created">Item added at: <%= date_format(item.created_at) %></h4>
<% if item.updated_at %>
<h4 class="item-updated">Last updated at: <%= date_format(item.updated_at) %></h4>
<% end %>
</div>
</div>
<div class="row">
<div class="twelve columns">
<table class="u-full-width">
<thead>
<tr>
<th>Item type:</th>
<th>Manufacturer:</th>
<th>Serial number:</th>
<th>SKU number:</th>
<th>Vendor:</th>
<th>Purchase Date:</th>
</tr>
</thead>
<tbody>
<tr>
<td><%= item.type %></td>
<td><%= nullable(item.manufacturer) %></td>
<td><%= nullable(item.serial_number) %></td>
<td><%= nullable(item.sku_number) %></td>
<td><%= nullable(item.purchased_from) %></td>
<td><%= nullable(date_format(item.purchased_at)) %></td>
</tr>
</tbody>
</table>
</div>
</div>