collection-crud/app/Resources/views/flash/index.html.twig

65 lines
2.0 KiB
Twig
Raw Normal View History

2017-11-09 11:53:01 -05:00
{% extends 'base.html.twig' %}
{% block body %}
2017-11-22 13:49:31 -05:00
<h2>Flashes list</h2>
2017-11-09 11:53:01 -05:00
2017-11-10 15:50:05 -05:00
<div class="small primary callout">
2017-11-09 11:53:01 -05:00
<ul>
<li>
<a href="{{ path('flash_new') }}">Add a Flash</a>
</li>
</ul>
</div>
2017-11-10 15:50:05 -05:00
<table class="hover scroll stack">
2017-11-09 11:53:01 -05:00
<thead>
<tr>
<th>Actions</th>
<th>Id</th>
<th>Brand</th>
<th>Model</th>
<th>Is Auto Flash?</th>
<th>Is TTL?</th>
<th>TTL Type</th>
<th>Is P-TTL?</th>
<th>P-TTL type</th>
<th>Guide Number</th>
<th>Purchase Price</th>
2017-11-22 13:49:31 -05:00
<th>Received</th>
2017-11-09 11:53:01 -05:00
<th>Batteries</th>
<th>Notes</th>
<th>Serial</th>
</tr>
</thead>
<tbody>
{% for flash in flashes %}
<tr>
<td>
<ul>
<li>
<a href="{{ path('flash_edit', { 'id': flash.id }) }}">edit</a>
</li>
</ul>
</td>
<td><a href="{{ path('flash_show', { 'id': flash.id }) }}">{{ flash.id }}</a></td>
<td>{{ flash.brand }}</td>
<td>{{ flash.model }}</td>
<td>{% if flash.isAutoFlash %}Yes{% else %}No{% endif %}</td>
<td>{% if flash.isTtl %}Yes{% else %}No{% endif %}</td>
<td>{{ flash.ttlType }}</td>
<td>{% if flash.isPTtl %}Yes{% else %}No{% endif %}</td>
<td>{{ flash.pTtlType }}</td>
<td>{{ flash.guideNumber }}</td>
2017-11-22 13:49:31 -05:00
<td>${{ flash.purchasePrice }}</td>
<td>{% if flash.received %}Yes{% else %}No{% endif %}</td>
2017-11-09 11:53:01 -05:00
<td>{{ flash.batteries }}</td>
<td>{{ flash.notes }}</td>
<td>{{ flash.serial }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}