{% extends 'settings/layout.html' %} {% load i18n %} {% load humanize %} {% block header %}{% trans "Invite Requests" %}{% endblock %} {% block panel %}
{% trans "Date requested" as text %} {% include 'snippets/table-sort-header.html' with field="created_date" sort=sort text=text %} | {% trans "Date accepted" as text %} {% include 'snippets/table-sort-header.html' with field="invite__invitees__created_date" sort=sort text=text %} | {% trans "Email" %} | {% if site.invite_request_question %}{% trans "Answer" %} | {% endif %}{% trans "Status" as text %} {% include 'snippets/table-sort-header.html' with field="invite__times_used" sort=sort text=text %} | {% trans "Action" %} |
---|---|---|---|---|---|
{% trans "No requests" %} | |||||
{{ req.created_date | naturaltime }} | {{ req.invite.invitees.first.created_date | naturaltime }} | {{ req.email }} | {% if site.invite_request_question %}{{ req.answer }} | {% endif %}{% if req.invite.times_used %} {% trans "Accepted" %} {% elif req.invite %} {% trans "Sent" %} {% else %} {% trans "Requested" %} {% endif %} |
{# no invite OR invite not yet used #}
{% if not req.invite.times_used %}
{% endif %}
{# invite created but not used #}
{% if req.invite and not req.invite.times_used %}
{# #}
{% elif req.invite %}
{# accepted #}
{% if req.invite.invitees.exists %}
@{{ req.invite.invitees.first.localname }}
{% else %}
{% endif %}
{% else %}
{% endif %}
|