forked from DGNum/gestioCOF
71 lines
2.5 KiB
HTML
71 lines
2.5 KiB
HTML
{% load staticfiles %}
|
|
|
|
<!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="{{ MEDIA_URL }}{{ show.image }}" alt="{{ show.title }}" width="200px"></a></p></td>
|
|
</tr>
|
|
{% endif %}
|
|
</tbody>
|
|
</table>
|
|
{% endfor %}
|
|
</body>
|
|
</html>
|