Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored March 20, 2007
2  django/contrib/formtools/templates/formtools/form.html
@@ -9,7 +9,7 @@
9 9
 {{ form }}
10 10
 </table>
11 11
 <input type="hidden" name="{{ stage_field }}" value="1" />
12  
-<p><input type="submit" value="Submit" /></p>
  12
+<p><input type="submit" value="Preview" /></p>
13 13
 </form>
14 14
 
15 15
 {% endblock %}
4  django/contrib/formtools/templates/formtools/preview.html
@@ -7,7 +7,7 @@
7 7
 <table>
8 8
 {% for field in form %}
9 9
 <tr>
10  
-<th>{{ field.verbose_name }}:</th>
  10
+<th>{{ field.label }}:</th>
11 11
 <td>{{ field.data|escape }}</td>
12 12
 </tr>
13 13
 {% endfor %}
@@ -30,7 +30,7 @@
30 30
 {{ form }}
31 31
 </table>
32 32
 <input type="hidden" name="{{ stage_field }}" value="1" />
33  
-<p><input type="submit" value="Submit changes" /></p>
  33
+<p><input type="submit" value="Preview" /></p>
34 34
 </form>
35 35
 
36 36
 {% endblock %}

0 notes on commit 61d6249

Please sign in to comment.
Something went wrong with that request. Please try again.