forked from DGNum/gestioCOF
ab4e7ec084
- 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.
64 lines
1.7 KiB
HTML
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 %}
|