{% load i18n %} {% load debconf %} {% block content %} {% with profile=object.userprofile %} {% if can_edit and object.bursary and object.bursary.request_any %}
{% with bursary=object.bursary %}

{% trans 'My bursary requests:' %}

{% if DEBCONF_ONLINE %}

{% trans 'Expenses' %}

{% if bursary.request_expenses %}

{{ bursary.get_expenses_status_display }}

{% else %}
{% trans 'Not Requested' %}
{% endif %}
{% else %}

{% trans 'Food' %}

{% if bursary.request_food %}

{{ bursary.get_food_status_display }}

{% if bursary.can_update and bursary.food_status == 'pending' %}

{% blocktrans with date=bursary.food_accept_before|date %} Your bursary has been granted. You need to confirm it before {{ date }}. {% endblocktrans %}

{% endif %} {% else %}
{% trans 'Not Requested' %}
{% endif %}

{% trans 'Accommodation' %}

{% if bursary.request_accommodation %}

{{ bursary.get_accommodation_status_display }}

{% if bursary.can_update and bursary.accommodation_status == 'pending' %}

{% blocktrans with date=bursary.accommodation_accept_before|date %} Your bursary has been granted. You need to confirm it before {{ date }}. {% endblocktrans %}

{% endif %} {% else %}
{% trans 'Not Requested' %}
{% endif %}

{% trans 'Travel' %}

{% if bursary.request_travel %}

{{ bursary.get_travel_status_display }}

{% trans 'Requested' %} {{ bursary.travel_bursary }} {% debconf_setting "BURSARY_CURRENCY" %}
{% trans 'Reimbursed' %} {{ bursary.reimbursed_amount }} {% debconf_setting "BURSARY_CURRENCY" %}
{% if bursary.can_update and bursary.travel_status == 'pending' %}

{% blocktrans with date=bursary.travel_accept_before|date %} Your bursary has been granted. You need to confirm it before {{ date }}. {% endblocktrans %}

{% endif %} {% else %}
{% trans 'Not Requested' %}
{% endif %}
{% endif %}
{% if bursary.can_update %} {% if bursary.must_accept %}

{% trans 'Accept my bursary' %}

{% else %}

{% trans 'Update my bursary request' %}

{% endif %} {% endif %} {% endwith %}
{% endif %} {% if can_edit and object.invoices.exists %}
{% with invoices=object.invoices.all %}

{% trans 'My invoices:' %}

{% for invoice in invoices %}

#{{ invoice.reference_number }}

{% debconf_setting "BILLING_CURRENCY" as billing_currency %} {% debconf_setting "LOCAL_CURRENCY" as local_currency %} Total: {{ invoice.total }} {{ billing_currency }} {% if local_currency != billing_currency %} or {{ invoice.total_local }} {{ local_currency }} {% endif %}
Status: {{ invoice.get_status_display }}
Display
{% endfor %}
{% endwith %}
{% endif %} {% with accomm=object.attendee.accomm %} {% if can_edit and accomm %}

{% trans 'My accommodation' %}

Nights

    {% for night in accomm.nights.all %}
  • Night of {{ night }}
  • {% endfor %}
The night of is the night after the date specified.

Room {{ accomm.room }}

{% if accomm.room %}
Roommates:
    {% for mate in accomm.get_roommates %}
  • {{ mate.user.userprofile.display_name }}
  • {% endfor %}
{% else %} Your room hasn't been assigned yet. Check back, a few days before {{ WAFER_CONFERENCE_NAME }}. {% endif %}
{% endif %} {% endwith %} {% endwith %} {% endblock %}