Private
Public Access
1
0

added comment to session view

This commit is contained in:
Sander Roosendaal
2018-03-03 16:56:54 +01:00
parent 6ca5ec83cc
commit 39a21bf45f
2 changed files with 6 additions and 1 deletions

View File

@@ -38,7 +38,11 @@
{% for key,value in psdict.items %}
{% if key == attr %}
<tr>
{% if key == 'comment' %}
<td><b>{{ value.0 }}</b></td><td>{{ value.1|linebreaks }}</td>
{% else %}
<td><b>{{ value.0 }}</b></td><td>{{ value.1 }}</td>
{% endif %}
</tr>
{% endif %}
{% endfor %}

View File

@@ -12727,6 +12727,7 @@ def plannedsession_view(request,id=0,rowerid=0,
ranking = sorted(ranking, key=lambda k: k['time'])
# if coursetest, need to reorder the ranking
return render(request,'plannedsessionview.html',
{
@@ -12734,7 +12735,7 @@ def plannedsession_view(request,id=0,rowerid=0,
'attrs':[
'name','startdate','enddate','sessiontype',
'sessionmode','criterium',
'sessionvalue','sessionunit'
'sessionvalue','sessionunit','comment',
],
'workouts': ws,
'manager':m,