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