added comment to session view
This commit is contained in:
@@ -38,7 +38,11 @@
|
|||||||
{% for key,value in psdict.items %}
|
{% for key,value in psdict.items %}
|
||||||
{% if key == attr %}
|
{% if key == attr %}
|
||||||
<tr>
|
<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>
|
<td><b>{{ value.0 }}</b></td><td>{{ value.1 }}</td>
|
||||||
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
@@ -12727,6 +12727,7 @@ def plannedsession_view(request,id=0,rowerid=0,
|
|||||||
ranking = sorted(ranking, key=lambda k: k['time'])
|
ranking = sorted(ranking, key=lambda k: k['time'])
|
||||||
|
|
||||||
# if coursetest, need to reorder the ranking
|
# if coursetest, need to reorder the ranking
|
||||||
|
|
||||||
|
|
||||||
return render(request,'plannedsessionview.html',
|
return render(request,'plannedsessionview.html',
|
||||||
{
|
{
|
||||||
@@ -12734,7 +12735,7 @@ def plannedsession_view(request,id=0,rowerid=0,
|
|||||||
'attrs':[
|
'attrs':[
|
||||||
'name','startdate','enddate','sessiontype',
|
'name','startdate','enddate','sessiontype',
|
||||||
'sessionmode','criterium',
|
'sessionmode','criterium',
|
||||||
'sessionvalue','sessionunit'
|
'sessionvalue','sessionunit','comment',
|
||||||
],
|
],
|
||||||
'workouts': ws,
|
'workouts': ws,
|
||||||
'manager':m,
|
'manager':m,
|
||||||
|
|||||||
Reference in New Issue
Block a user