{% 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 %}

{% ctype_for_swappable 'PERSONS_ORGANISATION_MODEL' as orga_ctype %} {% if target.entity_type == orga_ctype %}{% 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 %}