{% extends 'base.html.twig' %}

{% block title %}
	Camera 📷 CRUD - Previously Owned Lenses
{% endblock %}

{% block body %}
	<h2>Previously Owned Lenses</h2>

	<div class="small secondary callout">
		<table class="hover scroll stack">
			<thead>
				<tr>
					<th>Actions</th>
					<th>Brand</th>
					<th>Coatings</th>
					<th>Product Line</th>
					<th>Model</th>
					<th>Aperture Range</th>
					<th>Focal Range</th>
					<th>Serial</th>
					<th>Purchase Price</th>
					<th>Mount</th>
					<th>Image Size</th>
					<th>Filter (F/R)</th>
					<th>Is Teleconverter?</th>
					<th>Design Elements/Groups</th>
					<th>Aperture Blades</th>
					<th>Notes</th>
				</tr>
			</thead>
			<tbody>
			{% for previouslyOwnedLense in previouslyOwnedLenses %}
				<tr>
					<td>
						<ul>
							<li>
								<a href="{{ path('previously-owned-lens_edit', { 'id': previouslyOwnedLense.id }) }}">
									Edit
									<span class="edit-icon">&#9998;</span>
								</a>
							</li>
							<li>
								<a
									href="{{ path('previously-owned-lens_show', { 'id': previouslyOwnedLense.id }) }}">View 👁</a>
							</li>
						</ul>
					</td>
					<td>{{ previouslyOwnedLense.brand }}</td>
					<td>{{ previouslyOwnedLense.coatings }}</td>
					<td>{{ previouslyOwnedLense.productLine }}</td>
					<td>{{ previouslyOwnedLense.model }}</td>
					<td>{{ previouslyOwnedLense.minFStop }} &mdash; {{ previouslyOwnedLense.maxFStop }}</td>
					<td>{{ previouslyOwnedLense.minFocalLength }} &mdash; {{ previouslyOwnedLense.maxFocalLength }}</td>
					<td>{{ previouslyOwnedLense.serial }}</td>
					<td>${{ previouslyOwnedLense.purchasePrice }}</td>
					<td>{{ previouslyOwnedLense.mount }}</td>
					<td>{{ previouslyOwnedLense.imageSize }}</td>
					<td>{{ previouslyOwnedLense.frontFilterSize }} / {{ previouslyOwnedLense.rearFilterSize }}</td>
					<td class="text-center">{% if previouslyOwnedLense.isTeleconverter %}✔{% else %}&#10007;{% endif %}</td>
					<td>{{ previouslyOwnedLense.designElements }}/{{ previouslyOwnedLense.designGroups }}</td>
					<td>{{ previouslyOwnedLense.apertureBlades }}</td>
					<td>{{ previouslyOwnedLense.notes }}</td>
				</tr>
			{% endfor %}
			</tbody>
		</table>
	</div>
{% endblock %}