Template HTML du catalogue actuel du BdA

This commit is contained in:
Hugo Roussille 2016-08-30 02:13:43 +02:00
parent 3bca778734
commit c449ecf842
2 changed files with 69 additions and 64 deletions

Binary file not shown.

View file

@ -1,64 +1,69 @@
{% 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 %}
<!doctype html>
<html>
<head>
<style>
@font-face {
font-family: josefinsans;
src: url({% static "fonts/josefinsans.ttf" %});
}
*::-moz-selection {
background: #B0B0B0;
}
*::selection {
background: #B0B0B0;
}
.descTable{
width: auto;
margin: 0 auto 1em;
border-collapse: collapse;
border-spacing: 0;
font-size: 14px;
line-height: 2;
max-width: 100%;
background-color: transparent;
font-family: 'josefinsans', 'Arial';
font-weight: 700;
color: #5a5a5a;
}
</style>
<meta charset="utf8" />
</head>
<body>
{% for show in shows %}
<table class="descTable">
<thead>
<tr>
<th colspan="2"><p style="text-align:center;font-size:22px;">{{ show.title }}</p></th>
</tr>
</thead>
<tbody>
<tr>
<td><p style="text-align: left;">{{ show.location }}</p></td><td class="column-2"><p style="text-align: right;">{{ show.category }}</p></td>
</tr>
<tr>
<td><p style="text-align: left;">{{ show.date }}</p></td><td class="column-2"><p style="text-align: right;">{{ show.slots }} place{{ show.slots|pluralize}} {% if slots_description != "" %}({{ show.slots_description }}){% endif %}- show.price</p></td>
</tr>
<tr>
<td colspan="2"><p style="text-align: justify;">{{ show.category }}</p></td>
</tr>
<tr>
<td colspan="2">
<p style="text-align: justify;">{{ show.description }}</p>
{% for quote in show.quote_set.all %}
<p style="text-align:center; font-style: italic;">«{{ quote.text }}»{% if show.quote.author %} - {{ quote.author }}{% endif %}</p>
{% endfor %}
</td>
</tr>
{% if show.image %}
<tr>
<td colspan="2"><p style="text-align:center;"><a href="{{ show.ext_link }}"><img style="display: inline;" src="{{ show.image }}" alt="{{ show.title }}" width="200px"></a></p></td>
</tr>
{% endif %}
</tbody>
</table>
{% endfor %}
</body>
</html>