{% load i18n %}{% comment %} What is waiting for approval on this record (detail and edit pages), and — on the edit page, before anything is typed — which fields will wait if changed, with a box for a note to whoever approves it. Context from vantage.approvalviews.banner_context. {% endcomment %} {% if approval_banner %} {% if approval_banner.pending %}

{% blocktranslate count counter=approval_banner.pending|length trimmed %} A change to this record is waiting for approval. {% plural %} {{ counter }} changes to this record are waiting for approval. {% endblocktranslate %}

{% for entry in approval_banner.pending %}

{% translate "Someone" as unknown_actor %} {% blocktranslate with who=entry.request.requested_by_repr|default:unknown_actor when=entry.request.requested_at|date:"Y-m-d H:i" trimmed %} Asked by {{ who }}, {{ when }}. {% endblocktranslate %}

{% include "vantage/approvals/_diff.html" with rows=entry.rows %} {% if entry.request.note and not entry.words_hidden %}

{{ entry.request.note }}

{% endif %} {% if entry.review_url %} {% translate "Review" %} {% endif %}
{% endfor %}
{% endif %} {% if editing and approval_banner.held %}

{% blocktranslate with fields=approval_banner.held|join:", " trimmed %} Changes to {{ fields }} need approval. The rest of the form saves as usual; those wait for someone who can approve them. {% endblocktranslate %}

{% endif %} {% endif %}