forked from DGNum/gestioCOF
Template HTML du catalogue actuel du BdA
This commit is contained in:
parent
3bca778734
commit
c449ecf842
2 changed files with 69 additions and 64 deletions
BIN
bda/static/fonts/josefinsans.ttf
Normal file
BIN
bda/static/fonts/josefinsans.ttf
Normal file
Binary file not shown.
|
@ -1,64 +1,69 @@
|
||||||
|
<!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 %}
|
{% for show in shows %}
|
||||||
<table id="spectacle-{{ show.id }}">
|
<table class="descTable">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="2">
|
<th colspan="2"><p style="text-align:center;font-size:22px;">{{ show.title }}</p></th>
|
||||||
<p style="text-align: center;">{{ show.title }}</p>
|
|
||||||
</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ show.location }}</td>
|
<td><p style="text-align: left;">{{ show.location }}</p></td><td class="column-2"><p style="text-align: right;">{{ show.category }}</p></td>
|
||||||
<td>{% if show.category %}{{ show.category }}{% endif %}</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ show.date }}</td>
|
<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>
|
||||||
<td>{{ show.slots }} place{{ show.slots|pluralize}} - show.price</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2"><p style="text-align: justify;">{{ show.category }}</p></td>
|
||||||
<p style="text-align: justify;">{{ show.vips }}</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<p style="text-align: justify;">{{ show.description }}</p>
|
<p style="text-align: justify;">{{ show.description }}</p>
|
||||||
{% for quote in show.quote_set.all %}
|
{% for quote in show.quote_set.all %}
|
||||||
<br />
|
<p style="text-align:center; font-style: italic;">«{{ quote.text }}»{% if show.quote.author %} - {{ quote.author }}{% endif %}</p>
|
||||||
<p style="text-align: center;">“{{ quote.text }}”</p>
|
|
||||||
<div align="right">{{ quote.author }}</div>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% if slots_description != "" %}
|
|
||||||
<tr>
|
|
||||||
<td colspan="2">
|
|
||||||
{{ show.slots_description }}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{% endif %}
|
|
||||||
{% if show.image %}
|
{% if show.image %}
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<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>
|
||||||
<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>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue