Now an user can’t reanude his donation, he needs to make a new one.

This commit is contained in:
Levi 2016-08-04 23:14:07 -05:00
parent fe52e61668
commit bad053e4de
1 changed files with 17 additions and 15 deletions

View File

@ -19,21 +19,23 @@
</div>
{% if donator_status %}
<form action="{% url 'nosystemd:change_donator_status' donator_status.id %}" method="post" class="form" novalidate>
{% csrf_token %}
<div>
<h3>Your monthly donation status is {{donator_status.status}}
<button type="submit" class="btn btn-link">
{% if donator_status.status == 'active'%}
{% trans "Cancel Donation"%}
{% else %}
{% trans "Reanude Donation"%}
{% endif %}
</button>
</h3>
</div>
</form>
{% if donator_status.status == 'active'%}
<form action="{% url 'nosystemd:change_donator_status' donator_status.id %}" method="post" class="form" novalidate>
{% csrf_token %}
<div>
<h3>Your monthly donation status is {{donator_status.status}}
<button type="submit" class="btn btn-link">
{% trans "Cancel Donation"%}
</button>
</h3>
</div>
</form>
{% else %}
<button type="submit" class="btn btn-link">
<a href="{% url 'nosystemd:make_donation' %}">{% trans "Donate"%}</a>
</button>
{% endif %}
{% endif %}
</div>