updated basic plannedsession view
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
{% for row in rows %}
|
||||
<tr>
|
||||
<td class="name">{{ row.attr }}</td>
|
||||
<td class="field">{{ row.value }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
@@ -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">
|
||||
|
||||
@@ -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'
|
||||
]
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user