overseer/views/license/view.twig

48 lines
1.3 KiB
Twig
Raw Permalink Normal View History

2022-11-06 11:40:45 -05:00
{% extends 'layout.twig' %}
{% block title %}{{ license.name }}{% endblock %}
{% block content %}
<!-- page header -->
<header id="license-header" class="row">
<div class="columns twelve">
<span>
<h1>{{ license.name }}</h1>
<p><a href="/license/{{ license.id }}/edit"><i class="fa-solid fa-pen-to-square"></i> Edit</a></p>
</span>
<h4 class="license-added-date">license added at: {{ license.createdAt }}</h4>
<h4 class="license-updated-date">Last updated at: {{ license.updatedAt }}</h4>
</div>
</header>
<!-- license information -->
<section class="row">
<table class="columns twelve">
<thead>
<tr>
<th>Product name</th>
2022-11-14 10:54:44 -05:00
<th>License key</th>
2022-11-06 11:40:45 -05:00
<th>Manufacturer</th>
2022-11-14 10:54:44 -05:00
<th>Seats used</th>
<th>Total seats</th>
2022-11-06 11:40:45 -05:00
<th>Seller</th>
<th>Purchase date</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ license.name }}</td>
<td>{{ license.key ? license.key : 'N/a' }}</td>
<td>{{ license.manufacturer ? license.manufacturer : 'N/a' }}</td>
2022-11-14 10:54:44 -05:00
<td>{{ license.seatsUsed }}</td>
<td>{{ license.seatsTotal }}</td>
2022-11-06 11:40:45 -05:00
<td>{{ license.purchasedFrom ? license.purchasedFrom : 'N/a' }}</td>
<td>{{ license.purchasedAt | date("m/d/Y h:i:s A") }}</td>
</tr>
</tbody>
</table>
</section>
{% endblock %}