mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-25 04:43:10 +00:00
31 lines
1.4 KiB
HTML
31 lines
1.4 KiB
HTML
|
{# Please keep this template in sync with django/contrib/admin one #}
|
||
|
{% load i18n static %}
|
||
|
<div class="related-widget-wrapper input-group">
|
||
|
{{ widget }}
|
||
|
{% block links %}
|
||
|
{% spaceless %}
|
||
|
{% if can_change_related %}
|
||
|
<a class="related-widget-wrapper-link change-related input-group-addon" id="change_id_{{ name }}"
|
||
|
data-href-template="{{ change_related_template_url }}?{{ url_params }}"
|
||
|
title="{% blocktrans %}Change selected {{ model }}{% endblocktrans %}">
|
||
|
<span class="glyphicon glyphicon-pencil"></span>
|
||
|
</a>
|
||
|
{% endif %}
|
||
|
{% if can_add_related %}
|
||
|
<a class="related-widget-wrapper-link add-related input-group-addon" id="add_id_{{ name }}"
|
||
|
href="{{ add_related_url }}?{{ url_params }}"
|
||
|
title="{% blocktrans %}Add another {{ model }}{% endblocktrans %}">
|
||
|
<span class="glyphicon glyphicon-plus"></span>
|
||
|
</a>
|
||
|
{% endif %}
|
||
|
{% if can_delete_related %}
|
||
|
<a class="related-widget-wrapper-link delete-related input-group-addon" id="delete_id_{{ name }}"
|
||
|
data-href-template="{{ delete_related_template_url }}?{{ url_params }}"
|
||
|
title="{% blocktrans %}Delete selected {{ model }}{% endblocktrans %}">
|
||
|
<span class="glyphicon glyphicon-trash"></span>
|
||
|
</a>
|
||
|
{% endif %}
|
||
|
{% endspaceless %}
|
||
|
{% endblock %}
|
||
|
</div>
|