Django

Code

Changeset 8226

Show
Ignore:
Timestamp:
08/07/08 16:18:43 (5 months ago)
Author:
lukeplant
Message:

Added a 'name' attribute to the 'Save' button on admin change form

This makes it much easier/possible for testing tools e.g. twill to find
the 'Save' submit button.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/admin/templates/admin/submit_line.html

    r7294 r8226  
    55{% if show_save_and_add_another %}<input type="submit" value="{% trans 'Save and add another' %}" name="_addanother" {{ onclick_attrib }} />{% endif %} 
    66{% if show_save_and_continue %}<input type="submit" value="{% trans 'Save and continue editing' %}" name="_continue" {{ onclick_attrib }}/>{% endif %} 
    7 {% if show_save %}<input type="submit" value="{% trans 'Save' %}" class="default" {{ onclick_attrib }}/>{% endif %} 
     7{% if show_save %}<input type="submit" value="{% trans 'Save' %}" class="default" name="_save" {{ onclick_attrib }}/>{% endif %} 
    88</div>