Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 61d6249c2bf6c57684a3b77c6cec8601e7a26b44 1 parent 6cc0eda
Adrian Holovaty adrianholovaty authored
2  django/contrib/formtools/templates/formtools/form.html
View
@@ -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 %}
4 django/contrib/formtools/templates/formtools/preview.html
View
@@ -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 %}
Please sign in to comment.
Something went wrong with that request. Please try again.