Add "Details" section to item view
Now information like: owner, state, taken {by, on, until} are presented in the item page.
This commit is contained in:
parent
79ee409e83
commit
4e2038a094
|
@ -14,6 +14,26 @@
|
|||
</h2>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<h3>Details</h3>
|
||||
<table class="table table-hover table-striped">
|
||||
{% if item.owner %}
|
||||
<tr><td>owner</td><td>{{ item.owner }}</td></tr>
|
||||
{% endif %}
|
||||
|
||||
<tr><td>state</td><td>{{ item.state }}</td></tr>
|
||||
{% if item.taken_by %}
|
||||
<tr><td>taken by</td><td>{{ item.taken_by }}</td></tr>
|
||||
{% endif %}
|
||||
|
||||
{% if item.taken_on %}
|
||||
<tr><td>taken on</td><td>{{ item.taken_on }}</td></tr>
|
||||
{% endif %}
|
||||
|
||||
{% if item.taken_until %}
|
||||
<tr><td>taken until</td><td>{{ item.taken_until }}</td></tr>
|
||||
{% endif %}
|
||||
</table>
|
||||
|
||||
<h3>Properties</h3>
|
||||
<table class="table table-hover table-striped">
|
||||
<thead>
|
||||
|
|
Loading…
Reference in New Issue