gestioCOF/bda/templates/descriptions.html

65 lines
1.7 KiB
HTML
Raw Normal View History

{% 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 %}