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">
|
<div id="left" class="grid_6 alpha">
|
||||||
<h1>Session {{ psdict.name.1 }}</h1>
|
<h1>Session {{ psdict.name.1 }}</h1>
|
||||||
<table class="listtable shortpadded">
|
<table class="listtable shortpadded">
|
||||||
{% for header, value in psdict.items %}
|
{% for attr in attrs %}
|
||||||
{% if header in attrs %}
|
{% for key,value in psdict.items %}
|
||||||
|
{% if key == attr %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><b>{{ value.0 }}</b></td><td>{{ value.1 }}</td>
|
<td><b>{{ value.0 }}</b></td><td>{{ value.1 }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div id="right" class="grid_6 omega">
|
<div id="right" class="grid_6 omega">
|
||||||
|
|||||||
@@ -11819,6 +11819,9 @@ def plannedsession_view(request,id=0):
|
|||||||
return render(request,'plannedsessionview.html',
|
return render(request,'plannedsessionview.html',
|
||||||
{
|
{
|
||||||
'psdict': psdict,
|
'psdict': psdict,
|
||||||
'attrs':['name','startdate']
|
'attrs':[
|
||||||
|
'name','startdate','enddate','sessiontype',
|
||||||
|
'comment'
|
||||||
|
]
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user