Ticket #11600: stackedinline-viewonsite-fix.diff
File stackedinline-viewonsite-fix.diff, 1.6 KB (added by , 15 years ago) |
---|
-
django/contrib/admin/templates/admin/edit_inline/stacked.html
7 7 {% for inline_admin_form in inline_admin_formset %} 8 8 <div class="inline-related{% if forloop.last %} last-related{% endif %}"> 9 9 <h3><b>{{ inline_admin_formset.opts.verbose_name|title }}:</b> {% if inline_admin_form.original %}{{ inline_admin_form.original }}{% else %} #{{ forloop.counter }}{% endif %} 10 {% if inline_admin_formset.formset.can_delete and inline_admin_form.original %}<span class="delete">{{ inline_admin_form.deletion_field.field }} {{ inline_admin_form.deletion_field.label_tag }}</span>{% endif %} 10 {% if inline_admin_form.show_url %}<a href="../../../r/{{ inline_admin_form.original_content_type_id }}/{{ inline_admin_form.original.id }}/">{% trans "View on site" %}</a>{% endif %} 11 {% if inline_admin_formset.formset.can_delete and inline_admin_form.original %}<span class="delete">{{ inline_admin_form.deletion_field.field }} {{ inline_admin_form.deletion_field.label_tag }}</span>{% endif %} 11 12 </h3> 12 {% if inline_admin_form.show_url %}13 <p><a href="../../../r/{{ inline_admin_form.original_content_type_id }}/{{ inline_admin_form.original.id }}/">{% trans "View on site" %}</a></p>14 {% endif %}15 13 {% if inline_admin_form.form.non_field_errors %}{{ inline_admin_form.form.non_field_errors }}{% endif %} 16 14 17 15 {% for fieldset in inline_admin_form %}