gestioCOF/bda/templates/descriptions.html
Martin Pépin ab4e7ec084 Ajout d'infos dans les spectacles
- Ajoute des informations supplémentaires au modèle `Spectacle`.
- Supprime le champ inutilisé `priority`.
- Utilise le champ inutilisé `slots_description`.
- Adapte le template `descriptions.html` et la vue admin à ces changements.
2016-08-26 05:28:04 +02:00

64 lines
1.7 KiB
HTML

{% for show in shows %}
<table id="spectacle-{{ show.id }}">
<thead>
<tr>
<th colspan="2">
<p style="text-align: center;">{{ show.title }}</p>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ show.location }}</td>
<td>{% if show.category %}{{ show.category }}{% endif %}</td>
</tr>
<tr>
<td>{{ show.date }}</td>
<td>{{ show.slots }} place{{ show.slots|pluralize}} - show.price</td>
</tr>
<tr>
<td colspan="2">
<p style="text-align: justify;">{{ show.vips }}</p>
</td>
</tr>
<tr>
<td colspan="2">
<p style="text-align: justify;">{{ show.description }}</p>
{% for quote in show.quote_set.all %}
<br />
<p style="text-align: center;">“{{ quote.text }}”</p>
<div align="right">{{ quote.author }}</div>
{% endfor %}
</td>
</tr>
{% if slots_description != "" %}
<tr>
<td colspan="2">
{{ show.slots_description }}
</td>
</tr>
{% endif %}
{% if show.image %}
<tr>
<td colspan="2">
<p style="text-align: center;">
{% if show.ext_link != "" %}
<a href="{{ show.ext_link }}"
<img style="display: inline;" src="{{ show.image }}" alt="{{ show.title }}" />
</a>
{% else %}
<img style="display: inline;" src="{{ show.image }}" alt="{{ show.title }}" />
{% endif %}
</p>
</td>
</tr>
{% elif show.ext_link != "" %}
<tr>
<td colspan="2">
<a href="{{ show.ext_link }}">Lien vers le site du spectacle</a>
</td>
</tr>
{% endif %}
</tbody>
</table>
{% endfor %}