Improve appearence of events table in taskDetail
This commit is contained in:
parent
65ca110b81
commit
164d81871a
@ -20,18 +20,23 @@
|
|||||||
<input type="submit" value="Submit">
|
<input type="submit" value="Submit">
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<table>
|
<h2> Event Log </h2>
|
||||||
<tr>
|
<table class="table table-striped table-hover">
|
||||||
<th> Date </th>
|
<thead>
|
||||||
<th> User </th>
|
|
||||||
<th> Notes </th>
|
|
||||||
</tr>
|
|
||||||
{% for event in events %}
|
|
||||||
<tr>
|
<tr>
|
||||||
<td> {{ event.date }} </td>
|
<th> Date </th>
|
||||||
<td> {{ event.user }} </td>
|
<th> User </th>
|
||||||
<td> {{ event.notes }} </td>
|
<th> Notes </th>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{% for event in events|dictsortreversed:"date" %}
|
||||||
|
<tr>
|
||||||
|
<td class="text-nowrap"> {{ event.date }} </td>
|
||||||
|
<td> {{ event.user }} </td>
|
||||||
|
<td> {{ event.notes }} </td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user