diff --git a/rowers/models.py b/rowers/models.py index 68b6d7c2..e130d8a1 100644 --- a/rowers/models.py +++ b/rowers/models.py @@ -3721,3 +3721,12 @@ class BlogPost(models.Model): title = models.TextField(max_length=300) link = models.TextField(max_length=300) date = models.DateField() + +class VideoAnalysis(models.Model): + name = models.CharField(default='', max_length=150,blank=True,null=True) + video_id = models.CharField(default='',max_length=150) + delay = models.IntegerField(default=0) + workout = models.ForeignKey(Workout, on_delete=models.CASCADE) + + def __str__(self): + return self.name diff --git a/rowers/templates/embedded_video.html b/rowers/templates/embedded_video.html index c0ceff75..16e63d22 100644 --- a/rowers/templates/embedded_video.html +++ b/rowers/templates/embedded_video.html @@ -15,25 +15,10 @@ {% block main %} -
- {% if workout|previousworkout:rower.user %} - Previous - {% endif %} - {% if workout|nextworkout:rower.user %} - Next - {% endif %} -
{% language 'en' %} -- This page will contain an embedded video -
-To load your video, paste the URL of your YouTube video in the form below, and submit the form.
+ {% else %} ++ Change parameters in the form and press Reload to see the result. When + you are ready to permanently save the video analysis, press Save. +
{% endif %}-
+ + {% endif %} ++ Delete Analysis +
+ {% endif %}
+
+
{{ workout.summary }}
@@ -151,13 +151,13 @@ $('#id_workouttype').change();
-
+
{{ mapdiv|safe }}
-
+
{{ mapscript|safe }}
+
+