Ticket #6077: help-text-edit-inline.diff

File help-text-edit-inline.diff, 891 bytes (added by jakub_vysoky, 16 years ago)
  • django/contrib/admin/templates/admin/edit_inline/tabular.html

    diff --git a/django/contrib/admin/templates/admin/edit_inline/tabular.html b/django/contrib/admin/templates/admin/edit_inline/tabular.html
    index 16bb14d..04ded04 100644
    a b  
    88     <thead><tr>
    99     {% for field in inline_admin_formset.fields %}
    1010       {% if not field.is_hidden %}
    11          <th {% if forloop.first %}colspan="2"{% endif %}>{{ field.label|capfirst|escape }}</th>
     11         <th{% if forloop.first %} colspan="2"{% endif %}{% if field.help_text %} title="{{ field.help_text }}"{% endif %}>
     12         {{ field.label|capfirst|escape }}{% if field.help_text %}&nbsp;[*]{% endif %}
     13         </th>
    1214        {% endif %}
    1315     {% endfor %}
    1416     {% if inline_admin_formset.formset.deletable %}<th>{% trans "Delete" %}?</th>{% endif %}
Back to Top