Update templates

This commit is contained in:
Timothy Warren 2017-11-10 15:50:05 -05:00
parent 2b7594f52d
commit c6c490027e
18 changed files with 92 additions and 75 deletions

View File

@ -13,26 +13,34 @@
</head>
<body>
<main class="page-pad">
<h1>Camera Collection Admin</h1>
<div class="top-bar">
<div class="top-bar-left">
<ul class="menu expanded align-center">
<ul class="menu">
<li class="menu-text">Camera Collection</li>
<li class="{{ route starts with 'camera_' ? 'is-active' }}">
<a href="{{ path('camera_index') }}">Cameras</a>
</li>
<li class="{{ route starts with 'camera-type_' ? 'is-active' }}">
<a href="{{ path('camera-type_index') }}">Camera Types</a>
</li>
<li class="{{ route starts with 'lens_' ? 'is-active' }}">
<a href="{{ path('lens_index') }}">Lenses</a>
</li>
<li class="{{ route starts with 'flash_' ? 'is-active' }}">
<a href="{{ path('flash_index') }}">Flashes</a>
</li>
<li class="{{ route starts with 'lens_' ? 'is-active' }}">
<a href="{{ path('lens_index') }}">Lenses</a>
</li>
<li class="menu-text">Meta</li>
<li class="{{ route starts with 'camera-type_' ? 'is-active' }}">
<a href="{{ path('camera-type_index') }}">Camera Types</a>
</li>
</ul>
</div>
<div class="top-bar-right">
<ul class="menu centered">
<li class="menu-text">Previously Owned</li>
<li class="{{ route starts with 'previously-owned-camera' ? 'is-active' }}">
<a href="{{ path('previously-owned-camera_index') }}">Previously Owned Cameras</a>
<a href="{{ path('previously-owned-camera_index') }}">Cameras</a>
</li>
<li class="{{ route starts with 'previously-owned-lens' ? 'is-active' }}">
<a href="{{ path('previously-owned-lens_index') }}">Previously Owned Lenses</a>
<a href="{{ path('previously-owned-lens_index') }}">Lenses</a>
</li>
</ul>
</div>

View File

@ -1,9 +1,9 @@
{% extends 'base.html.twig' %}
{% block body %}
<h1>Cameras</h1>
<h2>Cameras</h2>
<div class="callout primary">
<div class="small callout primary">
<ul>
<li>
<a href="{{ path('camera_new') }}">Add a new camera</a>
@ -11,7 +11,7 @@
</ul>
</div>
<table>
<table class="hover scroll stack">
<thead>
<tr>
<th>Actions</th>
@ -51,7 +51,7 @@
<td>{{ camera.notes }}</td>
<td>{{ camera.serial }}</td>
<td>{% if camera.formerlyOwned %}Yes{% else %}No{% endif %}</td>
<td>{{ camera.purchasePrice }}</td>
<td>${{ camera.purchasePrice }}</td>
<td>{{ camera.batteryType }}</td>
<td>{{ camera.filmFormat }}</td>
<td>{% if camera.received %}Yes{% else %}No{% endif %}</td>

View File

@ -1,9 +1,9 @@
{% extends 'form.html.twig' %}
{% block form %}
<h1>Add a Camera</h1>
<h2>Add a Camera</h2>
<div class="callout">
<div class="small callout">
<ul>
<li>
<a href="{{ path('camera_index') }}">Back to the list</a>
@ -11,7 +11,7 @@
</ul>
</div>
<div class="primary callout">
<div class="large primary callout">
{{ form_start(form) }}
{{ form_widget(form) }}
<button type="submit" class="button">Add</button>

View File

@ -1,9 +1,9 @@
{% extends 'form.html.twig' %}
{% block form %}
<h1>Camera</h1>
<h2>Camera</h2>
<div class="callout">
<div class="callout">
<ul>
<li>
<a href="{{ path('camera_index') }}">Back to the list</a>
@ -12,10 +12,18 @@
<a href="{{ path('camera_edit', { 'id': camera.id }) }}">Edit</a>
</li>
</ul>
</div>
<div class="primary callout">
<hr />
{{ form_start(delete_form) }}
<button type="submit" class="alert button">Delete Camera</button>
{{ form_end(delete_form) }}
</div>
<div class="large primary callout">
<table>
<tbody>
<tr>
@ -78,9 +86,5 @@
</table>
</div>
<div class="callout">
{{ form_start(delete_form) }}
<button type="submit" class="alert button">Delete Camera</button>
{{ form_end(delete_form) }}
</div>
{% endblock %}

