collection-crud/templates/camera/index.html.twig

116 lines
2.7 KiB
Twig
Raw Normal View History

2017-11-09 11:53:01 -05:00
{% extends 'base.html.twig' %}
{% block title %}
Camera 📷 CRUD - Cameras
{% endblock %}
2017-11-09 11:53:01 -05:00
{% block body %}
2018-02-14 15:08:03 -05:00
<h2>Cameras</h2>
2017-11-09 11:53:01 -05:00
2018-02-14 15:08:03 -05:00
<div class="small callout primary">
<ul>
2017-11-09 11:53:01 -05:00
<li>
2018-02-14 15:08:03 -05:00
<a href="{{ path('camera_new') }}">Add a Camera</a>
2017-11-09 11:53:01 -05:00
</li>
</ul>
2018-02-14 15:08:03 -05:00
</div>
2017-11-09 11:53:01 -05:00
2018-07-18 11:35:27 -04:00
<div class="small callout warning">
<table class="hover scroll sortable stack">
<caption>Not Yet Received</caption>
<thead>
<tr>
<th>Actions</th>
<th>Brand</th>
<th>Model</th>
<th>Mount</th>
<th>Film Format</th>
<th>Serial</th>
<th>Purchase Price</th>
<th>Battery Type</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
{% for camera in not_received %}
<tr>
<td>
<ul>
<li>
<a href="{{ path('camera_edit', { 'id': camera.id }) }}">
Edit
<span class="edit-icon">&#9998;</span>
</a>
</li>
<li>
<a href="{{ path('camera_show', { 'id': camera.id }) }}">View 👁</a>
</li>
</ul>
</td>
<td>{{ camera.brand }}</td>
<td>{{ camera.model }}</td>
<td>{{ camera.mount }}</td>
<td>{{ camera.filmFormat }}</td>
<td>{{ camera.serial }}</td>
<td>${{ camera.purchasePrice }}</td>
<td>{{ camera.batteryType }}</td>
<td>{{ camera.notes }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
2017-11-09 11:53:01 -05:00
2018-07-18 11:35:27 -04:00
<div class="small callout secondary">
<table class="hover scroll sortable stack">
<caption>Received</caption>
<thead>
<tr>
<th>Actions</th>
<th>Brand</th>
<th>Mount</th>
<th>Model</th>
<th>Crop Factor</th>
<th>Is Working?</th>
<th>Serial</th>
<th>Formerly Owned?</th>
<th>Purchase Price</th>
<th>Battery Type</th>
<th>Film Format</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
{% for camera in cameras %}
<tr>
<td>
<ul>
<li>
<a href="{{ path('camera_edit', { 'id': camera.id }) }}">
Edit
<span class="edit-icon">&#9998;</span>
</a>
</li>
<li>
<a href="{{ path('camera_show', { 'id': camera.id }) }}">View 👁</a>
</li>
</ul>
</td>
<td>{{ camera.brand }}</td>
<td>{{ camera.mount }}</td>
<td>{{ camera.model }}</td>
<td>{{ camera.cropFactor }}</td>
<td class="text-center">{% if camera.isWorking %}{% else %}&#10007;{% endif %}</td>
<td>{{ camera.serial }}</td>
<td class="text-center">{% if camera.formerlyOwned %}{% else %}&#10007;{% endif %}</td>
<td>${{ camera.purchasePrice }}</td>
<td>{{ camera.batteryType }}</td>
<td>{{ camera.filmFormat }}</td>
<td>{{ camera.notes }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
2017-11-09 11:53:01 -05:00
{% endblock %}