{% if render_tab_counts_oob %}{% include "calendar/partials/_tab_counts_oob.html" %}{% endif %} {% comment %} Approvals tab for the Publish page — one row per post, matching the approved design. Loaded into #tab-content. Re-fetches itself on approvalAction / bulkActionComplete (fired by the action views' HX-Trigger), so every action updates the list in place. The toast host lives in calendar.html (outside #tab-content) so a refresh doesn't tear down the toast. {% endcomment %} {% load tz approval_extras %}
{# filter pills #}
{% include "calendar/partials/_approval_pill.html" with pid="all" label="All" count=all_count %} {% include "calendar/partials/_approval_pill.html" with pid="pending_review" label="Pending Review" count=pending_review_count %} {% include "calendar/partials/_approval_pill.html" with pid="pending_client" label="Pending Client" count=pending_client_count %} {% include "calendar/partials/_approval_pill.html" with pid="approved" label="Approved" count=approved_count %} {% include "calendar/partials/_approval_pill.html" with pid="rejected" label="Rejected" count=rejected_count %} {% include "calendar/partials/_approval_pill.html" with pid="changes_requested" label="Changes Requested" count=changes_requested_count %} {% include "calendar/partials/_approval_pill.html" with pid="on_hold" label="Hold" count=on_hold_count %}
{# post list #}
{% for post in posts %} {% include "approvals/partials/_approval_row.html" %} {% empty %}

No posts pending approval

Posts submitted for review will appear here

{% endfor %}
{% if can_approve %} {# selected ids carried for bulk hx-include #} {# bulk action bar #}
{# bulk reject modal #}
{% endif %} {# version-diff modal (loaded via hx-get on the row's "View changes" button) #}