grid.html 472 Bytes
Newer Older
fred's avatar
fred committed
1
{% extends "base.html" %}
fred's avatar
fred committed
2
{% load paniktags %}
fred's avatar
fred committed
3
4
5
6
7
8

{% block content %}

<h2>Grille</h2>

<table border=1>
fred's avatar
fred committed
9
{% for time_header, time_cells in times|zip:grid %}
fred's avatar
fred committed
10
<tr>
fred's avatar
fred committed
11
  <td>{{ time_header }}</td>
fred's avatar
fred committed
12
13
14
15
  {% for cell in time_cells %}
  <td {% if cell.w > 1 %}colspan="{{cell.w}}"{% endif %}
      {% if cell.h > 1 %}rowspan="{{cell.h}}"{% endif %}>{{ cell }}</td>
  {% endfor %}
fred's avatar
fred committed
16
  <td>{{ time_header }}</td>
fred's avatar
fred committed
17
18
19
20
21
22
</tr>
{% endfor %}
</table>


{% endblock %}
fred's avatar
fred committed
23
24
25

{% block news %}
{% endblock %}