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 @@
|
|||
{% for show in shows %}
|
||||
<table id="spectacle-{{ show.id }}">
|
||||
<!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;">{{ show.title }}</p>
|
||||
</th>
|
||||
<th colspan="2"><p style="text-align:center;font-size:22px;">{{ show.title }}</p></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ show.location }}</td>
|
||||
<td>{% if show.category %}{{ show.category }}{% endif %}</td>
|
||||
<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>{{ show.date }}</td>
|
||||
<td>{{ show.slots }} place{{ show.slots|pluralize}} - show.price</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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<p style="text-align: justify;">{{ show.vips }}</p>
|
||||
</td>
|
||||
<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 %}
|
||||
<br />
|
||||
<p style="text-align: center;">“{{ quote.text }}”</p>
|
||||
<div align="right">{{ quote.author }}</div>
|
||||
<p style="text-align:center; font-style: italic;">«{{ quote.text }}»{% if show.quote.author %} - {{ quote.author }}{% endif %}</p>
|
||||
{% 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>
|
||||
<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 %}
|
||||
{% endfor %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue