{% extends "base.html" %}
{% load staticfiles %}
{% load rowerfilters %}

{% block title %}GDPR Opt-In{% endblock %}

{% block content %}
<div class="grid_12">
  <h2>GDPR Opt-In</h2>
  <p>
    <b>
      To comply with the European Union General Data Protection Regulation,
      we need to record your consent to use personal data on this website.
      Please take some time to review our data policies. If you agree and
      opt in, click the green button at the bottom to be taken to the site.
      If you do not agree, please use the red button to delete your
      account. This will irreversibly delete all your data on rowsandall.com
      and remove your account.
    </b>
  </p>
  <hr>

  {% include "privacypolicy.html" %}

  <hr>

  <p>
    To start or continue using the site, please give your consent by clicking on the green Opt In button below.
  </p>

  <p>
    <div class="grid_2 suffix_10 alpha">
      <p>
        <a class="button gray small" href="/rowers/exportallworkouts">Download your data</a>
        </p>
    </div>
  </p>
  
  <div class="grid_2 alpha">
    <a href="/rowers/me/gdpr-optin-confirm/?next={{ next }}" class="button green small">Opt in and continue</a>
  </div>
  <form method="POST" action="/rowers/me/delete" class="padding">
    {% csrf_token %}
    <input id="id_delete_user" type="hidden" name="delete_user" value="True">
    <div class="grid_2 prefix_2">
      <input class="button red small" type="submit" name="action" value="DELETE ACCOUNT">
      
    </div>
  </form>

</div>

{% endblock %}
