added comment to session view
This commit is contained in:
@@ -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 %}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user