Ticket #12680: overlay.diff

File overlay.diff, 1.8 KB (added by shoyer, 14 years ago)

Patch

  • 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 fbe4b75..a23d4df 100644
    a b fieldset.monospace textarea {  
    153153
    154154/* SUBMIT ROW */
    155155
     156.floating-submit-row {
     157        width: 100%;
     158        margin: 0;
     159        padding: 0;
     160        position:fixed;
     161        bottom: 0px;
     162        left: 0px;
     163        display: block;
     164        border-top: 1px solid #ccc;
     165}
     166.floating-submit-row .submit-row {
     167        padding: 10px 22px;
     168        margin-bottom: 0;
     169        opacity:0.85;
     170        border: none;
     171}
     172.submit-row-spacer {
     173        height: 17px;
     174}
     175
     176
    156177.submit-row {
    157178    padding: 5px 7px;
    158179    text-align: right;
    159180    background: white url(../img/admin/nav-bg.gif) 0 100% repeat-x;
    160181    border: 1px solid #ccc;
    161     margin: 5px 0;
    162182    overflow: hidden;
    163183}
    164184
  • 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 8bb5d27..367d60f 100644
    a b  
    11{% load i18n %}
     2<div class="submit-row-spacer"></div>
     3<div class="floating-submit-row">
    24<div class="submit-row" {% if is_popup %}style="overflow: auto;"{% endif %}>
    35{% if show_save %}<input type="submit" value="{% trans 'Save' %}" class="default" name="_save" {{ onclick_attrib }}/>{% endif %}
    46{% if show_delete_link %}<p class="deletelink-box"><a href="delete/" class="deletelink">{% trans "Delete" %}</a></p>{% endif %}
     
    68{% if show_save_and_add_another %}<input type="submit" value="{% trans 'Save and add another' %}" name="_addanother" {{ onclick_attrib }} />{% endif %}
    79{% if show_save_and_continue %}<input type="submit" value="{% trans 'Save and continue editing' %}" name="_continue" {{ onclick_attrib }}/>{% endif %}
    810</div>
     11</div>
Back to Top