added teams and invitations placeholder views
This commit is contained in:
@@ -65,7 +65,6 @@ class PowerZonesField(models.TextField):
|
||||
if isinstance(value, list):
|
||||
return value
|
||||
# remove double quotes and brackets
|
||||
print value
|
||||
value = re.sub(r'u\"','',value)
|
||||
value = re.sub(r'u\'','',value)
|
||||
value = re.sub(r'\\','',value)
|
||||
@@ -77,8 +76,6 @@ class PowerZonesField(models.TextField):
|
||||
value = re.sub(r'\]\]',']',value)
|
||||
value = re.sub(r'\ \ ',' ',value)
|
||||
value = re.sub(r', ',',',value)
|
||||
print "aap"
|
||||
print value
|
||||
|
||||
return value.split(self.token)
|
||||
|
||||
|
||||
27
rowers/templates/invitations.html
Normal file
27
rowers/templates/invitations.html
Normal file
@@ -0,0 +1,27 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Teams {% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="grid_12 alpha">
|
||||
<div class="grid_6 alpha">
|
||||
<p>
|
||||
<h2>Invitations</h2>
|
||||
|
||||
Future invitations page
|
||||
|
||||
</p>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="grid_6 omega">
|
||||
<p>
|
||||
<h2>Manual with Code</h2>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
{% endblock %}
|
||||
27
rowers/templates/teams.html
Normal file
27
rowers/templates/teams.html
Normal file
@@ -0,0 +1,27 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Teams {% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="grid_12 alpha">
|
||||
<div class="grid_6 alpha">
|
||||
<p>
|
||||
<h2>Teams</h2>
|
||||
|
||||
Future teams page
|
||||
|
||||
</p>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="grid_6 omega">
|
||||
<p>
|
||||
<h2>Invitations</h2>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
{% endblock %}
|
||||
@@ -199,6 +199,9 @@ urlpatterns = [
|
||||
url(r'^workout/(\d+)/stravauploadw/$',views.workout_strava_upload_view),
|
||||
url(r'^workout/(\d+)/recalcsummary/$',views.workout_recalcsummary_view),
|
||||
url(r'^workout/(\d+)/sporttracksuploadw/$',views.workout_sporttracks_upload_view),
|
||||
url(r'^me/teams/$',views.rower_teams_view),
|
||||
url(r'^me/invitation/$',views.rower_invitations_view),
|
||||
url(r'^me/invitation/(\d+)/$',views.rower_invitations_view),
|
||||
url(r'^me/edit/c/(?P<message>\w+.*)$',views.rower_edit_view),
|
||||
url(r'^me/edit/s/(?P<successmessage>\w+.*)$',views.rower_edit_view),
|
||||
url(r'^me/edit/$',views.rower_edit_view),
|
||||
|
||||
@@ -5275,3 +5275,20 @@ def strokedatajson(request,id):
|
||||
return HttpResponse(row.id,status=201)
|
||||
|
||||
#Method not supported
|
||||
return HttpResponseNotAllowed("Method not supported")
|
||||
|
||||
|
||||
# Teams related views
|
||||
|
||||
@login_required()
|
||||
def rower_teams_view(request):
|
||||
|
||||
return render(request, 'teams.html',
|
||||
{
|
||||
|
||||
})
|
||||
|
||||
@login_required()
|
||||
def rower_invitations_view(request,code=None):
|
||||
return render(request, 'invitations.html',
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user