diff frontend/mfrontend/templates/joblist.html @ 9:9a0a9fa7f91d

Dodałem prototyp listy zadań w systemie
author Michał Rudowicz <michal.rudowicz@fl9.eu>
date Mon, 28 Feb 2011 19:25:51 +0100
parents
children 57a48d2aee18
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/frontend/mfrontend/templates/joblist.html	Mon Feb 28 19:25:51 2011 +0100
@@ -0,0 +1,24 @@
+{% extends "layout.html" %}
+{% block body %}
+<h2>Lista zadań</h2>
+<table border="1">
+    <tr>
+            <th>id</th>
+            <th>Właściciel</th>
+            <th>Hash</th>
+            <th>Opis</th>
+            <th>Stan</th>
+            <th>Wynik</th>
+    </tr>
+    {% for job in jobs %}
+    <tr>
+        <td>{{ job.id }}</td>
+        <td>{{ job.username }}</td>
+        <td>{{ job.hash }}</td>
+        <td>{{ job.label }}</td>
+        <td>{{ job.state_text }}</td>
+        <td>{{ job.result }}</td>
+    </tr>
+    {% endfor %}
+</table>
+{% endblock %}