Template updates and strict types
This commit is contained in:
parent
bd3e343727
commit
9bdc28fa79
@ -6,13 +6,13 @@ table th,
|
|||||||
.descend {
|
.descend {
|
||||||
vertical-align:text-bottom;
|
vertical-align:text-bottom;
|
||||||
}
|
}
|
||||||
table thead th::before {
|
table.sortable thead th::before {
|
||||||
content: " ↕\00a0";
|
content: " ↕\00a0";
|
||||||
}
|
}
|
||||||
table thead .ascend::before {
|
table.sortable thead .ascend::before {
|
||||||
content: " ↑\00a0";
|
content: " ↑\00a0";
|
||||||
}
|
}
|
||||||
table thead .descend::before {
|
table.sortable thead .descend::before {
|
||||||
content: " ↓\00a0";
|
content: " ↓\00a0";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -24,9 +24,22 @@ table {
|
|||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table.scroll {
|
||||||
|
display: table;
|
||||||
|
}
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------------
|
/* ----------------------------------------------------------------------------
|
||||||
Text Areas
|
Text Areas
|
||||||
---------------------------------------------------------------------------- */
|
---------------------------------------------------------------------------- */
|
||||||
textarea {
|
textarea {
|
||||||
height: 12rem;
|
height: 12rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
Miscellaneous
|
||||||
|
---------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
.edit-icon {
|
||||||
|
display: inline-block;
|
||||||
|
transform: rotateZ(90deg);
|
||||||
|
}
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
$(document).foundation();
|
$(document).foundation();
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var tables = document.getElementsByTagName('table');
|
var tables = document.querySelectorAll('table.sortable');
|
||||||
|
var i = 0;
|
||||||
|
var len = tables.length;
|
||||||
|
|
||||||
if (tables.length > 0) {
|
if (len > 0) {
|
||||||
tsorter.create(tables[0], 1);
|
for (;i < len; i++) {
|
||||||
|
tsorter.create(tables[i], 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}());
|
}());
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App;
|
namespace App;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Controller;
|
namespace App\Controller;
|
||||||
|
|
||||||
@ -30,12 +30,27 @@ class CameraController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function indexAction()
|
public function indexAction()
|
||||||
{
|
{
|
||||||
return $this->itemListView('camera/index.html.twig','cameras', [
|
$em = $this->getDoctrine()->getManager();
|
||||||
'received' => 'DESC',
|
|
||||||
|
$receivedItems = $em->getRepository(self::ENTITY)->findBy([
|
||||||
|
'received' => true
|
||||||
|
], [
|
||||||
'brand' => 'ASC',
|
'brand' => 'ASC',
|
||||||
'mount' => 'ASC',
|
'mount' => 'ASC',
|
||||||
'model' => 'ASC',
|
'model' => 'ASC',
|
||||||
]);
|
]);
|
||||||
|
$newItems = $em->getRepository(self::ENTITY)->findBy([
|
||||||
|
'received' => false
|
||||||
|
], [
|
||||||
|
'brand' => 'ASC',
|
||||||
|
'mount' => 'ASC',
|
||||||
|
'model' => 'ASC',
|
||||||
|
]);
|
||||||
|
|
||||||
|
return $this->render('camera/index.html.twig', [
|
||||||
|
'not_received' => $newItems,
|
||||||
|
'cameras' => $receivedItems,
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Controller;
|
namespace App\Controller;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Controller;
|
namespace App\Controller;
|
||||||
|
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Controller;
|
namespace App\Controller;
|
||||||
|
|
||||||
use App\Entity\Film;
|
use App\Entity\Film;
|
||||||
use App\Form\FilmType;
|
use App\Form\FilmType;
|
||||||
|
use Doctrine\Common\Collections\Criteria;
|
||||||
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
||||||
use Symfony\Component\Routing\Annotation\Route;
|
use Symfony\Component\Routing\Annotation\Route;
|
||||||
use Symfony\Component\Form\FormInterface;
|
use Symfony\Component\Form\FormInterface;
|
||||||
@ -28,12 +29,32 @@ class FilmController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function indexAction()
|
public function indexAction()
|
||||||
{
|
{
|
||||||
return $this->itemListView('film/index.html.twig', 'films', [
|
|
||||||
'rollsInCamera' => 'DESC',
|
$repo = $this->getDoctrine()->getManager()->getRepository(self::ENTITY);
|
||||||
|
|
||||||
|
$criteria = Criteria::create()
|
||||||
|
->where(Criteria::expr()->gt('rollsInCamera', 0))
|
||||||
|
->orderBy([
|
||||||
|
'filmFormat' => Criteria::ASC,
|
||||||
|
'brand' => Criteria::ASC,
|
||||||
|
'rollsInCamera' => Criteria::DESC,
|
||||||
|
'productLine' => Criteria::ASC,
|
||||||
|
]);
|
||||||
|
|
||||||
|
$inCamera = $repo->matching($criteria);
|
||||||
|
|
||||||
|
$notInCamera = $repo->findBy([
|
||||||
|
'rollsInCamera' => 0,
|
||||||
|
], [
|
||||||
'brand' => 'ASC',
|
'brand' => 'ASC',
|
||||||
'productLine' => 'ASC',
|
'productLine' => 'ASC',
|
||||||
'filmFormat' => 'ASC',
|
'filmFormat' => 'ASC',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
return $this->render('film/index.html.twig', [
|
||||||
|
'in_camera' => $inCamera,
|
||||||
|
'films' => $notInCamera,
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Controller;
|
namespace App\Controller;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Controller;
|
namespace App\Controller;
|
||||||
|
|
||||||
@ -28,14 +28,31 @@ class LensesController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function indexAction()
|
public function indexAction()
|
||||||
{
|
{
|
||||||
return $this->itemListView('lenses/index.html.twig', 'lenses', [
|
$em = $this->getDoctrine()->getManager();
|
||||||
'received' => 'DESC',
|
|
||||||
|
$receivedItems = $em->getRepository(self::ENTITY)->findBy([
|
||||||
|
'received' => true
|
||||||
|
], [
|
||||||
'brand' => 'ASC',
|
'brand' => 'ASC',
|
||||||
'productLine' => 'ASC',
|
'productLine' => 'ASC',
|
||||||
'mount' => 'ASC',
|
'mount' => 'ASC',
|
||||||
'minFocalLength' => 'ASC',
|
'minFocalLength' => 'ASC',
|
||||||
'maxFStop' => 'ASC',
|
'maxFStop' => 'ASC',
|
||||||
]);
|
]);
|
||||||
|
$newItems = $em->getRepository(self::ENTITY)->findBy([
|
||||||
|
'received' => false
|
||||||
|
], [
|
||||||
|
'brand' => 'ASC',
|
||||||
|
'productLine' => 'ASC',
|
||||||
|
'mount' => 'ASC',
|
||||||
|
'minFocalLength' => 'ASC',
|
||||||
|
'maxFStop' => 'ASC',
|
||||||
|
]);
|
||||||
|
|
||||||
|
return $this->render('lenses/index.html.twig', [
|
||||||
|
'not_received' => $newItems,
|
||||||
|
'lenses' => $receivedItems,
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Controller;
|
namespace App\Controller;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Controller;
|
namespace App\Controller;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Controller;
|
namespace App\Controller;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Entity;
|
namespace App\Entity;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Entity;
|
namespace App\Entity;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Entity;
|
namespace App\Entity;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Entity;
|
namespace App\Entity;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Entity;
|
namespace App\Entity;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Entity;
|
namespace App\Entity;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Entity;
|
namespace App\Entity;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Entity;
|
namespace App\Entity;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Entity;
|
namespace App\Entity;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Entity;
|
namespace App\Entity;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Entity;
|
namespace App\Entity;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Form;
|
namespace App\Form;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Form;
|
namespace App\Form;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Form;
|
namespace App\Form;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Form;
|
namespace App\Form;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Form;
|
namespace App\Form;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Form;
|
namespace App\Form;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Form;
|
namespace App\Form;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Form;
|
namespace App\Form;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App;
|
namespace App;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Repository;
|
namespace App\Repository;
|
||||||
|
|
||||||
|
@ -15,24 +15,69 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class="hover scroll stack">
|
<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">✎</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>
|
||||||
|
|
||||||
|
<div class="small callout secondary">
|
||||||
|
<table class="hover scroll sortable stack">
|
||||||
|
<caption>Received</caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Actions</th>
|
<th>Actions</th>
|
||||||
<th>Id</th>
|
|
||||||
<th>Brand</th>
|
<th>Brand</th>
|
||||||
<th>Mount</th>
|
<th>Mount</th>
|
||||||
<th>Model</th>
|
<th>Model</th>
|
||||||
<th>Is Digital?</th>
|
|
||||||
<th>Crop Factor</th>
|
<th>Crop Factor</th>
|
||||||
<th>Is Working?</th>
|
<th>Is Working?</th>
|
||||||
<th>Notes</th>
|
|
||||||
<th>Serial</th>
|
<th>Serial</th>
|
||||||
<th>Formerly Owned?</th>
|
<th>Formerly Owned?</th>
|
||||||
<th>Purchase Price</th>
|
<th>Purchase Price</th>
|
||||||
<th>Battery Type</th>
|
<th>Battery Type</th>
|
||||||
<th>Film Format</th>
|
<th>Film Format</th>
|
||||||
<th>Received</th>
|
<th>Notes</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -41,29 +86,30 @@
|
|||||||
<td>
|
<td>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('camera_edit', { 'id': camera.id }) }}">edit</a>
|
<a href="{{ path('camera_edit', { 'id': camera.id }) }}">
|
||||||
|
Edit
|
||||||
|
<span class="edit-icon">✎</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="{{ path('camera_show', { 'id': camera.id }) }}">View 👁</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
<td><a href="{{ path('camera_show', { 'id': camera.id }) }}">{{ camera.id }}</a></td>
|
|
||||||
<td>{{ camera.brand }}</td>
|
<td>{{ camera.brand }}</td>
|
||||||
<td>{{ camera.mount }}</td>
|
<td>{{ camera.mount }}</td>
|
||||||
<td>{{ camera.model }}</td>
|
<td>{{ camera.model }}</td>
|
||||||
<td>{% if camera.isDigital %}Yes{% else %}No{% endif %}</td>
|
|
||||||
<td>{{ camera.cropFactor }}</td>
|
<td>{{ camera.cropFactor }}</td>
|
||||||
<td>{% if camera.isWorking %}Yes{% else %}No{% endif %}</td>
|
<td class="text-center">{% if camera.isWorking %}✔{% else %}✗{% endif %}</td>
|
||||||
<td>{{ camera.notes }}</td>
|
|
||||||
<td>{{ camera.serial }}</td>
|
<td>{{ camera.serial }}</td>
|
||||||
<td>{% if camera.formerlyOwned %}Yes{% else %}No{% endif %}</td>
|
<td class="text-center">{% if camera.formerlyOwned %}✔{% else %}✗{% endif %}</td>
|
||||||
<td>${{ camera.purchasePrice }}</td>
|
<td>${{ camera.purchasePrice }}</td>
|
||||||
<td>{{ camera.batteryType }}</td>
|
<td>{{ camera.batteryType }}</td>
|
||||||
<td>{{ camera.filmFormat }}</td>
|
<td>{{ camera.filmFormat }}</td>
|
||||||
<td>{% if camera.received %}Yes{% else %}No{% endif %}</td>
|
<td>{{ camera.notes }}</td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -15,11 +15,11 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="small secondary callout">
|
||||||
<table class="hover scroll stack">
|
<table class="hover scroll stack">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Actions</th>
|
<th>Actions</th>
|
||||||
<th>Id</th>
|
|
||||||
<th>Type</th>
|
<th>Type</th>
|
||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
</tr>
|
</tr>
|
||||||
@ -30,15 +30,21 @@
|
|||||||
<td>
|
<td>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('camera-type_edit', { 'id': cameraType.id }) }}">edit</a>
|
<a href="{{ path('camera-type_edit', { 'id': cameraType.id }) }}">
|
||||||
|
Edit
|
||||||
|
<span class="edit-icon">✎</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="{{ path('camera-type_show', { 'id': cameraType.id }) }}">View 👁</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
<td><a href="{{ path('camera-type_show', { 'id': cameraType.id }) }}">{{ cameraType.id }}</a></td>
|
|
||||||
<td>{{ cameraType.type }}</td>
|
<td>{{ cameraType.type }}</td>
|
||||||
<td>{{ cameraType.description }}</td>
|
<td>{{ cameraType.description }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -4,7 +4,3 @@
|
|||||||
Camera 📷 CRUD
|
Camera 📷 CRUD
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
|
||||||
<div class="grid-container"></div>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
|
@ -15,11 +15,66 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class="hover scroll stack">
|
<div class="small callout warning">
|
||||||
|
<table class="hover scroll sortable stack">
|
||||||
|
<caption>In Camera</caption>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Actions</th>
|
||||||
|
<th>Brand</th>
|
||||||
|
<th>Product Line</th>
|
||||||
|
<th>Film Name</th>
|
||||||
|
<th>Film Alias</th>
|
||||||
|
<th>Film Speed</th>
|
||||||
|
<th>Film Format</th>
|
||||||
|
<th>Film Base</th>
|
||||||
|
<th>Unused Rolls</th>
|
||||||
|
<th>Rolls in a Camera</th>
|
||||||
|
<th>Developed Rolls</th>
|
||||||
|
<th>Chemistry</th>
|
||||||
|
<th>Notes</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{% for film in in_camera %}
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="{{ path('film_edit', { 'id': film.id }) }}">
|
||||||
|
Edit
|
||||||
|
<span class="edit-icon">✎</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="{{ path('film_show', { 'id': film.id }) }}">View 👁</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</td>
|
||||||
|
<td>{{ film.brand }}</td>
|
||||||
|
<td>{{ film.productLine }}</td>
|
||||||
|
<td>{{ film.filmName }}</td>
|
||||||
|
<td>{{ film.filmAlias }}</td>
|
||||||
|
<td>{{ film.filmSpeedAsa }}/{{ film.filmSpeedDin }}°</td>
|
||||||
|
<td>{{ film.filmFormat }}</td>
|
||||||
|
<td>{{ film.filmBase }}</td>
|
||||||
|
<td>{{ film.unusedRolls }}</td>
|
||||||
|
<td>{{ film.rollsInCamera }}</td>
|
||||||
|
<td>{{ film.developedRolls }}</td>
|
||||||
|
<td>{{ film.chemistry }}</td>
|
||||||
|
<td>{{ film.notes }}</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="small callout secondary">
|
||||||
|
<table class="hover scroll sortable stack">
|
||||||
|
<caption>Not in Camera</caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Actions</th>
|
<th>Actions</th>
|
||||||
<th>Id</th>
|
|
||||||
<th>Brand</th>
|
<th>Brand</th>
|
||||||
<th>Product Line</th>
|
<th>Product Line</th>
|
||||||
<th>Film Name</th>
|
<th>Film Name</th>
|
||||||
@ -40,11 +95,16 @@
|
|||||||
<td>
|
<td>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('film_edit', { 'id': film.id }) }}">edit</a>
|
<a href="{{ path('film_edit', { 'id': film.id }) }}">
|
||||||
|
Edit
|
||||||
|
<span class="edit-icon">✎</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="{{ path('film_show', { 'id': film.id }) }}">View 👁</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
<td><a href="{{ path('film_show', { 'id': film.id }) }}">{{ film.id }}</a></td>
|
|
||||||
<td>{{ film.brand }}</td>
|
<td>{{ film.brand }}</td>
|
||||||
<td>{{ film.productLine }}</td>
|
<td>{{ film.productLine }}</td>
|
||||||
<td>{{ film.filmName }}</td>
|
<td>{{ film.filmName }}</td>
|
||||||
@ -61,6 +121,5 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<h2>Flashes list</h2>
|
<h2>Flashes</h2>
|
||||||
|
|
||||||
<div class="small primary callout">
|
<div class="small primary callout">
|
||||||
<ul>
|
<ul>
|
||||||
@ -15,11 +15,11 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class="hover scroll stack">
|
<div class="small secondary callout">
|
||||||
|
<table class="hover scroll sortable stack">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Actions</th>
|
<th>Actions</th>
|
||||||
<th>Id</th>
|
|
||||||
<th>Brand</th>
|
<th>Brand</th>
|
||||||
<th>Model</th>
|
<th>Model</th>
|
||||||
<th>Is Auto Flash?</th>
|
<th>Is Auto Flash?</th>
|
||||||
@ -31,8 +31,8 @@
|
|||||||
<th>Purchase Price</th>
|
<th>Purchase Price</th>
|
||||||
<th>Received</th>
|
<th>Received</th>
|
||||||
<th>Batteries</th>
|
<th>Batteries</th>
|
||||||
<th>Notes</th>
|
|
||||||
<th>Serial</th>
|
<th>Serial</th>
|
||||||
|
<th>Notes</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -41,28 +41,34 @@
|
|||||||
<td>
|
<td>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('flash_edit', { 'id': flash.id }) }}">edit</a>
|
<a href="{{ path('flash_edit', { 'id': flash.id }) }}">
|
||||||
|
Edit
|
||||||
|
<span class="edit-icon">✎</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="{{ path('flash_show', { 'id': flash.id }) }}">View 👁</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
<td><a href="{{ path('flash_show', { 'id': flash.id }) }}">{{ flash.id }}</a></td>
|
|
||||||
<td>{{ flash.brand }}</td>
|
<td>{{ flash.brand }}</td>
|
||||||
<td>{{ flash.model }}</td>
|
<td>{{ flash.model }}</td>
|
||||||
<td>{% if flash.isAutoFlash %}Yes{% else %}No{% endif %}</td>
|
<td class="text-center">{% if flash.isAutoFlash %}✔{% else %}✗{% endif %}</td>
|
||||||
<td>{% if flash.isTtl %}Yes{% else %}No{% endif %}</td>
|
<td class="text-center">{% if flash.isTtl %}✔{% else %}✗{% endif %}</td>
|
||||||
<td>{{ flash.ttlType }}</td>
|
<td>{{ flash.ttlType }}</td>
|
||||||
<td>{% if flash.isPTtl %}Yes{% else %}No{% endif %}</td>
|
<td class="text-center">{% if flash.isPTtl %}✔{% else %}✗{% endif %}</td>
|
||||||
<td>{{ flash.pTtlType }}</td>
|
<td>{{ flash.pTtlType }}</td>
|
||||||
<td>{{ flash.guideNumber }}</td>
|
<td>{{ flash.guideNumber }}</td>
|
||||||
<td>${{ flash.purchasePrice }}</td>
|
<td>${{ flash.purchasePrice }}</td>
|
||||||
<td>{% if flash.received %}Yes{% else %}No{% endif %}</td>
|
<td class="text-center">{% if flash.received %}✔{% else %}✗{% endif %}</td>
|
||||||
<td>{{ flash.batteries }}</td>
|
<td>{{ flash.batteries }}</td>
|
||||||
<td>{{ flash.notes }}</td>
|
|
||||||
<td>{{ flash.serial }}</td>
|
<td>{{ flash.serial }}</td>
|
||||||
|
<td>{{ flash.notes }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -15,60 +15,125 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class="hover scroll stack">
|
<div class="small callout warning">
|
||||||
|
<table class="hover scroll sortable stack">
|
||||||
|
<caption>Not Yet Received</caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Actions</th>
|
<th>Actions</th>
|
||||||
<th>Id</th>
|
|
||||||
<th>Brand</th>
|
<th>Brand</th>
|
||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
<th>Aperture Range</th>
|
<th>Aperture Range</th>
|
||||||
<th>Focal Range</th>
|
<th>Focal Range</th>
|
||||||
<th>Serial</th>
|
<th class="text-right">Serial</th>
|
||||||
<th>Purchase Price</th>
|
<th class="text-right">Purchase Price</th>
|
||||||
<th>Notes</th>
|
|
||||||
<th>Mount</th>
|
<th>Mount</th>
|
||||||
<th>Image Size</th>
|
<th>Image Size</th>
|
||||||
<th>Received</th>
|
|
||||||
<th>Formerly Owned</th>
|
<th>Formerly Owned</th>
|
||||||
<th>Front Filter Size</th>
|
<th>Front Filter Size</th>
|
||||||
<th>Rear Filter Size</th>
|
<th>Rear Filter Size</th>
|
||||||
<th>Is Teleconverter?</th>
|
<th>Is Teleconverter?</th>
|
||||||
<th>Design Elements / Groups</th>
|
<th>Design Elements / Groups</th>
|
||||||
<th>Aperture Blades</th>
|
<th>Aperture Blades</th>
|
||||||
|
<th>Notes</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for lense in lenses %}
|
{% for lens in not_received %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('lens_edit', { 'id': lense.id }) }}">edit</a>
|
<a href="{{ path('lens_edit', { 'id': lens.id }) }}">
|
||||||
|
Edit
|
||||||
|
<span class="edit-icon">✎</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="{{ path('lens_show', { 'id': lens.id }) }}">View 👁</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
<td><a href="{{ path('lens_show', { 'id': lense.id }) }}">{{ lense.id }}</a></td>
|
<td>{{ lens.brand }}</td>
|
||||||
<td>{{ lense.brand }}</td>
|
<td>{{ lens.coatings }} {{ lens.productLine }} {{ lens.model }}</td>
|
||||||
<td>{{ lense.coatings }} {{ lense.productLine }} {{ lense.model }}</td>
|
<td>{{ lens.minFStop }} — {{ lens.maxFStop }}</td>
|
||||||
<td>{{ lense.minFStop }} — {{ lense.maxFStop }}</td>
|
<td>{{ lens.minFocalLength }} — {{ lens.maxFocalLength }}</td>
|
||||||
<td>{{ lense.minFocalLength }} — {{ lense.maxFocalLength }}</td>
|
<td class="text-right">{{ lens.serial }}</td>
|
||||||
<td>{{ lense.serial }}</td>
|
<td class="text-right">${{ lens.purchasePrice }}</td>
|
||||||
<td>${{ lense.purchasePrice }}</td>
|
<td>{{ lens.mount }}</td>
|
||||||
<td>{{ lense.notes }}</td>
|
<td>{{ lens.imageSize }}</td>
|
||||||
<td>{{ lense.mount }}</td>
|
<td class="text-center">{% if lens.formerlyOwned %}✔{% else %}✗{% endif %}</td>
|
||||||
<td>{{ lense.imageSize }}</td>
|
<td>{{ lens.frontFilterSize }}</td>
|
||||||
<td>{% if lense.received %}Yes{% else %}No{% endif %}</td>
|
<td>{{ lens.rearFilterSize }}</td>
|
||||||
<td>{% if lense.formerlyOwned %}Yes{% else %}No{% endif %}</td>
|
<td class="text-center">{% if lens.isTeleconverter %}✔{% else %}✗{% endif %}</td>
|
||||||
<td>{{ lense.frontFilterSize }}</td>
|
<td>{{ lens.designElements }} / {{ lens.designGroups }}</td>
|
||||||
<td>{{ lense.rearFilterSize }}</td>
|
<td>{{ lens.apertureBlades }}</td>
|
||||||
<td>{% if lense.isTeleconverter %}Yes{% else %}No{% endif %}</td>
|
<td>{{ lens.notes }}</td>
|
||||||
<td>{{ lense.designElements }} / {{ lense.designGroups }}</td>
|
|
||||||
<td>{{ lense.apertureBlades }}</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="small callout secondary">
|
||||||
|
<table class="hover scroll sortable stack">
|
||||||
|
<caption>Received</caption>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Actions</th>
|
||||||
|
<th>Brand</th>
|
||||||
|
<th>Product Line</th>
|
||||||
|
<th>Description</th>
|
||||||
|
<th>Aperture Range</th>
|
||||||
|
<th>Focal Range</th>
|
||||||
|
<th class="text-right">Serial</th>
|
||||||
|
<th class="text-right">Purchase Price</th>
|
||||||
|
<th>Mount</th>
|
||||||
|
<th>Image Size</th>
|
||||||
|
<th>Formerly Owned</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 lens in lenses %}
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="{{ path('lens_edit', { 'id': lens.id }) }}">
|
||||||
|
Edit
|
||||||
|
<span class="edit-icon">✎</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="{{ path('lens_show', { 'id': lens.id }) }}">View 👁</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</td>
|
||||||
|
<td>{{ lens.brand }}</td>
|
||||||
|
<td>{{ lens.productLine }}</td>
|
||||||
|
<td>{{ lens.coatings }} {{ lens.model }}</td>
|
||||||
|
<td>{{ lens.minFStop }} — {{ lens.maxFStop }}</td>
|
||||||
|
<td>{{ lens.minFocalLength }} — {{ lens.maxFocalLength }}</td>
|
||||||
|
<td class="text-right">{{ lens.serial }}</td>
|
||||||
|
<td class="text-right">${{ lens.purchasePrice }}</td>
|
||||||
|
<td>{{ lens.mount }}</td>
|
||||||
|
<td>{{ lens.imageSize }}</td>
|
||||||
|
<td class="text-center">{% if lens.formerlyOwned %}✔{% else %}✗{% endif %}</td>
|
||||||
|
<td>{{ lens.frontFilterSize }} / {{ lens.rearFilterSize }}</td>
|
||||||
|
<td class="text-center">{% if lens.isTeleconverter %}✔{% else %}✗{% endif %}</td>
|
||||||
|
<td>{{ lens.designElements }} / {{ lens.designGroups }}</td>
|
||||||
|
<td>{{ lens.apertureBlades }}</td>
|
||||||
|
<td>{{ lens.notes }}</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -7,23 +7,22 @@
|
|||||||
{% block body %}
|
{% block body %}
|
||||||
<h2>Previously Owned Cameras</h2>
|
<h2>Previously Owned Cameras</h2>
|
||||||
|
|
||||||
<table class="hover scroll stack">
|
<div class="small secondary callout">
|
||||||
|
<table class="hover scroll sortable stack">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Actions</th>
|
<th>Actions</th>
|
||||||
<th>Id</th>
|
|
||||||
<th>Brand</th>
|
<th>Brand</th>
|
||||||
<th>Mount</th>
|
<th>Mount</th>
|
||||||
<th>Model</th>
|
<th>Model</th>
|
||||||
<th>Is Digital?</th>
|
<th>Digital?</th>
|
||||||
<th>Crop Factor</th>
|
<th>Crop Factor</th>
|
||||||
<th>Is Working?</th>
|
<th>Working?</th>
|
||||||
<th>Notes</th>
|
|
||||||
<th>Serial</th>
|
<th>Serial</th>
|
||||||
<th>Purchase Price</th>
|
<th>Purchase Price</th>
|
||||||
<th>Battery Type</th>
|
<th>Battery Type</th>
|
||||||
<th>Film Format</th>
|
<th>Film Format</th>
|
||||||
<th>Received</th>
|
<th>Notes</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -32,25 +31,30 @@
|
|||||||
<td>
|
<td>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('previously-owned-camera_edit', { 'id': previouslyOwnedCamera.id }) }}">edit</a>
|
<a href="{{ path('previously-owned-camera_edit', { 'id': previouslyOwnedCamera.id }) }}">
|
||||||
|
Edit
|
||||||
|
<span class="edit-icon">✎</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="{{ path('previously-owned-camera_show', { 'id': previouslyOwnedCamera.id }) }}">View 👁</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
<td><a href="{{ path('previously-owned-camera_show', { 'id': previouslyOwnedCamera.id }) }}">{{ previouslyOwnedCamera.id }}</a></td>
|
|
||||||
<td>{{ previouslyOwnedCamera.brand }}</td>
|
<td>{{ previouslyOwnedCamera.brand }}</td>
|
||||||
<td>{{ previouslyOwnedCamera.mount }}</td>
|
<td>{{ previouslyOwnedCamera.mount }}</td>
|
||||||
<td>{{ previouslyOwnedCamera.model }}</td>
|
<td>{{ previouslyOwnedCamera.model }}</td>
|
||||||
<td>{% if previouslyOwnedCamera.isDigital %}Yes{% else %}No{% endif %}</td>
|
<td class="text-center">{% if previouslyOwnedCamera.isDigital %}✔{% else %}✗{% endif %}</td>
|
||||||
<td>{{ previouslyOwnedCamera.cropFactor }}</td>
|
<td>{{ previouslyOwnedCamera.cropFactor }}</td>
|
||||||
<td>{% if previouslyOwnedCamera.isWorking %}Yes{% else %}No{% endif %}</td>
|
<td class="text-center">{% if previouslyOwnedCamera.isWorking %}✔{% else %}✗{% endif %}</td>
|
||||||
<td>{{ previouslyOwnedCamera.notes }}</td>
|
|
||||||
<td>{{ previouslyOwnedCamera.serial }}</td>
|
<td>{{ previouslyOwnedCamera.serial }}</td>
|
||||||
<td>${{ previouslyOwnedCamera.purchasePrice }}</td>
|
<td>${{ previouslyOwnedCamera.purchasePrice }}</td>
|
||||||
<td>{{ previouslyOwnedCamera.batteryType }}</td>
|
<td>{{ previouslyOwnedCamera.batteryType }}</td>
|
||||||
<td>{{ previouslyOwnedCamera.filmFormat }}</td>
|
<td>{{ previouslyOwnedCamera.filmFormat }}</td>
|
||||||
<td>{% if previouslyOwnedCamera.received %}Yes{% else %}No{% endif %}</td>
|
<td>{{ previouslyOwnedCamera.notes }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -7,11 +7,11 @@
|
|||||||
{% block body %}
|
{% block body %}
|
||||||
<h2>Previously Owned Flashes</h2>
|
<h2>Previously Owned Flashes</h2>
|
||||||
|
|
||||||
<table class="hover scroll stack">
|
<div class="small secondary callout">
|
||||||
|
<table class="hover scroll sortable stack">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Actions</th>
|
<th>Actions</th>
|
||||||
<th>Id</th>
|
|
||||||
<th>Brand</th>
|
<th>Brand</th>
|
||||||
<th>Model</th>
|
<th>Model</th>
|
||||||
<th>Is Auto Flash?</th>
|
<th>Is Auto Flash?</th>
|
||||||
@ -22,8 +22,8 @@
|
|||||||
<th>Guide Number</th>
|
<th>Guide Number</th>
|
||||||
<th>Purchase Price</th>
|
<th>Purchase Price</th>
|
||||||
<th>Batteries</th>
|
<th>Batteries</th>
|
||||||
<th>Notes</th>
|
|
||||||
<th>Serial</th>
|
<th>Serial</th>
|
||||||
|
<th>Notes</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -32,25 +32,32 @@
|
|||||||
<td>
|
<td>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('previously-owned-flash_edit', { 'id': previouslyOwnedFlash.id }) }}">edit</a>
|
<a href="{{ path('previously-owned-flash_edit', { 'id': previouslyOwnedFlash.id }) }}">
|
||||||
|
Edit
|
||||||
|
<span class="edit-icon">✎</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a
|
||||||
|
href="{{ path('previously-owned-flash_show', { 'id': previouslyOwnedFlash.id }) }}">View 👁</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
<td><a href="{{ path('previously-owned-flash_show', { 'id': previouslyOwnedFlash.id }) }}">{{ previouslyOwnedFlash.id }}</a></td>
|
|
||||||
<td>{{ previouslyOwnedFlash.brand }}</td>
|
<td>{{ previouslyOwnedFlash.brand }}</td>
|
||||||
<td>{{ previouslyOwnedFlash.model }}</td>
|
<td>{{ previouslyOwnedFlash.model }}</td>
|
||||||
<td>{% if previouslyOwnedFlash.isAutoFlash %}Yes{% else %}No{% endif %}</td>
|
<td>{% if previouslyOwnedFlash.isAutoFlash %}✔{% else %}✗{% endif %}</td>
|
||||||
<td>{% if previouslyOwnedFlash.isTtl %}Yes{% else %}No{% endif %}</td>
|
<td>{% if previouslyOwnedFlash.isTtl %}✔{% else %}✗{% endif %}</td>
|
||||||
<td>{{ previouslyOwnedFlash.ttlType }}</td>
|
<td>{{ previouslyOwnedFlash.ttlType }}</td>
|
||||||
<td>{% if previouslyOwnedFlash.isPTtl %}Yes{% else %}No{% endif %}</td>
|
<td>{% if previouslyOwnedFlash.isPTtl %}✔{% else %}✗{% endif %}</td>
|
||||||
<td>{{ previouslyOwnedFlash.pTtlType }}</td>
|
<td>{{ previouslyOwnedFlash.pTtlType }}</td>
|
||||||
<td>{{ previouslyOwnedFlash.guideNumber }}</td>
|
<td>{{ previouslyOwnedFlash.guideNumber }}</td>
|
||||||
<td>${{ previouslyOwnedFlash.purchasePrice }}</td>
|
<td>${{ previouslyOwnedFlash.purchasePrice }}</td>
|
||||||
<td>{{ previouslyOwnedFlash.batteries }}</td>
|
<td>{{ previouslyOwnedFlash.batteries }}</td>
|
||||||
<td>{{ previouslyOwnedFlash.notes }}</td>
|
|
||||||
<td>{{ previouslyOwnedFlash.serial }}</td>
|
<td>{{ previouslyOwnedFlash.serial }}</td>
|
||||||
|
<td>{{ previouslyOwnedFlash.notes }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -7,11 +7,11 @@
|
|||||||
{% block body %}
|
{% block body %}
|
||||||
<h2>Previously Owned Lenses</h2>
|
<h2>Previously Owned Lenses</h2>
|
||||||
|
|
||||||
|
<div class="small secondary callout">
|
||||||
<table class="hover scroll stack">
|
<table class="hover scroll stack">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Actions</th>
|
<th>Actions</th>
|
||||||
<th>Id</th>
|
|
||||||
<th>Brand</th>
|
<th>Brand</th>
|
||||||
<th>Coatings</th>
|
<th>Coatings</th>
|
||||||
<th>Product Line</th>
|
<th>Product Line</th>
|
||||||
@ -20,14 +20,13 @@
|
|||||||
<th>Focal Range</th>
|
<th>Focal Range</th>
|
||||||
<th>Serial</th>
|
<th>Serial</th>
|
||||||
<th>Purchase Price</th>
|
<th>Purchase Price</th>
|
||||||
<th>Notes</th>
|
|
||||||
<th>Mount</th>
|
<th>Mount</th>
|
||||||
<th>Image Size</th>
|
<th>Image Size</th>
|
||||||
<th>Front Filter Size</th>
|
<th>Filter (F/R)</th>
|
||||||
<th>Rear Filter Size</th>
|
|
||||||
<th>Is Teleconverter?</th>
|
<th>Is Teleconverter?</th>
|
||||||
<th>Design Elements/Groups</th>
|
<th>Design Elements/Groups</th>
|
||||||
<th>Aperture Blades</th>
|
<th>Aperture Blades</th>
|
||||||
|
<th>Notes</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -36,11 +35,17 @@
|
|||||||
<td>
|
<td>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('previously-owned-lens_edit', { 'id': previouslyOwnedLense.id }) }}">edit</a>
|
<a href="{{ path('previously-owned-lens_edit', { 'id': previouslyOwnedLense.id }) }}">
|
||||||
|
Edit
|
||||||
|
<span class="edit-icon">✎</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a
|
||||||
|
href="{{ path('previously-owned-lens_show', { 'id': previouslyOwnedLense.id }) }}">View 👁</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
<td><a href="{{ path('previously-owned-lens_show', { 'id': previouslyOwnedLense.id }) }}">{{ previouslyOwnedLense.id }}</a></td>
|
|
||||||
<td>{{ previouslyOwnedLense.brand }}</td>
|
<td>{{ previouslyOwnedLense.brand }}</td>
|
||||||
<td>{{ previouslyOwnedLense.coatings }}</td>
|
<td>{{ previouslyOwnedLense.coatings }}</td>
|
||||||
<td>{{ previouslyOwnedLense.productLine }}</td>
|
<td>{{ previouslyOwnedLense.productLine }}</td>
|
||||||
@ -49,16 +54,16 @@
|
|||||||
<td>{{ previouslyOwnedLense.minFocalLength }} — {{ previouslyOwnedLense.maxFocalLength }}</td>
|
<td>{{ previouslyOwnedLense.minFocalLength }} — {{ previouslyOwnedLense.maxFocalLength }}</td>
|
||||||
<td>{{ previouslyOwnedLense.serial }}</td>
|
<td>{{ previouslyOwnedLense.serial }}</td>
|
||||||
<td>${{ previouslyOwnedLense.purchasePrice }}</td>
|
<td>${{ previouslyOwnedLense.purchasePrice }}</td>
|
||||||
<td>{{ previouslyOwnedLense.notes }}</td>
|
|
||||||
<td>{{ previouslyOwnedLense.mount }}</td>
|
<td>{{ previouslyOwnedLense.mount }}</td>
|
||||||
<td>{{ previouslyOwnedLense.imageSize }}</td>
|
<td>{{ previouslyOwnedLense.imageSize }}</td>
|
||||||
<td>{{ previouslyOwnedLense.frontFilterSize }}</td>
|
<td>{{ previouslyOwnedLense.frontFilterSize }} / {{ previouslyOwnedLense.rearFilterSize }}</td>
|
||||||
<td>{{ previouslyOwnedLense.rearFilterSize }}</td>
|
<td class="text-center">{% if previouslyOwnedLense.isTeleconverter %}✔{% else %}✗{% endif %}</td>
|
||||||
<td>{% if previouslyOwnedLense.isTeleconverter %}Yes{% else %}No{% endif %}</td>
|
|
||||||
<td>{{ previouslyOwnedLense.designElements }}/{{ previouslyOwnedLense.designGroups }}</td>
|
<td>{{ previouslyOwnedLense.designElements }}/{{ previouslyOwnedLense.designGroups }}</td>
|
||||||
<td>{{ previouslyOwnedLense.apertureBlades }}</td>
|
<td>{{ previouslyOwnedLense.apertureBlades }}</td>
|
||||||
|
<td>{{ previouslyOwnedLense.notes }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user