{% if aprovadas %}
{% for p in aprovadas %}
+ {% if forloop.first %}
+
+ <h3>
+ {{ p.dia|date:"l, d \de F" }}
+ </h3>
+ <br />
+ <table>
+ <tr>
+
+ {% else %}
{% ifchanged p.dia %}
- <h3>
- {{ p.dia|date:"l, d \de F" }}
- </h3>
- <br /><br />
- <table>
- <tr>
- {% endifchanged %}
- {% ifchanged p.time_start %}
- </tr>
- <tr>
- <td> p.time_start </td>
+
+ </tr>
+ </table>
+
+
+ <h3>
+ {{ p.dia|date:"l, d \de F" }}
+ </h3>
+ <br />
+ <table>
+ <tr>
+
{% endifchanged %}
- <td>p.titulo</td>
- {% ifchanged p.dia %}
- </tr>
- </table>
+ {% endif %}
+
+ {% ifchanged p.time_start %}
+
+ </tr>
+ <tr>
+ <td> {{ p.time_start }} </td>
+
{% endifchanged %}
+
+ <td> {{ p.titulo }} </td>
+
+ {% if forloop.last %}
+
+ </tr>
+ </table>
+
+ {% endif %}
{% endfor %}
{% else %}
{% endif %}
+<br />
<a href="javascript:;" onclick="history.back ();">Voltar</a>
{% endblock %}