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
This commit is contained in:
Adrian Holovaty 2007-03-20 16:54:05 +00:00
parent 6cc0eda1cb
commit 61d6249c2b
2 changed files with 3 additions and 3 deletions

View File

@ -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 %}

View File

@ -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 %}