{% extends "newbase.html" %}
{% block title %}Rowsandall Paid Membership{% endblock title %}
{% load rowerfilters %}
{% block main %}

<h1>Cancel Subscriptions</h1>

<ul class="main-content">
  <li class="grid_4">
    {% if subscriptions %}
    <p>
      <table class="plantable shortpadded" width="80%">
        <thead>
          <tr>
            <th>Subscription</th><th>Paid Until</th><th>Price</th>
            <th>Subscription type</th><th>&nbsp;</th>
          </tr>
        </thead>
        <tbody>
          {% for subscription in subscriptions %}
          <tr>
            <td>
              {{ subscription|lookup:"plan" }}
            </td>
            <td>
              {{ subscription|lookup:"end_date" }}
            </td>
            <td>
              {{ subscription|lookup:"price" }} &euro;
            </td>
            <td>
              {% if subscription|lookup:"never_expires" %}
              Recurring
              {% else %}
              Not recurring
              {% endif %}
            </td>
            <td>
              <a href="/rowers/me/cancelsubscription/{{ subscription|lookup:'id' }}">Stop this plan</a>
            </td>
          </tr>
          {% endfor %}
        </tbody>
      </table>
    <p>
    <p>
      By clicking on the link to stop the plan, you will downgrade to the Basic plan.
      Future payments will be stopped. Warning: You will not receive a refund.
      If you wanted to downgrade (and receive a credit for the price
      difference), click here: <a href="/rowers/downgrade">Downgrade</a>.
    </p>
    {% else %}
    <p>
      You don't have any subscriptions or your subscriptions cannot be automatically stopped
      from the site.
    </p>
    <p>
      If you have paid through PayPal, log in to your PayPal account and cancel any recurring payment
      there. We will manually downgrade your subscription.
    </p>
    <p>
      If you have questions, don't hesitate to contact us.
    </p>
    {% endif %}
  </li>        
</ul>


{% endblock %}

{% block sidebar %}
{% include 'menu_payments.html' %}
{% endblock %}
      
