Ticket #3579: all.3.patch

File all.3.patch, 4.0 KB (added by buriy <burchik@…>, 17 years ago)

All fixes: two for action="{{ form_url }}", two for <th{{some.stuff}}>, one for <td{{some.stuff}}

  • D:/program/Python24/Lib/site-packages/django-svn/django/contrib/admin/templates/admin/auth/user/change_password.html

     
    1616</div>
    1717{% endif %}{% endblock %}
    1818{% block content %}<div id="content-main">
    19 <form action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% block form_top %}{% endblock %}
     19<form {% if form_url %}action="{{ form_url }}" {% endif %}method="post" id="{{ opts.module_name }}_form">{% block form_top %}{% endblock %}
    2020<div>
    2121{% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %}
    2222{% if form.error_dict %}
  • D:/program/Python24/Lib/site-packages/django-svn/django/contrib/admin/templates/admin/change_form.html

     
    2323  </ul>
    2424{% endif %}{% endif %}
    2525{% endblock %}
    26 <form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% block form_top %}{% endblock %}
     26<form {% if has_file_field %}enctype="multipart/form-data" {% endif %}{% if form_url %}action="{{ form_url }}" {% endif %}method="post" id="{{ opts.module_name }}_form">{% block form_top %}{% endblock %}
    2727<div>
    2828{% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %}
    2929{% if opts.admin.save_on_top %}{% submit_row %}{% endif %}
  • D:/program/Python24/Lib/site-packages/django-svn/django/contrib/admin/templates/admin/change_list_results.html

     
    22<table cellspacing="0">
    33<thead>
    44<tr>
    5 {% for header in result_headers %}<th{{ header.class_attrib }}>
     5{% for header in result_headers %}
     6{% if header.class_attrib %}<th{{ header.class_attrib }}>{% else %}<th>{% endif %}
    67{% if header.sortable %}<a href="{{ header.url }}">{% endif %}
    78{{ header.text|capfirst }}
    89{% if header.sortable %}</a>{% endif %}</th>{% endfor %}
  • D:/program/Python24/Lib/site-packages/django-svn/django/contrib/admin/templates/admin/edit_inline_tabular.html

     
    44   <thead><tr>
    55   {% for fw in bound_related_object.field_wrapper_list %}
    66      {% if fw.needs_header %}
    7          <th{{ fw.header_class_attribute }}>{{ fw.field.verbose_name|capfirst|escape }}</th>
     7         {% if fw.header_class_attribute %}<th{{ fw.header_class_attribute }}>{% else %}<th>{% endif %}
     8         {{ fw.field.verbose_name|capfirst|escape }}</th>
    89      {% endif %}
    910   {% endfor %}
    1011   </tr></thead>
     
    2223      <tr class="{% cycle row1,row2 %}">
    2324      {% for bound_field in fcw.bound_fields %}
    2425         {% if not bound_field.hidden %}
    25          <td {{ bound_field.cell_class_attribute }}>
     26         {% if bound_field.cell_class_attribute %}<td {{ bound_field.cell_class_attribute }}>{% else %}<td>{% endif %}
    2627            {% field_widget bound_field %}
    2728         </td>
    2829         {% endif %}
Back to Top