2016-08-30 23:48:58 +02:00
|
|
|
{% load staticfiles %}
|
|
|
|
|
2016-08-30 02:13:43 +02:00
|
|
|
<!doctype html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2016-09-14 16:22:30 +02:00
|
|
|
<base target="_parent"/>
|
2016-08-30 02:13:43 +02:00
|
|
|
<style>
|
|
|
|
@font-face {
|
|
|
|
font-family: josefinsans;
|
|
|
|
src: url({% static "fonts/josefinsans.ttf" %});
|
|
|
|
}
|
|
|
|
|
|
|
|
*::-moz-selection {
|
|
|
|
background: #B0B0B0;
|
|
|
|
}
|
|
|
|
|
|
|
|
*::selection {
|
|
|
|
background: #B0B0B0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.descTable{
|
2016-09-12 16:48:15 +02:00
|
|
|
width: 100%;
|
2016-08-30 02:13:43 +02:00
|
|
|
margin: 0 auto 1em;
|
2016-09-08 12:52:07 +02:00
|
|
|
border-bottom: 2px solid;
|
2016-08-30 02:13:43 +02:00
|
|
|
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;
|
|
|
|
}
|
2016-09-20 23:32:42 +02:00
|
|
|
|
|
|
|
img{
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
2016-08-30 02:13:43 +02:00
|
|
|
</style>
|
|
|
|
<meta charset="utf8" />
|
|
|
|
</head>
|
2016-09-11 01:32:32 +02:00
|
|
|
<script src="https://code.jquery.com/jquery-3.1.0.min.js"></script>
|
2016-08-30 02:13:43 +02:00
|
|
|
<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>
|
2016-09-05 20:08:43 +02:00
|
|
|
<td><p style="text-align: left;">{{ show.date|date:"l j F Y - H\hi" }}</p></td><td class="column-2"><p style="text-align: right;">{{ show.slots }} place{{ show.slots|pluralize}} {% if show.slots_description != "" %}({{ show.slots_description }}){% endif %} - {{ show.price }} euro{{ show.price|pluralize}}</p></td>
|
2016-08-30 02:13:43 +02:00
|
|
|
</tr>
|
2016-09-14 16:22:30 +02:00
|
|
|
{% if show.vips %}
|
|
|
|
<tr>
|
|
|
|
<td colspan="2"><p style="text-align: justify;">{{ show.vips }}</p></td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
|
|
<tr>
|
2016-08-30 02:13:43 +02:00
|
|
|
<td colspan="2">
|
|
|
|
<p style="text-align: justify;">{{ show.description }}</p>
|
|
|
|
{% for quote in show.quote_set.all %}
|
2016-09-14 16:22:30 +02:00
|
|
|
<p style="text-align:center; font-style: italic;">«{{ quote.text }}»{% if quote.author %} - {{ quote.author }}{% endif %}</p>
|
2016-08-30 02:13:43 +02:00
|
|
|
{% endfor %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% if show.image %}
|
|
|
|
<tr>
|
2016-09-11 01:32:32 +02:00
|
|
|
<td colspan="2"><p style="text-align:center;"><a href="{{ show.ext_link }}"><img class="imgDesc" style="display: inline;" src="{{ MEDIA_URL }}{{ show.image }}" alt="{{ show.title }}"></a></p></td>
|
2016-08-30 02:13:43 +02:00
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{% endfor %}
|
2016-09-11 01:32:32 +02:00
|
|
|
<script>
|
|
|
|
// Correction de la taille des images
|
|
|
|
|
2016-09-20 23:32:42 +02:00
|
|
|
/*$(document).ready(function() {
|
2016-09-12 16:48:15 +02:00
|
|
|
$(".descTable").each(function() {
|
|
|
|
$(this).width($("body").width());
|
|
|
|
});
|
|
|
|
|
2016-09-11 01:32:32 +02:00
|
|
|
$(".imgDesc").on("load", function() {
|
|
|
|
|
|
|
|
// Dimensions
|
|
|
|
origHeight = 500; // Hauteur souhaitée
|
|
|
|
|
|
|
|
w = $(this).width();
|
|
|
|
h = $(this).height();
|
|
|
|
r = w/h; // Ratio de l'image
|
2016-09-12 16:48:15 +02:00
|
|
|
maxWidth = $("body").width();
|
2016-09-11 01:32:32 +02:00
|
|
|
|
|
|
|
if (r * origHeight > maxWidth)
|
|
|
|
{
|
|
|
|
$(this).width(maxWidth);
|
|
|
|
$(this).height(maxWidth/r);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$(this).width(r * origHeight);
|
|
|
|
$(this).height(origHeight);
|
|
|
|
}
|
|
|
|
});
|
2016-09-20 23:32:42 +02:00
|
|
|
});*/
|
2016-09-11 01:32:32 +02:00
|
|
|
|
|
|
|
|
|
|
|
</script>
|
2016-08-30 02:13:43 +02:00
|
|
|
</body>
|
|
|
|
</html>
|