{% extends "messages/base.html" %} {% load i18n %} {% block head_title %}{% trans "Invitations" %}{% endblock %} {% block body %}

{% trans "Invitations" %}

{% trans "Invite someone new to join" %}

{% trans "If you'd like to invite someone to join Pinax, you can enter their email address and a message for them below:" %}

{{ join_request_form.email.label_tag }} {% if join_request_form.existing_users %}
  • {% trans "Someone with this email address has already joined:" %} {% for other_user in join_request_form.existing_users %} {{ other_user }}{% endfor %}
{% else %} {{ join_request_form.email.errors }} {% endif %} {{ join_request_form.email }}
{{ join_request_form.message.label_tag }} {{ join_request_form.message.errors }}{{ join_request_form.message }}

{% trans "Friendship Requests Received" %}

{% if invites_received %} {% for invitation in invites_received %} {% ifequal invitation.status "2" %} {% else %} {% endifequal %} {% endfor %}

From {{ invitation.from_user }} ({{ invitation.sent }}):

{{ invitation.message }}

{{ invitation.from_user }} {{ invitation.sent }} {{ invitation.get_status_display }}
{% else %}

{% trans "No friendship requests received." %}

{% endif %}

{% trans "Friendship Requests Sent" %}

{% if invites_sent %} {% for invitation in invites_sent %} {% endfor %}
{{ invitation.to_user }} {{ invitation.sent }} {{ invitation.get_status_display }}
{% else %}

{% trans "No friendship requests sent." %}

{% endif %}

{% trans "Join Requests Sent" %}

{% if joins_sent %} {% for invitation in joins_sent %} {% endfor %}
{{ invitation.contact.email }} {{ invitation.sent }} {{ invitation.get_status_display }} {% for other_user in invitation.contact.users.all %} {{ other_user }} {% endfor %}
{% else %}

{% trans "No join requests sent." %}

{% endif %} {% endblock %} {% block extra_body %} {% endblock %}