{% extends "cpq/base.html" %}{% load cpq_extras %}{% block title %}Approvals{% endblock %} {% block content %}

Approvals inbox · {{ role|label }}

{% for a in items %}{% with q=a.revision.quote %}
{{ q.number }} v{{ a.revision.version }} · {{ q.customer.name }} · {{ q.current.totals.total|money:q.currency }} · rep {{ q.owner.get_full_name|default:q.owner.username }} · margin {{ q.current.totals.margin_pct|pct }} · discount {{ q.current.totals.discount_pct|pct }} {{ a.get_role_display }}
{% for r in a.reasons %}
{{ r }}
{% endfor %} {% if a.ready %}
{% csrf_token %}
{% else %}

Waiting on an earlier approval step or you own this quote.

{% endif %}
{% endwith %} {% empty %}

Nothing awaiting your approval.

{% endfor %}

Recent decisions

{% for a in recent %}{% endfor %}
{{ a.revision.quote.number }}{{ a.get_role_display }}{{ a.status|label }}{{ a.approver.username }}{{ a.decided_at|date:"d M Y" }}{{ a.comment }}
{% endblock %}