Django

Code

Ticket #3758: formtools.patch

File formtools.patch, 1.2 kB (added by erickt@dslextreme.com, 2 years ago)
  • django/contrib/formtools/templates/formtools/preview.html

    old new  
    77<table> 
    88{% for field in form %} 
    99<tr> 
    10 <th>{{ field.verbose_name }}:</th> 
     10<th>{{ field.label }}:</th> 
    1111<td>{{ field.data|escape }}</td> 
    1212</tr> 
    1313{% endfor %} 
     
    3030{{ form }} 
    3131</table> 
    3232<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> 
    3434</form> 
    3535 
    3636{% endblock %} 
  • django/contrib/formtools/templates/formtools/form.html

    old new  
    99{{ form }} 
    1010</table> 
    1111<input type="hidden" name="{{ stage_field }}" value="1" /> 
    12 <p><input type="submit" value="Submit" /></p> 
     12<p><input type="submit" value="Preview" /></p> 
    1313</form> 
    1414 
    1515{% endblock %}