Bloody template hackers. Hope this works and they don't change semantics later.
[cascardo/eventmanager.git] / templates / grade.html
index 0cf74a4..13796b4 100644 (file)
@@ -1,28 +1,59 @@
 {% extends "base.html" %}
+
 {% block content %}
 
 {% if aprovadas %}
 
-<!--<h2>{{ dados_usuario.nome }}</h2>-->
-    {% for p in aprovadas %}
+  {% for p in aprovadas %}
+    {% if forloop.first %}
+  <h3>
+    {{ p.dia|date:"l, d \de F" }}
+  </h3>
+  <br />
+  <table>
+    <tr>
+
+    {% ifchanged p.dia %}
+    {% endifchanged %}
+
+    {% else %}
     {% ifchanged p.dia %}
-      <h3>
-        {{ p.dia|date:"l, d \de F" }}
-      </h3>
-      <br /><br />
+
+    </tr>
+  </table>
+
+
+  <h3>
+    {{ p.dia|date:"l, d \de F" }}
+  </h3>
+  <br />
+  <table>
+    <tr>
+
+    {% endifchanged %}
+    {% endif %}
+  
+    {% ifchanged p.time_start %}
+
+    </tr>
+    <tr>
+      <td> {{ p.time_start }} </td>
+
     {% endifchanged %}
-    <span style="font-size:12pt"><a href="/palestra/{{p.id}}/" style="color:#333;">{{p.titulo}}</a></span>
-        <br />
-        <span style="font-weight:bolder;margin-left:15px">Palestrante{{ p.palestrante.all|pluralize }}:</span>
-        <br />
-            {% for x in p.palestrante.all %}
-        <span style="margin-left:30px">
-            <a href="/palestrante/{{x.id}}/">{{x.nome|capfirst}} </a>{% ifnotequal p.palestrante.all|length 1%}<br /> {% endifnotequal %}
-        </span>
-            {% endfor %}
-        <br />
-    {% endfor %}
+
+      <td> {{ p.titulo }} </td>
+
+    {% if forloop.last %}
+
+    </tr>
+  </table>
+
+    {% endif %}
+  {% endfor %}
+
 {% else %}
+
 <div id="404" style="text-align:center">
     <h2>Padre Quevedo 404</h2>
     <br />
         Usuario nón ecziste!
     </div>
 </div>
+
 {% endif %}
 
+<br />
 <a href="javascript:;" onclick="history.back ();">Voltar</a>
+
 {% endblock %}