diff --git a/nested_inline/templates/admin/edit_inline/stacked-nested.html b/nested_inline/templates/admin/edit_inline/stacked-nested.html index 7e67135..98bf796 100644 --- a/nested_inline/templates/admin/edit_inline/stacked-nested.html +++ b/nested_inline/templates/admin/edit_inline/stacked-nested.html @@ -1,4 +1,4 @@ -{% load i18n admin_static %} +{% load i18n admin_urls admin_static %}
{% with recursive_formset=inline_admin_formset stacked_template='admin/edit_inline/stacked-nested.html' tabular_template='admin/edit_inline/tabular-nested.html'%}

{{ recursive_formset.opts.verbose_name_plural|title }}

@@ -6,7 +6,7 @@

{{ recursive_formset.opts.verbose_name_plural|title }}

{{ recursive_formset.formset.non_form_errors }} {% for inline_admin_form in recursive_formset %}
-

{{ recursive_formset.opts.verbose_name|title }}: {% if inline_admin_form.original %}{{ inline_admin_form.original }}{% else %}#{{ forloop.counter }}{% endif %} +

{{ recursive_formset.opts.verbose_name|title }}: {% if inline_admin_form.original %}{{ inline_admin_form.original }}{% if inline_admin_form.model_admin.show_change_link and inline_admin_form.model_admin.has_registered_model %} {% trans "Change" %}{% endif %}{% else %}#{{ forloop.counter }}{% endif %} {% if inline_admin_form.show_url %}{% trans "View on site" %}{% endif %} {% if recursive_formset.formset.can_delete and inline_admin_form.original %}{{ inline_admin_form.deletion_field.field }} {{ inline_admin_form.deletion_field.label_tag }}{% endif %}

diff --git a/nested_inline/templates/admin/edit_inline/tabular-nested.html b/nested_inline/templates/admin/edit_inline/tabular-nested.html index de66d12..dec3138 100644 --- a/nested_inline/templates/admin/edit_inline/tabular-nested.html +++ b/nested_inline/templates/admin/edit_inline/tabular-nested.html @@ -1,4 +1,4 @@ -{% load i18n admin_static admin_modify %} +{% load i18n admin_urls admin_static admin_modify %} {% load cycle from future %}
{% with recursive_formset=inline_admin_formset stacked_template='admin/edit_inline/stacked-nested.html' tabular_template='admin/edit_inline/tabular-nested.html'%} @@ -29,6 +29,7 @@

{{ recursive_formset.opts.verbose_name_plural|capfirst }}

{% if inline_admin_form.original or inline_admin_form.show_url %}

{% if inline_admin_form.original %} {{ inline_admin_form.original }}{% endif %} + {% if inline_admin_form.model_admin.show_change_link and inline_admin_form.model_admin.has_registered_model %}{% trans "Change" %}{% endif %} {% if inline_admin_form.show_url %}{% trans "View on site" %}{% endif %}

{% endif %} {% if inline_admin_form.needs_explicit_pk_field %}