{% extends 'creme_core/bricks/base/table.html' %} {% load i18n creme_widgets creme_ctype %} {% block brick_extra_class %}{{block.super}} billing-target-brick{% endblock %} {% block brick_table_head %}{% endblock %} {% block brick_table_rows %} {% with target=object.target emitter=object.source %}

{% if target.entity_type == 'PERSONS_ORGANISATION_MODEL'|ctype_for_swappable %} {% translate 'Target organisation' context 'billing' %} {% else %} {% translate 'Target contact' context 'billing' %} {% endif %}

{% if target %}{% widget_entity_hyperlink target user %}{% endif %}

{% translate 'Source organisation' context 'billing' %}

{% if emitter %}{% widget_entity_hyperlink emitter user %}{% endif %}

{% endwith %} {% endblock %}