cleaned up code and integrated some simple CSS
[rapidsms] / templates / questionaires.tmpl
1 {% extends 'layout.tmpl' %}
2
3 {% block content %}
4 <h2>List of Questionaires</h2>
5
6 <table>
7 <tr>
8 <th>Code</th>
9 <th>Description</th>
10 <th>Num. Questions</th>
11 <th></th>
12 </tr>
13
14 {% for q in questionaires %}
15 <tr>
16 <td>{{q.code}}</td>
17 <td>{{q.description}}</td>
18 <td>{{q.questions.count()}}</td>
19 <td><a href="{{homepath}}/edit_questions/{{q.id}}">edit</a></td>
20 </tr>
21 {% endfor %}
22 </table>
23
24 <h2>New Questionaire</h2>
25
26 <form method="POST" action="{{homepath}}/questionaires">
27 <p><label for="code">Code</label>
28 <input name="code" type="text" size="3" value="{{code}}"  /></p>
29
30 <p><label for="description">Description</label>
31 <input name="description" type="text" size="50" value="{{description}}"  /></p>
32
33 <input type="submit" value="Save" />
34 </form>
35
36 {% endblock %}

Benjamin Mako Hill || Want to submit a patch?