{% extends 'generic/object.html' %} {% load static %} {% load helpers %} {% load plugins %} {% load render_table from django_tables2 %} {% load i18n %} {% block content %}
{% trans "Coalesce Strategy Information" %}
{% trans "Name" %} {{ object.name }}
{% trans "Priority" %} {{ object.priority }}
{% trans "Transform Map" %} {{ object.transform_map | linkify }}
{% plugin_left_page object %}
{% include 'inc/panels/related_objects.html' %} {% include 'inc/panels/comments.html' %} {% include 'inc/panels/custom_fields.html' %} {% plugin_right_page object %}
{% trans "Condition" %}
{% if object.condition %}
{{ object.condition|escape }}
{% else %} {% trans "No condition — this strategy applies unconditionally." %} {% endif %}
{% trans "Field Maps" %}
{% with fields=object.field_maps.all %} {% if fields %} {% for f in fields %} {% endfor %}
{% trans "Source" %} {% trans "Target" %}
{{ f.source_field|default:"template"|safe }} {{ f.target_field }}
{% else %} {% trans "No field maps linked to this strategy." %} {% endif %} {% endwith %}
{% trans "Relationship Maps" %}
{% with rels=object.relationship_maps.all %} {% if rels %} {% for r in rels %} {% endfor %}
{% trans "Source Model" %} {% trans "Target" %}
{{ r.source_model }} {{ r.target_field }}
{% else %} {% trans "No relationship maps linked to this strategy." %} {% endif %} {% endwith %}
{% endblock %}