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> </head>
<body> <body>
<main class="page-pad"> <main class="page-pad">
<h1>Camera Collection Admin</h1>
<div class="top-bar"> <div class="top-bar">
<div class="top-bar-left"> <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' }}"> <li class="{{ route starts with 'camera_' ? 'is-active' }}">
<a href="{{ path('camera_index') }}">Cameras</a> <a href="{{ path('camera_index') }}">Cameras</a>
</li> </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' }}"> <li class="{{ route starts with 'flash_' ? 'is-active' }}">
<a href="{{ path('flash_index') }}">Flashes</a> <a href="{{ path('flash_index') }}">Flashes</a>
</li> </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' }}"> <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>
<li class="{{ route starts with 'previously-owned-lens' ? 'is-active' }}"> <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> </li>
</ul> </ul>
</div> </div>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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