{% extends "report/inventree_report_base.html" %} {% load i18n %} {% load report %} {% load inventree_extras %} {% block style %} .test-table { width: 100%; } {% block bottom_left %} content: "{% format_date date %}"; {% endblock bottom_left %} {% block bottom_center %} content: "{% inventree_version shortstring=True %}"; {% endblock bottom_center %} {% block top_center %} content: "{% trans 'Stock Item Test Report' %}"; {% endblock top_center %} .test-row { padding: 3px; } .test-pass { color: #5f5; } .test-fail { color: #F55; } .test-not-found { color: #33A; } .required-test-not-found { color: #EEE; background-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 style %} {% block pre_page_content %} {% endblock pre_page_content %} {% block page_content %}
{{ part.description }}
{{ stock_item.location }}
Stock Item ID: {{ stock_item.pk }}
{% trans "Test" %} | {% trans "Result" %} | {% trans "Value" %} | {% trans "User" %} | {% trans "Date" %} | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{% if test_template %} {% render_html_text test_template.test_name bold=test_template.required %} {% elif test_result %} {% render_html_text test_result.test italic=True %} {% else %} {{ key }} {% endif %} | {% if test_result %} {% if test_result.result %}{% trans "Pass" %} | {% else %}{% trans "Fail" %} | {% endif %}{{ test_result.value }} | {{ test_result.user.username }} | {% format_date test_result.date.date %} | {% else %} {% if test_template.required %}{% trans "No result (required)" %} | {% else %}{% trans "No result" %} | {% endif %} {% endif %}
|
{% if sub_item.serialized %} {% trans "Serial" %}: {{ sub_item.serial }} {% else %} {% trans "Quantity" %}: {% decimal sub_item.quantity %} {% endif %} |