summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-03-20 16:54:05 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-03-20 16:54:05 +0000
commit61d6249c2bf6c57684a3b77c6cec8601e7a26b44 (patch)
tree86a7f461e903db911ae91542e3df12ea6dbca6ac
parent6cc0eda1cb665e680ae29307a72c7cea1926cb52 (diff)
Fixed #3758 -- Changed FormPreview template to use 'label' instead of 'verbose_name'. Also renamed 'Submit' button to 'Preview'. Thanks for the patch, erickt@dslextreme.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4757 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/formtools/templates/formtools/form.html2
-rw-r--r--django/contrib/formtools/templates/formtools/preview.html4
2 files changed, 3 insertions, 3 deletions
diff --git a/django/contrib/formtools/templates/formtools/form.html b/django/contrib/formtools/templates/formtools/form.html
index 90da8b2b2b..194bbdd675 100644
--- a/django/contrib/formtools/templates/formtools/form.html
+++ b/django/contrib/formtools/templates/formtools/form.html
@@ -9,7 +9,7 @@
{{ form }}
</table>
<input type="hidden" name="{{ stage_field }}" value="1" />
-<p><input type="submit" value="Submit" /></p>
+<p><input type="submit" value="Preview" /></p>
</form>
{% endblock %}
diff --git a/django/contrib/formtools/templates/formtools/preview.html b/django/contrib/formtools/templates/formtools/preview.html
index c7955d46e1..983115758f 100644
--- a/django/contrib/formtools/templates/formtools/preview.html
+++ b/django/contrib/formtools/templates/formtools/preview.html
@@ -7,7 +7,7 @@
<table>
{% for field in form %}
<tr>
-<th>{{ field.verbose_name }}:</th>
+<th>{{ field.label }}:</th>
<td>{{ field.data|escape }}</td>
</tr>
{% endfor %}
@@ -30,7 +30,7 @@
{{ form }}
</table>
<input type="hidden" name="{{ stage_field }}" value="1" />
-<p><input type="submit" value="Submit changes" /></p>
+<p><input type="submit" value="Preview" /></p>
</form>
{% endblock %}