diff --git a/rowers/models.py b/rowers/models.py index 43b8c3dc..0d5a45ad 100644 --- a/rowers/models.py +++ b/rowers/models.py @@ -2316,6 +2316,7 @@ class PlannedSession(models.Model): hasranking = models.BooleanField(default=False) is_template = models.BooleanField(default=False) + is_public = models.BooleanField(default=False) fitfile = models.FileField(upload_to=get_file_path,blank=True,null=True) #steps_json = models.TextField(max_length=10000,default=None,blank=True,null=True) diff --git a/rowers/templates/menu_plan.html b/rowers/templates/menu_plan.html index 9c5d823d..820b95f7 100644 --- a/rowers/templates/menu_plan.html +++ b/rowers/templates/menu_plan.html @@ -100,6 +100,14 @@ {% endif %} +
+{% if user.is_authenticated and user|is_planmember %} @@ -117,7 +125,7 @@ {% if member == rower.user%} • {% else %} - + {% endif %} {{ member.first_name }} {{ member.last_name }} diff --git a/rowers/templates/templatelibrary.html b/rowers/templates/templatelibrary.html new file mode 100644 index 00000000..3d3e702c --- /dev/null +++ b/rowers/templates/templatelibrary.html @@ -0,0 +1,67 @@ +{% extends "newbase.html" %} +{% load staticfiles %} +{% load rowerfilters %} + +{% block title %}Planned Sessions{% endblock %} + +{% block main %} + +
+ Click on session name to view, edit to change the session. +
+| Name | +Type | +Mode | +Edit | ++ | |
|---|---|---|---|---|---|
| + {% if ps.name != '' %} + {{ ps.name }} + {% else %} + Unnamed Session + {% endif %} + | +{{ ps.get_sessiontype_display }} | +{{ ps.get_sessionmode_display }} | ++ + + + | +{{ ps.sessionvalue }} | +{{ ps.sessionunit }} | +