Formatting fixes

This commit is contained in:
Oliver 2018-04-30 21:56:46 +10:00
parent b2bb1ea1fe
commit 4a2b6a5674
2 changed files with 15 additions and 8 deletions

View File

@ -27,6 +27,11 @@
<td>Serial</td>
<td>{{ item.serial }}</td>
</tr>
{% else %}
<tr>
<td>Quantity</td>
<td>{{ item.quantity }}</td>
</tr>
{% endif %}
{% if item.batch %}
<tr>
@ -40,10 +45,6 @@
<td>{{ item.customer.name }}</td>
</tr>
{% endif %}
<tr>
<td>Quantity</td>
<td>{{ item.quantity }}</td>
</tr>
{% if item.URL %}
<tr>
<td>URL</td>
@ -79,20 +80,26 @@
</table>
{% if item.has_tracking_info %}
<h3>Stock Tracking</h3>
<div class='panel panel-default'>
<div data-toggle='collapse' data-target='#tracking-info' class='panel panel-heading'><h4>Tracking History</h4></div>
<div class='panel panel-body' id='tracking_info'>
<ul class='list-group'>
{% for track in item.tracking_info.all %}
<li class='list-group-item'>
<b>{{ track.title }}</b>
{% if track.notes %}
<br><br>{{ track.notes }}</i>
<br>{{ track.notes }}
{% endif %}
<span class='badge'>{{ track.date }}</span>
<span class='badge'>{{ track.date }} - {{ track.user }}</span>
</li>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
<div class='container-fluid'>
<button class='btn btn-info' id='edit-item'>Edit Stock Item</button>
{% if item.in_stock %}

View File

@ -1,5 +1,5 @@
<ul class="list-group">
{% for child in locations.all %}
<li class="list-group-item"><a href="{% url 'stock-location-detail' child.id %}">{{ child.name }}</a> - <i>{{ child.description }}</li>
<li class="list-group-item"><a href="{% url 'stock-location-detail' child.id %}">{{ child.name }}</a> - <i>{{ child.description }}</i></li>
{% endfor %}
</ul>