This repository has been archived on 2025-02-01. You can view files and clone it, but cannot push or open issues or pull requests.
django-stock/wine/templates/wine/detail.html

55 lines
1.2 KiB
HTML

{% extends 'homepage/base.html' %}
{% block content %}
<h2>{{ wine.winery.name }} - {{ wine.name }}</h2>
<p class="lead">
{{ wine.comment }}
</p>
<dl class="row">
<dt class="col-sm-3">Cépages</dt>
<dd class="col-sm-9">
<ul>
{% for variety in wine.variety.all %}
<li>{{ variety.name }}</li>
{% endfor %}
</ul>
</dd>
<dt class="col-sm-3">Cave</dt>
<dd class="col-sm-9">
{{ wine.winery.name }}
</dd>
<dt class="col-sm-3">Stockage</dt>
<dd class="col-sm-9">
{{ wine.storage.name }}
</dd>
</dl>
<table class="table table-striped">
<thead>
<tr>
<th scope="col">Année</th>
<th scope="col">Taille</th>
<th scope="col">Bouteilles</th>
<th scope="col">Operation</th>
</tr>
</thead>
<tbody>
{% for millesime in wine.millesime_set.all %}
<tr>
<th scope="row">{{ millesime.year }}</th>
<td>{{ millesime.available }}</td>
<td>{{ millesime.get_size_display }}</td>
<td>
<a type="button" class="btn btn-outline-primary" href="{% url 'wine:takeout' millesime.id%}">Sortir</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}