{% load i18n static %}
<div class="ra-related-widget-wrapper input-group">
    {{ rendered_widget }}
    {% block links %}
        {% spaceless %}
                        {% if can_add_related %}
                <span class="input-group-btn">
                <a class="related-widget-wrapper-link add-related btn btn-default" 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>
                </span>
            {% endif %}
{#            {% if can_change_related %}#}
{#                <span class="input-group-btn">#}
{#        <a class="related-widget-wrapper-link change-related btn btn-default" id="change_id_{{ name }}"#}
{#           data-href-template="{{ change_related_template_url }}?{{ url_params }}"#}
{#           title="{% blocktrans %}Change selected {{ model }}{% endblocktrans %}">#}
{#            <img src="{% static 'admin/img/icon-changelink.svg' %}" alt="{% trans 'Change' %}"/>#}
{#        </a>#}
{#            </span>#}
{#            {% endif %}#}

{#            {% if can_delete_related %}#}
{#                <span class="input-group-btn">#}
{#                <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>#}
{#                </span>#}
{#            {% endif %}#}
        {% endspaceless %}
    {% endblock %}
</div>
