Commit 2faa8f7e authored by Simon Daron's avatar Simon Daron
Browse files

Style of the grid

parent 7eac4785
......@@ -16,7 +16,7 @@
border-top: 5px solid #D0D0D0;
border-left: 5px solid #D0D0D0;
}
#grille td {
#grille td,#grille th {
border-bottom: 5px solid #D0D0D0;
border-right: 5px solid #D0D0D0;
}
......@@ -60,31 +60,31 @@
<tr>
<td><br/></td>
{% for weekday in weekdays %}
<td width="13%"><h3 class="jour">{{ weekday }}</h3></td>
<th width="13%">{{ weekday }}</th>
{% endfor %}
<td><br/></td>
</tr>
{% for time_header, time_cells in times|zip:grid %}
<tr>
<td class="heure">{{ time_header }}</td>
<th class="heure">{{ time_header }}</th>
{% for cell in time_cells %}
<td {% if cell.w > 1 %}colspan="{{cell.w}}"{% endif %}
{% if cell.h > 1 %}rowspan="{{cell.h}}"{% endif %}>
{% if cell.time_label %}<h5>{{ cell.time_label }}</h5>{% endif %}
{% if cell.time_label %}<div class="cell-time-label">{{ cell.time_label }}</div>{% endif %}
{% if cell.schedules %}
{% for schedule in cell.schedules %}
<h4><a href="{% url 'emission-view' slug=schedule.emission.slug %}">{{ schedule.emission.title }}</a></h4>
<div class="emission-title"><a href="{% url 'emission-view' slug=schedule.emission.slug %}">{{ schedule.emission.title }}</a></div>
{% if schedule.weeks_string %}
({{ schedule.weeks_string }})
{% endif %}
{% endfor %}
{% else %}
<h3 class="continu">{{ cell }}</h3>
<div class="continu cell">{{ cell }}</div>
{% if cell.w > 1 and cell.h > 1%}<p>la musique en continu</p>{% endif %}
{% endif %}
</td>
{% endfor %}
<td class="heure">{{ time_header }}</td>
<th class="heure">{{ time_header }}</th>
</tr>
{% endfor %}
</tbody>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment