Ticket #7272: ticket7272-r7871.1.diff

File ticket7272-r7871.1.diff, 2.8 KB (added by Jannis Leidel, 16 years ago)

Moved the submit button to the front of the other and added float directive (compatible with rtl languages)

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

    diff --git a/django/contrib/admin/media/css/global.css b/django/contrib/admin/media/css/global.css
    index d50601b..cbab243 100644
    a b input[type=text], input[type=password], textarea, select, .vTextField { border:1  
    8888/*  FORM BUTTONS  */
    8989input[type=submit], input[type=button], .submit-row input { background:white url(../img/admin/nav-bg.gif) bottom repeat-x; padding:3px; color:black; border:1px solid #bbb; border-color:#ddd #aaa #aaa #ddd; }
    9090input[type=submit]:active, input[type=button]:active { background-image:url(../img/admin/nav-bg-reverse.gif); background-position:top; }
    91 input[type=submit].default, .submit-row input.default { border:2px solid #5b80b2; background:#7CA0C7 url(../img/admin/default-bg.gif) bottom repeat-x; font-weight:bold; color:white; }
     91input[type=submit].default, .submit-row input.default { border:2px solid #5b80b2; background:#7CA0C7 url(../img/admin/default-bg.gif) bottom repeat-x; font-weight:bold; color:white; float:right; }
    9292input[type=submit].default:active { background-image:url(../img/admin/default-bg-reverse.gif); background-position:top; }
    9393
    9494/* MODULES */
  • 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 1974e7c..9388dd1 100644
    a b div.breadcrumbs { text-align:right; }  
    3636.aligned label { padding:0 0 3px 1em;  float:right; }
    3737.submit-row { text-align: left }
    3838.vDateField, .vTimeField { margin-left:2px; }
     39input[type=submit].default, .submit-row input.default { float:left; }
    3940
    4041/* widget styles */
    4142.calendarnav-previous { top:0; left:auto; right:0; }
  • 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 25f5819..c9f6dc5 100644
    a b  
    11{% load i18n %}
    22<div class="submit-row">
     3{% if show_save %}<input type="submit" value="{% trans 'Save' %}" class="default" {{ onclick_attrib }}/>{% endif %}
    34{% if show_delete_link %}<p class="float-left"><a href="delete/" class="deletelink">{% trans "Delete" %}</a></p>{% endif %}
    45{% if show_save_as_new %}<input type="submit" value="{% trans 'Save as new' %}" name="_saveasnew" {{ onclick_attrib }}/>{%endif%}
    56{% if show_save_and_add_another %}<input type="submit" value="{% trans 'Save and add another' %}" name="_addanother" {{ onclick_attrib }} />{% endif %}
    67{% 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 %}
    88</div>
Back to Top