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 }} {{ form }}
</table> </table>
<input type="hidden" name="{{ stage_field }}" value="1" /> <input type="hidden" name="{{ stage_field }}" value="1" />
<p><input type="submit" value="Submit" /></p> <p><input type="submit" value="Preview" /></p>
</form> </form>
{% endblock %} {% endblock %}

View File

@ -7,7 +7,7 @@
<table> <table>
{% for field in form %} {% for field in form %}
<tr> <tr>
<th>{{ field.verbose_name }}:</th> <th>{{ field.label }}:</th>
<td>{{ field.data|escape }}</td> <td>{{ field.data|escape }}</td>
</tr> </tr>
{% endfor %} {% endfor %}
@ -30,7 +30,7 @@
{{ form }} {{ form }}
</table> </table>
<input type="hidden" name="{{ stage_field }}" value="1" /> <input type="hidden" name="{{ stage_field }}" value="1" />
<p><input type="submit" value="Submit changes" /></p> <p><input type="submit" value="Preview" /></p>
</form> </form>
{% endblock %} {% endblock %}