{% load static %} {% for ms in memberships %} {% endfor %}
Membership type Submitted / Updated Paid Approved Actions
{{ ms.get_pretty_type }} {{ ms.date_submitted |date:"Y-m-d H:i" }} {% if ms.date_paid %} yes  {{ ms.date_paid |date:"Y-m-d H:i" }} {% else %} no  Not paid yet {% endif %} {% if ms.date_approved and ms.approved %} yes  {{ ms.date_approved |date:"Y-m-d H:i" }} {% elif ms.date_approved and not ms.approved %} no  Rejected: {{ ms.date_approved |date:"Y-m-d H:i" }} {% else %} ?  Not approved yet {% endif %} {% if not ms.date_paid %} Pay now {% else %} - {% endif %}