diff --git a/rowers/metrics.py b/rowers/metrics.py index b4140f1c..27694003 100644 --- a/rowers/metrics.py +++ b/rowers/metrics.py @@ -219,7 +219,7 @@ rowingmetrics = ( 'ax_max': 15, 'default': 0, 'mode':'both', - 'type': 'pro'}), + 'type': 'basic'}), ) @@ -236,3 +236,60 @@ axlabels = {ax[0]:ax[1] for ax in axes} yaxminima = {ax[0]:ax[2] for ax in axes} yaxmaxima = {ax[0]:ax[3] for ax in axes} + +defaultfavoritecharts = ( + { + 'yparam1':'pace', + 'yparam2':'spm', + 'xparam':'time', + 'plottype':'line', + 'workouttype':'both', + 'reststrokes':True, + 'notes':'Some Notes 1', + }, + { + 'yparam1':'pace', + 'yparam2':'hr', + 'xparam':'time', + 'plottype':'line', + 'workouttype':'both', + 'reststrokes':True, + 'notes':'Some Notes 2', + }, + { + 'yparam1':'distanceperstroke', + 'yparam2':'hr', + 'xparam':'time', + 'plottype':'line', + 'workouttype':'otw', + 'reststrokes':True, + 'notes':'Some Notes 3', + }, + { + 'yparam1':'strokeenergy', + 'yparam2':'hr', + 'xparam':'time', + 'plottype':'line', + 'workouttype':'ote', + 'reststrokes':True, + 'notes':'Some Notes 3', + }, + { + 'yparam1':'distanceperstroke', + 'yparam2':'None', + 'xparam':'spm', + 'plottype':'line', + 'workouttype':'otw', + 'reststrokes':True, + 'notes':'Some Notes 4', + }, + { + 'yparam1':'strokeenergy', + 'yparam2':'None', + 'xparam':'spm', + 'plottype':'line', + 'workouttype':'ote', + 'reststrokes':True, + 'notes':'Some Notes 4', + }, + ) diff --git a/rowers/models.py b/rowers/models.py index 6bb2c91e..2913c6be 100644 --- a/rowers/models.py +++ b/rowers/models.py @@ -344,6 +344,8 @@ class FavoriteChart(models.Model): default='both', verbose_name='Workout Type') reststrokes = models.BooleanField(default=True,verbose_name="Incl. Rest") + notes = models.CharField(max_length=300,verbose_name='Chart Notes', + default='Flex Chart Notes',blank=True) user = models.ForeignKey(Rower) diff --git a/rowers/templates/flexchart3.html b/rowers/templates/flexchart3.html index aa49ff65..37aaac5c 100644 --- a/rowers/templates/flexchart3.html +++ b/rowers/templates/flexchart3.html @@ -168,7 +168,6 @@ -{% if user.rower.rowerplan == 'pro' or user.rower.rowerplan == 'coach' %}