diff --git a/InvenTree/report/templates/report/inventree_test_report.html b/InvenTree/report/templates/report/inventree_test_report.html index 4c585d531b..4607494f8f 100644 --- a/InvenTree/report/templates/report/inventree_test_report.html +++ b/InvenTree/report/templates/report/inventree_test_report.html @@ -1,116 +1,3 @@ -{% extends "report/inventree_report_base.html" %} +{% extends "report/inventree_test_report_base.html" %} -{% load i18n %} -{% load report %} -{% load inventree_extras %} - -{% block style %} -.test-table { - width: 100%; -} - -{% block bottom_left %} -content: "{{ date.isoformat }}"; -{% endblock %} - -{% block bottom_center %} -content: "InvenTree v{% inventree_version %}"; -{% endblock %} - -{% block top_center %} -content: "{% trans 'Stock Item Test Report' %}"; -{% endblock %} - -.test-row { - padding: 3px; -} - -.test-pass { - color: #5f5; -} - -.test-fail { - color: #F55; -} - -.container { - padding: 5px; - border: 1px solid; -} - -.text-left { - display: inline-block; - width: 50%; -} - -.img-right { - display: inline; - align-content: right; - align-items: right; - width: 50%; -} - -.part-img { - height: 4cm; -} - -{% endblock %} - -{% block page_content %} - -
{{ part.description }}
-{{ stock_item.location }}
-Stock Item ID: {{ stock_item.pk }}
-{% trans "Test" %} | -{% trans "Result" %} | -{% trans "Value" %} | -{% trans "User" %} | -{% trans "Date" %} | -|
---|---|---|---|---|---|
{{ test.test }} | - {% if test.result %} -{% trans "Pass" %} | - {% else %} -{% trans "Fail" %} | - {% endif %} -{{ test.value }} | -{{ test.user.username }} | -{{ test.date.date.isoformat }} | -
{{ part.description }}
+{{ stock_item.location }}
+Stock Item ID: {{ stock_item.pk }}
+{% trans "Test" %} | +{% trans "Result" %} | +{% trans "Value" %} | +{% trans "User" %} | +{% trans "Date" %} | +|
---|---|---|---|---|---|
{{ test.test }} | + {% if test.result %} +{% trans "Pass" %} | + {% else %} +{% trans "Fail" %} | + {% endif %} +{{ test.value }} | +{{ test.user.username }} | +{{ test.date.date.isoformat }} | +