~canonical-django/canonical-django/project-template

« back to all changes in this revision

Viewing changes to trunk/python-packages/django/contrib/formtools/templates/formtools/preview.html

  • Committer: Matthew Nuzum
  • Date: 2008-11-13 05:46:03 UTC
  • Revision ID: matthew.nuzum@canonical.com-20081113054603-v0kvr6z6xyexvqt3
adding to version control

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{% extends "base.html" %}
 
2
 
 
3
{% block content %}
 
4
 
 
5
<h1>Preview your submission</h1>
 
6
 
 
7
<table>
 
8
{% for field in form %}
 
9
<tr>
 
10
<th>{{ field.label }}:</th>
 
11
<td>{{ field.data|escape }}</td>
 
12
</tr>
 
13
{% endfor %}
 
14
</table>
 
15
 
 
16
<p>Security hash: {{ hash_value }}</p>
 
17
 
 
18
<form action="" method="post">
 
19
{% for field in form %}{{ field.as_hidden }}
 
20
{% endfor %}
 
21
<input type="hidden" name="{{ stage_field }}" value="2" />
 
22
<input type="hidden" name="{{ hash_field }}" value="{{ hash_value }}" />
 
23
<p><input type="submit" value="Submit" /></p>
 
24
</form>
 
25
 
 
26
<h1>Or edit it again</h1>
 
27
 
 
28
<form action="" method="post">
 
29
<table>
 
30
{{ form }}
 
31
</table>
 
32
<input type="hidden" name="{{ stage_field }}" value="1" />
 
33
<p><input type="submit" value="Preview" /></p>
 
34
</form>
 
35
 
 
36
{% endblock %}