diff --git a/rowers/templates/plannedsessionscoach.html b/rowers/templates/plannedsessionscoach.html index dceb066a..8a888c22 100644 --- a/rowers/templates/plannedsessionscoach.html +++ b/rowers/templates/plannedsessionscoach.html @@ -43,7 +43,7 @@ {% if user.is_authenticated and user|is_manager %} -
+
{% if user.is_authenticated and user|is_manager %} {% if timeperiod %} Add Team Session {% else %} - Add Team Session + Add Team Session + {% endif %} + {% else %} +   + {% endif %} +
+
+ {% if user.is_authenticated and user|is_manager %} + {% if timeperiod %} + Coach Overview + {% else %} + Coach Overview {% endif %} {% else %}   diff --git a/rowers/views.py b/rowers/views.py index 77cbd9ba..eb9a46bc 100644 --- a/rowers/views.py +++ b/rowers/views.py @@ -11894,6 +11894,14 @@ def plannedsessions_coach_view(request,timeperiod='thisweek', } statusdict[ps.id] = sessiondict + unmatchedworkouts = [] + for r in rowers: + unmatchedworkouts += Workout.objects.filter( + user=r, + plannedsession=None, + date__gte=startdate,date__lte=enddate) + + myteams = Team.objects.filter(manager=request.user) return render(request,'plannedsessionscoach.html', @@ -11904,6 +11912,8 @@ def plannedsessions_coach_view(request,timeperiod='thisweek', 'timeperiod':timeperiod, 'rowers':rowers, 'theteam':theteam, + 'unmatchedworkouts':unmatchedworkouts, + 'rower':getrower(request.user) } ) diff --git a/static/css/rowsandall.css b/static/css/rowsandall.css index 36fe4242..f8d66d68 100644 --- a/static/css/rowsandall.css +++ b/static/css/rowsandall.css @@ -139,9 +139,10 @@ cox { .listtable tbody tr:nth-of-type(even) { background-color: #DDD; } .listtable thead th { - font-weight: bold; + font-weight: bold; } + .shortpadded td { padding: 3px 3px } .paddedtable td { padding: 1px 20px }