Refactor reactivate link html

This commit is contained in:
PCoder 2017-12-24 18:07:30 +01:00
parent ca2a90ca2d
commit a34bd83c5e

View file

@ -95,12 +95,9 @@
<a class="btn btn-primary btn-grey btn-deactivate print" href="{% url 'digitalglarus:membership_deactivate' %}">Deactivate</a> <a class="btn btn-primary btn-grey btn-deactivate print" href="{% url 'digitalglarus:membership_deactivate' %}">Deactivate</a>
</div> </div>
{% elif not current_membership.active %} {% elif not current_membership.active %}
<form method="GET" action="{% url 'digitalglarus:membership_pricing' %}">
{% csrf_token %}
<div class="edit-button"> <div class="edit-button">
<button type="submit" class="btn btn-primary btn-grey btn-deactivate print">Reactivate</button> <a class="btn btn-primary btn-grey btn-deactivate" href="{% url 'digitalglarus:membership_pricing' %}">Reactivate</a>
</div> </div>
</form>
{% endif %} {% endif %}
{% else %} {% else %}
<div class="edit-button"> <div class="edit-button">