Added benchmark and hardware models; added routes and views for hardware

This commit is contained in:
2023-11-26 12:54:09 -05:00
parent e5602e660d
commit 2f016d3062
10 changed files with 181 additions and 2 deletions

31
views/hardware/list.twig Normal file
View File

@ -0,0 +1,31 @@
{% extends 'layouts/default.twig' %}
{% block title %}List of Hardware{% endblock %}
{% block content %}
<div class="row">
<h2>Hardware</h2>
<a href="/hardware/add">Add new hardware</a>
<table class="twelve columns">
<thead>
<tr>
<td>Name</td>
<td>Type</td>
<td>Created at</td>
<td>Last updated</td>
</tr>
</thead>
<tbody>
{% for h in hardware %}
<tr>
<td><a href="/hardware/{{ h.id }}">{{ h.name }}</a></td>
<td>{{ h.type }}</td>
<td>{{ p.createdAt | date('m/d/Y g:ia') }}</td>
<td>{{ p.updatedAt | date('m/d/Y g:ia') }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}