Private
Public Access
1
0

updated basic plannedsession view

This commit is contained in:
Sander Roosendaal
2018-02-06 11:28:46 +01:00
parent da02466f8a
commit 7e73a5c06b
3 changed files with 8 additions and 9 deletions

View File

@@ -1,6 +0,0 @@
{% for row in rows %}
<tr>
<td class="name">{{ row.attr }}</td>
<td class="field">{{ row.value }}</td>
</tr>
{% endfor %}

View File

@@ -11,13 +11,15 @@
<div id="left" class="grid_6 alpha">
<h1>Session {{ psdict.name.1 }}</h1>
<table class="listtable shortpadded">
{% for header, value in psdict.items %}
{% if header in attrs %}
{% for attr in attrs %}
{% for key,value in psdict.items %}
{% if key == attr %}
<tr>
<td><b>{{ value.0 }}</b></td><td>{{ value.1 }}</td>
</tr>
{% endif %}
{% endfor %}
{% endfor %}
</table>
</div>
<div id="right" class="grid_6 omega">

View File

@@ -11819,6 +11819,9 @@ def plannedsession_view(request,id=0):
return render(request,'plannedsessionview.html',
{
'psdict': psdict,
'attrs':['name','startdate']
'attrs':[
'name','startdate','enddate','sessiontype',
'comment'
]
}
)