Ticket #8812: ticket8812-r8869.diff

File ticket8812-r8869.diff, 2.6 KB (added by Jannis Leidel, 16 years ago)

Small fix

  • django/contrib/admin/media/css/forms.css

    diff --git a/django/contrib/admin/media/css/forms.css b/django/contrib/admin/media/css/forms.css
    index 234a21b..0784f63 100644
    a b fieldset.monospace textarea { font-family:"Bitstream Vera Sans Mono",Monaco,"Cou  
    4848.submit-row { padding:5px 7px; text-align:right; background:white url(../img/admin/nav-bg.gif) 0 100% repeat-x; border:1px solid #ccc; margin:5px 0; }
    4949.submit-row input { margin:0 0 0 5px; }
    5050.submit-row p { margin-top:0.3em; }
     51.submit-row p.deletelink-box { float: left; }
    5152.submit-row .deletelink { background:url(../img/admin/icon_deletelink.gif) 0 50% no-repeat; padding-left:14px; }
    5253
    5354/* CUSTOM FORM FIELDS */
  • django/contrib/admin/media/css/rtl.css

    diff --git a/django/contrib/admin/media/css/rtl.css b/django/contrib/admin/media/css/rtl.css
    index 900ddbd..2902c4d 100644
    a b div.breadcrumbs { text-align:right; }  
    3535/* form styles */
    3636.aligned label { padding:0 0 3px 1em;  float:right; }
    3737.submit-row { text-align: left }
     38.submit-row p.deletelink-box { float: right;}
     39.submit-row .deletelink { background:url(../img/admin/icon_deletelink.gif) 0 50% no-repeat; padding-right:14px; }
    3840.vDateField, .vTimeField { margin-left:2px; }
    3941form ul.inline li { float:right; padding-right:0; padding-left:7px; }
    4042input[type=submit].default, .submit-row input.default { float:left; }
  • django/contrib/admin/templates/admin/submit_line.html

    diff --git a/django/contrib/admin/templates/admin/submit_line.html b/django/contrib/admin/templates/admin/submit_line.html
    index c5d673f..8bb5d27 100644
    a b  
    11{% load i18n %}
    22<div class="submit-row" {% if is_popup %}style="overflow: auto;"{% endif %}>
    33{% if show_save %}<input type="submit" value="{% trans 'Save' %}" class="default" name="_save" {{ onclick_attrib }}/>{% endif %}
    4 {% if show_delete_link %}<p class="float-left"><a href="delete/" class="deletelink">{% trans "Delete" %}</a></p>{% endif %}
     4{% if show_delete_link %}<p class="deletelink-box"><a href="delete/" class="deletelink">{% trans "Delete" %}</a></p>{% endif %}
    55{% if show_save_as_new %}<input type="submit" value="{% trans 'Save as new' %}" name="_saveasnew" {{ onclick_attrib }}/>{%endif%}
    66{% if show_save_and_add_another %}<input type="submit" value="{% trans 'Save and add another' %}" name="_addanother" {{ onclick_attrib }} />{% endif %}
    77{% if show_save_and_continue %}<input type="submit" value="{% trans 'Save and continue editing' %}" name="_continue" {{ onclick_attrib }}/>{% endif %}
Back to Top