Add film tweaks

This commit is contained in:
Timothy Warren 2018-02-19 10:48:42 -05:00
parent 3d7ec2ebde
commit bd94b198f8
4 changed files with 35 additions and 2 deletions

View File

@ -31,7 +31,7 @@ class Film {
/**
* @var string
*
* @ORM\Column(name="product_line", type="string", nullable=false)
* @ORM\Column(name="product_line", type="string", nullable=true)
*/
private $productLine;
@ -42,6 +42,13 @@ class Film {
*/
private $filmName;
/**
* @var string
*
* @ORM\Column(name="film_alias", type="string", nullable=true)
*/
private $filmAlias;
/**
* @var int
*
@ -136,7 +143,7 @@ class Film {
* @param string $productLine
* @return self
*/
public function setProductLine(string $productLine): self
public function setProductLine(?string $productLine): self
{
$this->productLine = $productLine;
return $this;
@ -160,6 +167,24 @@ class Film {
return $this;
}
/**
* @return string
*/
public function getFilmAlias(): ?string
{
return $this->filmAlias;
}
/**
* @param string $filmAlias
* @return self
*/
public function setFilmAlias(string $filmAlias): self
{
$this->filmAlias = $filmAlias;
return $this;
}
/**
* @return int
*/

View File

@ -19,6 +19,7 @@
<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>
@ -42,6 +43,7 @@
<td>{{ film.brand }}</td>
<td>{{ film.productLine }}</td>
<td>{{ film.filmName }}</td>
<td>{{ film.filmAlias }}</td>
<td>{{ film.filmSpeedAsa }}/{{ film.filmSpeedDin }}&deg;</td>
<td>{{ film.filmFormat }}</td>
<td>{{ film.filmBase }}</td>

View File

@ -41,6 +41,10 @@
<th>Film Name</th>
<td>{{ film.filmName }}</td>
</tr>
<tr>
<th>Film Alias</th>
<td>{{ film.filmAlias }}</td>
</tr>
<tr>
<th>Film Speed</th>
<td>{{ film.filmSpeedAsa }}/{{ film.filmSpeedDin }}&deg;</td>

View File

@ -22,6 +22,8 @@
<li class="{{ route starts with 'previously-owned-lens' ? 'is-active' }}">
<a href="{{ path('previously-owned-lens_index') }}">Lenses</a>
</li>
</ul>
<ul class="menu">
<li class="menu-text">Meta</li>
<li class="{{ route starts with 'film_' ? 'is-active' }}">
<a href="{{ path('film_index') }}">Film</a>