{% extends 'website/backoffice/base.html' %}
{% load url from future %}
{% block bodyclass %}detail-page{% endblock %}
{% block buttons %}
{% if edit and credit_card %}
{% endif %}
{% endblock %}
{% block content %}
{% for field_name, field in object_display %}
{% if field %}
{{ field_name|capfirst }} |
{% if field_name == 'user' %}
{{ field.profile }} |
{% endif %}
{% if field_name == 'Credit Card' %}
{{ field }} |
{% endif %}
{% if field_name != 'Credit Card' and field_name != 'user' %}
{{ field }} |
{% endif %}
{% endif %}
{% endfor %}
{% if donation.status == donation.STATUS.unconfirmed and change_status %}
{% endif %}
{% if table.rows %}
Donations
|
{% for column in table.columns %}
{% if column.sortable %}
{% endif %}
{{ column }}
{% if column.sortable %}
{% endif %}
{% if column.is_ordered %}
{% if column.is_ordered_straight %}
{% else %}
{% endif %}
{% endif %}
|
{% endfor %}
{% for row in table.rows %}
{% for value in row %}
{% if forloop.counter == 1 %}
{{ value }}
{% else %}
{% if value %}
{{ value }}
{% else %}
–
{% endif %}
{% endif %}
|
{% endfor %}
{% endfor %}
{% endif %}
{% endblock %}