Fixed #29964 -- Removed unused admin/related_widget_wrapper.html template.

Unused since b52c73008a.
This commit is contained in:
Vishvajit Pathak 2018-11-18 22:12:48 +05:30 committed by Tim Graham
parent 9cac10eee4
commit 11bcb57ee2
2 changed files with 0 additions and 47 deletions

View File

@ -111,7 +111,6 @@ msgstr ""
#: contrib/admin/templates/admin/edit_inline/stacked.html:12
#: contrib/admin/templates/admin/edit_inline/tabular.html:34
#: contrib/admin/templates/admin/index.html:40
#: contrib/admin/templates/admin/related_widget_wrapper.html:12
#: contrib/admin/templates/admin/widgets/related_widget_wrapper.html:10
msgid "Change"
msgstr ""
@ -519,7 +518,6 @@ msgid "Toggle sorting"
msgstr ""
#: contrib/admin/templates/admin/delete_confirmation.html:18
#: contrib/admin/templates/admin/related_widget_wrapper.html:30
#: contrib/admin/templates/admin/submit_line.html:7
#: contrib/admin/templates/admin/widgets/related_widget_wrapper.html:24
msgid "Delete"
@ -591,7 +589,6 @@ msgstr ""
#: contrib/admin/templates/admin/edit_inline/stacked.html:12
#: contrib/admin/templates/admin/edit_inline/tabular.html:34
#: contrib/admin/templates/admin/index.html:38
#: contrib/admin/templates/admin/related_widget_wrapper.html:15
msgid "View"
msgstr ""
@ -614,7 +611,6 @@ msgid "Models in the %(name)s application"
msgstr ""
#: contrib/admin/templates/admin/index.html:31
#: contrib/admin/templates/admin/related_widget_wrapper.html:23
#: contrib/admin/templates/admin/widgets/related_widget_wrapper.html:17
msgid "Add"
msgstr ""
@ -689,24 +685,16 @@ msgstr ""
msgid "Popup closing..."
msgstr ""
#: contrib/admin/templates/admin/related_widget_wrapper.html:11
#: contrib/admin/templates/admin/widgets/related_widget_wrapper.html:9
#, python-format
msgid "Change selected %(model)s"
msgstr ""
#: contrib/admin/templates/admin/related_widget_wrapper.html:14
#, python-format
msgid "View selected %(model)s"
msgstr ""
#: contrib/admin/templates/admin/related_widget_wrapper.html:22
#: contrib/admin/templates/admin/widgets/related_widget_wrapper.html:16
#, python-format
msgid "Add another %(model)s"
msgstr ""
#: contrib/admin/templates/admin/related_widget_wrapper.html:29
#: contrib/admin/templates/admin/widgets/related_widget_wrapper.html:23
#, python-format
msgid "Delete selected %(model)s"

View File

@ -1,35 +0,0 @@
{% load i18n static %}
<div class="related-widget-wrapper">
{{ widget }}
{% block links %}
{% spaceless %}
{% if can_change_related or can_view_related %}
<a class="related-widget-wrapper-link {% if can_change_related %}change-related{% else %}view-related{% endif %}"
id="change_id_{{ name }}"
data-href-template="{{ change_related_template_url }}?{{ url_params }}"
{% if can_change_related %}
title="{% blocktrans %}Change selected {{ model }}{% endblocktrans %}">
<img src="{% static 'admin/img/icon-changelink.svg' %}" alt="{% trans 'Change' %}">
{% else %}
title="{% blocktrans %}View selected {{ model }}{% endblocktrans %}">
<img src="{% static 'admin/img/icon-viewlink.svg' %}" alt="{% trans 'View' %}">
{% endif %}
</a>
{% endif %}
{% if can_add_related %}
<a class="related-widget-wrapper-link add-related" id="add_id_{{ name }}"
href="{{ add_related_url }}?{{ url_params }}"
title="{% blocktrans %}Add another {{ model }}{% endblocktrans %}">
<img src="{% static 'admin/img/icon-addlink.svg' %}" alt="{% trans 'Add' %}">
</a>
{% endif %}
{% if can_delete_related %}
<a class="related-widget-wrapper-link delete-related" id="delete_id_{{ name }}"
data-href-template="{{ delete_related_template_url }}?{{ url_params }}"
title="{% blocktrans %}Delete selected {{ model }}{% endblocktrans %}">
<img src="{% static 'admin/img/icon-deletelink.svg' %}" alt="{% trans 'Delete' %}">
</a>
{% endif %}
{% endspaceless %}
{% endblock %}
</div>