templates/twig/results.html
changeset 23 2d22262da8e0
parent 8 636f54747018
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/twig/results.html	Thu Oct 27 16:56:26 2011 +0200
@@ -0,0 +1,29 @@
+<html>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<body>
+
+{% if error %}
+<font color=red> {{ error }} </font>
+{% else %}
+{% for entry in entries %}
+
+    {% if loop.first %}
+	    <table>
+	    <tr><th>Name</th><th>Telefon</th><th>Mail</th></tr>
+    {% endif %}
+
+    <tr><td>{{entry.name}}</td>
+        <td>{{entry.tel}}</td>
+	<td>{{entry.mail}}</td>
+    </tr>
+
+    {% if loop.last %}
+	    </table>
+     	    <font color=red>{{ left ? left ~ ' weitere Einträge' : '' }}</font>
+    {% endif %}
+{% else %}
+	Sorry, keine Einträge gefunden.
+{% endfor %}
+{% endif %}
+</body>
+</html>