not yet working fully
This commit is contained in:
@@ -5,13 +5,18 @@
|
|||||||
{% block title %}GDPR Opt-In{% endblock %}
|
{% block title %}GDPR Opt-In{% endblock %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
|
<p>
|
||||||
|
We know you are eager to start using rowsandall.com, but we must
|
||||||
|
ask you to read and agree with the below first.
|
||||||
|
</p>
|
||||||
|
|
||||||
<h2>GDPR Opt-In</h2>
|
<h2>GDPR Opt-In</h2>
|
||||||
<p>
|
<p>
|
||||||
<b>
|
<b>
|
||||||
To comply with the European Union General Data Protection Regulation,
|
To comply with the European Union General Data Protection Regulation,
|
||||||
we need to record your consent to use personal data on this website.
|
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
|
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.
|
opt in, click the "opt in" button at the bottom to be taken to the site.
|
||||||
If you do not agree, please use the red button to delete your
|
If you do not agree, please use the red button to delete your
|
||||||
account. This will irreversibly delete all your data on rowsandall.com
|
account. This will irreversibly delete all your data on rowsandall.com
|
||||||
and remove your account.
|
and remove your account.
|
||||||
@@ -32,7 +37,7 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<a class="button gray small" href="/rowers/me/gdpr-optin-confirm/?next={{ next }}">Opt in and continue</a>
|
<a class="button green small" href="/rowers/me/gdpr-optin-confirm/?next={{ next }}">Opt in and continue</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script>
|
<script>
|
||||||
setTimeout("location.reload(true);",60000);
|
setTimeout("location.reload(true);",180000);
|
||||||
</script>
|
</script>
|
||||||
<script
|
<script
|
||||||
type='text/javascript'
|
type='text/javascript'
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
<li>
|
<li>
|
||||||
<a href={{ request.path|userurl:member }}>
|
<a href={{ request.path|userurl:member }}>
|
||||||
<i class="fas fa-user fa-fw"></i>
|
<i class="fas fa-user fa-fw"></i>
|
||||||
{% if member == rower.user and team.id == 0 %}
|
{% if member == rower.user and not team %}
|
||||||
•
|
•
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
||||||
|
|||||||
@@ -41,6 +41,17 @@ $('#id_workouttype').change();
|
|||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
|
|
||||||
|
<p>
|
||||||
|
{% if workout|previousworkout:rower.user %}
|
||||||
|
<a href="/rowers/workout/{{ workout|previousworkout:rower.user }}/edit"
|
||||||
|
title="Jump to preceding workout"><em>Previous</em></a>
|
||||||
|
{% endif %}
|
||||||
|
{% if workout|nextworkout:rower.user %}
|
||||||
|
<a href="/rowers/workout/{{ workout|nextworkout:rower.user }}/edit"
|
||||||
|
title="Jump to following workout"><em>Next</em></a>
|
||||||
|
{% endif %}
|
||||||
|
</p>
|
||||||
|
|
||||||
<h1>Edit Workout {{ workout.name }}</h1>
|
<h1>Edit Workout {{ workout.name }}</h1>
|
||||||
<ul class="main-content">
|
<ul class="main-content">
|
||||||
<li class="grid_4">
|
<li class="grid_4">
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ from rowers.utils import calculate_age
|
|||||||
from rowers.models import (
|
from rowers.models import (
|
||||||
course_length,WorkoutComment,
|
course_length,WorkoutComment,
|
||||||
TrainingMacroCycle,TrainingMesoCycle, TrainingMicroCycle,
|
TrainingMacroCycle,TrainingMesoCycle, TrainingMicroCycle,
|
||||||
Rower
|
Rower,Workout
|
||||||
)
|
)
|
||||||
from rowers.plannedsessions import (
|
from rowers.plannedsessions import (
|
||||||
race_can_register, race_can_submit,race_rower_status
|
race_can_register, race_can_submit,race_rower_status
|
||||||
@@ -464,4 +464,53 @@ def micromacroid(id):
|
|||||||
|
|
||||||
return str(theid)
|
return str(theid)
|
||||||
|
|
||||||
|
@register.filter
|
||||||
|
def nextworkout(workout,user):
|
||||||
|
if user.rower == workout.user:
|
||||||
|
ws = Workout.objects.filter(
|
||||||
|
startdatetime__gte=workout.startdatetime,
|
||||||
|
user=workout.user
|
||||||
|
).order_by(
|
||||||
|
"startdatetime"
|
||||||
|
).exclude(id=workout.id)
|
||||||
|
else:
|
||||||
|
ws = Workout.objects.filter(
|
||||||
|
startdatetime__gte=workout.startdatetime,
|
||||||
|
user=workout.user,privacy='visible'
|
||||||
|
).order_by(
|
||||||
|
"startdatetime"
|
||||||
|
).exclude(id=workout.id)
|
||||||
|
|
||||||
|
|
||||||
|
if ws:
|
||||||
|
return ws[0].id
|
||||||
|
else:
|
||||||
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@register.filter
|
||||||
|
def previousworkout(workout,user):
|
||||||
|
if user.rower == workout.user:
|
||||||
|
ws = Workout.objects.filter(
|
||||||
|
startdatetime__lte=workout.startdatetime,
|
||||||
|
user=workout.user
|
||||||
|
).order_by(
|
||||||
|
"-startdatetime"
|
||||||
|
).exclude(id=workout.id)
|
||||||
|
else:
|
||||||
|
ws = Workout.objects.filter(
|
||||||
|
startdatetime__lte=workout.startdatetime,
|
||||||
|
user=workout.user,privacy='visible'
|
||||||
|
).order_by(
|
||||||
|
"-startdatetime"
|
||||||
|
).exclude(id=workout.id)
|
||||||
|
|
||||||
|
|
||||||
|
if ws:
|
||||||
|
return ws[0].id
|
||||||
|
else:
|
||||||
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -357,7 +357,9 @@ urlpatterns = [
|
|||||||
url(r'^me/deactivate$',views.deactivate_user),
|
url(r'^me/deactivate$',views.deactivate_user),
|
||||||
url(r'^me/delete$',views.remove_user),
|
url(r'^me/delete$',views.remove_user),
|
||||||
url(r'^me/gdpr-optin-confirm/?$',views.user_gdpr_confirm),
|
url(r'^me/gdpr-optin-confirm/?$',views.user_gdpr_confirm),
|
||||||
|
url(r'^me/gdpr-optin-confirm/$',views.user_gdpr_confirm),
|
||||||
url(r'^me/gdpr-optin/?$',views.user_gdpr_optin),
|
url(r'^me/gdpr-optin/?$',views.user_gdpr_optin),
|
||||||
|
url(r'^me/gdpr-optin/$',views.user_gdpr_optin),
|
||||||
url(r'^me/teams/$',views.rower_teams_view),
|
url(r'^me/teams/$',views.rower_teams_view),
|
||||||
url(r'^me/calcdps/$',views.rower_calcdps_view),
|
url(r'^me/calcdps/$',views.rower_calcdps_view),
|
||||||
url(r'^me/exportsettings/$',views.rower_exportsettings_view),
|
url(r'^me/exportsettings/$',views.rower_exportsettings_view),
|
||||||
|
|||||||
Reference in New Issue
Block a user