2022-11-02 23:23:20 -04:00
|
|
|
{% extends 'layout.twig' %}
|
|
|
|
|
|
|
|
{% block title %}{{ item.name }}{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<!-- page header -->
|
2022-11-03 20:29:52 -04:00
|
|
|
<header id="item-header" class="row">
|
2022-11-02 23:23:20 -04:00
|
|
|
<div class="columns twelve">
|
|
|
|
<h1>{{ item.name }}</h1>
|
2022-11-03 20:29:52 -04:00
|
|
|
<h4 class="item-added-date">Item added at: {{ item.createdAt }}</h4>
|
|
|
|
<h4 class="item-updated-date">Last updated at: {{ item.updatedAt }}</h4>
|
2022-11-02 23:23:20 -04:00
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<!-- item information -->
|
|
|
|
<section class="row">
|
|
|
|
<table class="columns twelve">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2022-11-03 20:29:52 -04:00
|
|
|
<th>Product name</th>
|
|
|
|
<th>Serial number</th>
|
|
|
|
<th>SKU Number</th>
|
2022-11-02 23:23:20 -04:00
|
|
|
<th>Manufacturer</th>
|
|
|
|
<th>Type</th>
|
2022-11-03 20:29:52 -04:00
|
|
|
<th>Seller</th>
|
|
|
|
<th>Purchase date</th>
|
2022-11-02 23:23:20 -04:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>{{ item.name }}</td>
|
2022-11-03 20:29:52 -04:00
|
|
|
<td>{{ item.serialNumber ? item.serialNumber : 'N/a' }}</td>
|
|
|
|
<td>{{ item.skuNumber ? item.skuNumber : 'N/a' }}</td>
|
|
|
|
<td>{{ item.manufacturer ? item.manufacturer : 'N/a' }}</td>
|
2022-11-02 23:23:20 -04:00
|
|
|
<td>{{ item.type }}</td>
|
2022-11-03 20:29:52 -04:00
|
|
|
<td>{{ item.purchasedFrom ? item.purchasedFrom : 'N/a' }}</td>
|
|
|
|
<td>{{ item.purchasedAt | date("m/d/Y h:i:s A") }}</td>
|
2022-11-02 23:23:20 -04:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
{% endblock %}
|