overseer/views/item/view.twig

48 lines
1.3 KiB
Twig
Raw Permalink Normal View History

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