View File

@ -3,7 +3,7 @@
{% block body %}
<h1>Camera Types</h1>
<div class="primary callout">
<div class="small primary callout">
<ul>
<li>
<a href="{{ path('camera-type_new') }}">Add a Camera Type</a>
@ -11,7 +11,7 @@
</ul>
</div>
<table>
<table class="hover scroll stack">
<thead>
<tr>
<th>Actions</th>

View File

@ -3,7 +3,7 @@
{% block form %}
<h1>Add a Camera Type</h1>
<div class="callout">
<div class="small callout">
<ul>
<li>
<a href="{{ path('camera-type_index') }}">Back to the list</a>
@ -11,7 +11,7 @@
</ul>
</div>
<div class="callout primary">
<div class="large primary callout">
{{ form_start(form) }}
{{ form_widget(form) }}
<button type="submit" class="button">Add</button>

View File

@ -1,20 +1,28 @@
{% extends 'form.html.twig' %}
{% block form %}
<h1>Camera Type</h1>
<h2>Camera Type</h2>
<div class="callout">
<ul>
<li>
<ul>
<li>
<a href="{{ path('camera-type_index') }}">Back to the list</a>
</li>
<li>
<a href="{{ path('camera-type_edit', { 'id': cameraType.id }) }}">Edit</a>
</li>
</ul>
</div>
</ul>
<div class="primary callout">
<hr />
{{ form_start(delete_form) }}
<button type="submit" class="alert button">Delete Camera Type</button>
{{ form_end(delete_form) }}
</div>
<div class="large primary callout">
<table>
<tbody>
<tr>
@ -28,10 +36,4 @@
</tbody>
</table>
</div>
<div class="callout">
{{ form_start(delete_form) }}
<button type="submit" class="alert button">Delete Camera Type</button>
{{ form_end(delete_form) }}
</div>
{% endblock %}

View File

@ -3,7 +3,7 @@
{% block body %}
<h1>Flashes list</h1>
<div class="primary callout">
<div class="small primary callout">
<ul>
<li>
<a href="{{ path('flash_new') }}">Add a Flash</a>
@ -11,7 +11,7 @@
</ul>
</div>
<table>
<table class="hover scroll stack">
<thead>
<tr>
<th>Actions</th>

View File

@ -3,7 +3,7 @@
{% block form %}
<h1>Flash creation</h1>
<div class="callout">
<div class="small callout">
<ul>
<li>
<a href="{{ path('flash_index') }}">Back to the list</a>
@ -11,7 +11,7 @@
</ul>
</div>
<div class="callout primary">
<div class="large primary callout">
{{ form_start(form) }}
{{ form_widget(form) }}
<button type="submit" class="button">Add</button>

View File

@ -1,7 +1,7 @@
{% extends 'form.html.twig' %}
{% block form %}
<h1>Flash</h1>
<h2>Flash</h1>
<div class="callout">
<ul>
@ -12,9 +12,16 @@
<a href="{{ path('flash_edit', { 'id': flash.id }) }}">Edit</a>
</li>
</ul>
<hr />
{{ form_start(delete_form) }}
<button type="submit" class="alert button">Delete Flash</button>
{{ form_end(delete_form) }}
</div>
<div class="primary callout">
<div class="large primary callout">
<table>
<tbody>
<tr>
@ -73,10 +80,4 @@
</table>
</div>
<div class="callout">
{{ form_start(delete_form) }}
<button type="submit" class="alert button">Delete Flash</button>
{{ form_end(delete_form) }}
</div>
{% endblock %}

View File

@ -10,8 +10,8 @@
{% block body %}
<div class="grid-container">
<div class="x-grid">
<div class="medium-4">
<div class="x-grid grid-margin-x">
<div class="large-4 medium-6 cell">
{% block form %}{% endblock %}
</div>
</div>

