diff --git a/rowers/forms.py b/rowers/forms.py index 7de907ce..be4adb45 100644 --- a/rowers/forms.py +++ b/rowers/forms.py @@ -822,6 +822,17 @@ class PlanSelectForm(forms.Form): class CourseSelectForm(forms.Form): course = forms.ModelChoiceField(queryset=GeoCourse.objects.all()) +class WorkoutSingleSelectForm(forms.Form): + workout = forms.ModelChoiceField( + queryset=Workout.objects.filter(), + widget=forms.RadioSelect + ) + + def __init__(self, *args, **kwargs): + workouts = kwargs.pop('workouts',Workout.objects.filter().order_by('-date')) + super(WorkoutSingleSelectForm,self).__init__(*args,**kwargs) + self.fields['workout'].queryset = workouts + class WorkoutMultipleCompareForm(forms.Form): workouts = forms.ModelMultipleChoiceField( queryset=Workout.objects.filter(), diff --git a/rowers/templates/list_graphs.html b/rowers/templates/list_graphs.html index 0b9a82df..8daf3046 100644 --- a/rowers/templates/list_graphs.html +++ b/rowers/templates/list_graphs.html @@ -12,14 +12,15 @@
@@ -28,7 +29,7 @@
-
+
{% else %}
@@ -40,11 +41,11 @@
{% endif %}
{% endif %}
-
+
Page {{ graphs.number }} of {{ graphs.paginator.num_pages }}.
-
+
{% if graphs.has_next %}
{% if request.GET.q %}
@@ -69,7 +70,7 @@
-
+
+ {% if analyses.has_previous %}
+ {% if request.GET.q %}
+
+
+
+
+
+
+ {% else %}
+
+
+
+
+
+
+ {% endif %}
+ {% endif %}
+
+
+ Page {{ analyses.number }} of {{ analyses.paginator.num_pages }}.
+
+
+ {% if analyses.has_next %}
+ {% if request.GET.q %}
+
+
+
+
+
+
+ {% else %}
+
+
+
+
+
+
+ {% endif %}
+ {% endif %}
+
+
+ No videos found
+
@@ -90,4 +91,4 @@
{% block sidebar %}
{% include 'menu_workouts.html' %}
-{% endblock %}
+{% endblock %}
diff --git a/rowers/templates/list_videos.html b/rowers/templates/list_videos.html
new file mode 100644
index 00000000..4e1dfa33
--- /dev/null
+++ b/rowers/templates/list_videos.html
@@ -0,0 +1,90 @@
+{% extends "newbase.html" %}
+{% load staticfiles %}
+{% load rowerfilters %}
+
+{% block title %}Rowsandall Recent Video Analyses{% endblock %}
+
+{% block scripts %}
+{% include "monitorjobs.html" %}
+{% endblock %}
+
+{% block main %}
+
Recent videos
+
+
+
+
+{% endblock %}
+
+{% block sidebar %}
+{% include 'menu_analytics.html' %}
+{% endblock %}
diff --git a/rowers/templates/menu_analytics.html b/rowers/templates/menu_analytics.html
index 83739081..9e9c32e3 100644
--- a/rowers/templates/menu_analytics.html
+++ b/rowers/templates/menu_analytics.html
@@ -2,6 +2,24 @@
{% load rowerfilters %}
+
+ Analysis
+ {% if user.is_authenticated and user|is_manager and rower %} +
-{% if user|coach_rowers %} - -{% endif %} -{% endif %} + {% if user|coach_rowers %} + + {% endif %} + {% endif %} -{% if user|user_teams %} -
- -{% endif %} + {% if user|user_teams %} +
+ + {% endif %} -{% include 'menuscript.html' %} + {% include 'menuscript.html' %} diff --git a/rowers/templates/video_selectworkout.html b/rowers/templates/video_selectworkout.html new file mode 100644 index 00000000..1902ca5e --- /dev/null +++ b/rowers/templates/video_selectworkout.html @@ -0,0 +1,117 @@ +{% extends "newbase.html" %} +{% load staticfiles %} +{% load rowerfilters %} + +{% block title %}Workouts{% endblock %} + +{% block main %} + + + + + + +
Select the workout you want to add a video to
+