1
0
Fork 0

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:
Mateusz Piotrowski 2017-10-07 21:32:29 +02:00 committed by Piotr Dobrowolski
parent 79ee409e83
commit 4e2038a094
1 changed files with 20 additions and 0 deletions

View File

@ -14,6 +14,26 @@
</h2> </h2>
<div class="row"> <div class="row">
<div class="col-md-4"> <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> <h3>Properties</h3>
<table class="table table-hover table-striped"> <table class="table table-hover table-striped">
<thead> <thead>