UI cleanup

This commit is contained in:
Oliver Walters 2020-05-16 23:56:50 +10:00
parent e23a9c1269
commit 05856a72cf
5 changed files with 10 additions and 6 deletions

View File

@ -8,8 +8,9 @@
{% include "stock/tabs.html" with tab="tracking" %} {% include "stock/tabs.html" with tab="tracking" %}
<hr>
<h4>{% trans "Stock Tracking Information" %}</h4> <h4>{% trans "Stock Tracking Information" %}</h4>
<hr>
<div id='table-toolbar'> <div id='table-toolbar'>
<div class='btn-group'> <div class='btn-group'>
<button class='btn btn-success' type='button' title='New tracking entry' id='new-entry'>New Entry</button> <button class='btn btn-success' type='button' title='New tracking entry' id='new-entry'>New Entry</button>

View File

@ -7,8 +7,8 @@
{% include "stock/tabs.html" with tab='attachments' %} {% include "stock/tabs.html" with tab='attachments' %}
<hr>
<h4>{% trans "Stock Item Attachments" %}</h4> <h4>{% trans "Stock Item Attachments" %}</h4>
<hr>
{% include "attachment_table.html" with attachments=item.attachments.all %} {% include "attachment_table.html" with attachments=item.attachments.all %}

View File

@ -10,6 +10,7 @@
{% include "stock/tabs.html" with tab="notes" %} {% include "stock/tabs.html" with tab="notes" %}
{% if editing %} {% if editing %}
<h4>{% trans "Stock Item Notes" %}</h4> <h4>{% trans "Stock Item Notes" %}</h4>
<hr> <hr>

View File

@ -7,8 +7,8 @@
{% include "stock/tabs.html" with tab='tests' %} {% include "stock/tabs.html" with tab='tests' %}
<hr>
<h4>{% trans "Test Results" %}</h4> <h4>{% trans "Test Results" %}</h4>
<hr>
<div id='button-toolbar'> <div id='button-toolbar'>
<div class='button-toolbar container-fluid' style="float: right;"> <div class='button-toolbar container-fluid' style="float: right;">

View File

@ -1,9 +1,6 @@
{% load i18n %} {% load i18n %}
<ul class='nav nav-tabs'> <ul class='nav nav-tabs'>
<li{% ifequal tab 'children' %} class='active'{% endifequal %}>
<a href="{% url 'stock-item-children' item.id %}">{% trans "Children" %}{% if item.child_count > 0 %}<span class='badge'>{{ item.child_count }}</span>{% endif %}</a>
</li>
<li{% ifequal tab 'tracking' %} class='active'{% endifequal %}> <li{% ifequal tab 'tracking' %} class='active'{% endifequal %}>
<a href="{% url 'stock-item-detail' item.id %}"> <a href="{% url 'stock-item-detail' item.id %}">
{% trans "Tracking" %} {% trans "Tracking" %}
@ -36,4 +33,9 @@
{% if item.attachments.count > 0 %}<span class='badge'>{{ item.attachments.count }}</span>{% endif %} {% if item.attachments.count > 0 %}<span class='badge'>{{ item.attachments.count }}</span>{% endif %}
</a> </a>
</li> </li>
{% if item.child_count > 0 %}
<li{% ifequal tab 'children' %} class='active'{% endifequal %}>
<a href="{% url 'stock-item-children' item.id %}">{% trans "Children" %}{% if item.child_count > 0 %}<span class='badge'>{{ item.child_count }}</span>{% endif %}</a>
</li>
{% endif %}
</ul> </ul>