mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add an (empty) page for dispalying test results
This commit is contained in:
parent
fe99e92bfc
commit
a17ab9bfbd
20
InvenTree/stock/templates/stock/item_tests.html
Normal file
20
InvenTree/stock/templates/stock/item_tests.html
Normal file
@ -0,0 +1,20 @@
|
||||
{% extends "stock/item_base.html" %}
|
||||
|
||||
{% load static %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block details %}
|
||||
|
||||
{% include "stock/tabs.html" with tab='tests' %}
|
||||
|
||||
<hr>
|
||||
<h4>{% trans "Test Results" %}</h4>
|
||||
|
||||
<table class='table table-striped table-condensed' id='test-result-table'></table>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block js_ready %}
|
||||
{{ block.super }}
|
||||
|
||||
{% endblock %}
|
@ -10,6 +10,14 @@
|
||||
{% if item.tracking_info.count > 0 %}<span class='badge'>{{ item.tracking_info.count }}</span>{% endif %}
|
||||
</a>
|
||||
</li>
|
||||
{% if item.part.trackable %}
|
||||
<li{% if tab == 'tests' %} class='active'{% endif %}>
|
||||
<a href="{% url 'stock-item-test-results' item.id %}">
|
||||
{% trans "Test Results" %}
|
||||
{% if item.test_results.count > 0 %}<span class='badge'>{{ item.test_results.count }}</span>{% endif %}
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if 0 %}
|
||||
<!-- These tabs are to be implemented in the future -->
|
||||
<li{% ifequal tab 'builds' %} class='active'{% endifequal %}>
|
||||
|
@ -24,6 +24,7 @@ stock_item_detail_urls = [
|
||||
|
||||
url(r'^add_tracking/', views.StockItemTrackingCreate.as_view(), name='stock-tracking-create'),
|
||||
|
||||
url(r'^test/', views.StockItemDetail.as_view(template_name='stock/item_tests.html'), name='stock-item-test-results'),
|
||||
url(r'^children/', views.StockItemDetail.as_view(template_name='stock/item_childs.html'), name='stock-item-children'),
|
||||
url(r'^attachments/', views.StockItemDetail.as_view(template_name='stock/item_attachments.html'), name='stock-item-attachments'),
|
||||
url(r'^notes/', views.StockItemNotes.as_view(), name='stock-item-notes'),
|
||||
|
Loading…
Reference in New Issue
Block a user