View File

@ -3,7 +3,7 @@
{% block body %}
<h1>Lenses</h1>
<div class="primary callout">
<div class="small primary callout">
<ul>
<li>
<a href="{{ path('lens_new') }}">Add a Lens</a>
@ -11,11 +11,12 @@
</ul>
</div>
<table>
<table class="hover scroll stack">
<thead>
<tr>
<th>Actions</th>
<th>Id</th>
<th>Brand</th>
<th>Description</th>
<th>Aperture Range</th>
<th>Focal Range</th>
@ -43,7 +44,8 @@
</ul>
</td>
<td><a href="{{ path('lens_show', { 'id': lense.id }) }}">{{ lense.id }}</a></td>
<td>{{ lense.brand }} {{ lense.coatings }} {{ lense.productLine }} {{ lense.model }}</td>
<td>{{ lense.brand }}</td>
<td>{{ lense.coatings }} {{ lense.productLine }} {{ lense.model }}</td>
<td>{{ lense.minFStop }} &mdash; {{ lense.maxFStop }}</td>
<td>{{ lense.minFocalLength }} &mdash; {{ lense.maxFocalLength }}</td>
<td>{{ lense.serial }}</td>

View File

@ -3,7 +3,7 @@
{% block form %}
<h1>Add a Lens</h1>
<div class="callout">
<div class="small callout">
<ul>
<li>
<a href="{{ path('lens_index') }}">Back to the list</a>
@ -11,7 +11,7 @@
</ul>
</div>
<div class="primary callout">
<div class="large primary callout">
{{ form_start(form) }}
{{ form_widget(form) }}
<button type="submit" class="button">Add</button>

View File

@ -1,7 +1,7 @@
{% extends 'form.html.twig' %}
{% block form %}
<h1>Lens</h1>
<h2>Lens</h2>
<div class="callout">
<ul>
@ -12,9 +12,15 @@
<a href="{{ path('lens_edit', { 'id': lense.id }) }}">Edit</a>
</li>
</ul>
<hr>
{{ form_start(delete_form) }}
<button type="submit" class="alert button">Delete Lens</button>
{{ form_end(delete_form) }}
</div>
<div class="primary callout">
<div class="large primary callout">
<table>
<tbody>
<tr>
@ -93,10 +99,4 @@
</table>
</div>
<div class="callout">
{{ form_start(delete_form) }}
<button type="submit" class="alert button">Delete Lens</button>
{{ form_end(delete_form) }}
</div>
{% endblock %}

View File

@ -3,7 +3,7 @@
{% block body %}
<h1>Previously Owned Cameras</h1>
<table>
<table class="hover scroll stack">
<thead>
<tr>
<th>Actions</th>

View File

@ -1,7 +1,7 @@
{% extends 'form.html.twig' %}
{% block form %}
<h1>Previously Owned Camera</h1>
<h2>Previously Owned Camera</h2>
<div class="callout">
<ul>
@ -14,7 +14,7 @@
</ul>
</div>
<div class="primary callout">
<div class="large primary callout">
<table>
<tbody>
<tr>

View File

@ -3,7 +3,7 @@
{% block body %}
<h1>Previously Owned Lenses</h1>
<table>
<table class="hover scroll stack">
<thead>
<tr>
<th>Actions</th>

View File

@ -1,7 +1,7 @@
{% extends 'form.html.twig' %}
{% block form %}
<h1>Previously Owned Lens</h1>
<h2>Previously Owned Lens</h2>
<div class="callout">
<ul>
@ -14,7 +14,7 @@
</ul>
</div>
<div class="primary callout">
<div class="large primary callout">
<table>
<tbody>
<tr>
@ -43,7 +43,7 @@
</tr>
<tr>
<th>Focal Range</th>
<td>{{ previouslyOwnedLense.minFocalLength }} &mdash; {{ previouslyOwnedLense.maxFocalLength }}</td>
<td>{{ previouslyOwnedLense.minFocalLength }} &mdash; {{ previouslyOwnedLense.maxFocalLength }}mm</td>
</tr>
<tr>
<th>Serial</th>