{% extends "base.html" %} {% block content %} {% for brick in inventory_file.results %} {% for i in json_file['unit'] %} {% endfor %} {% endfor %}
img part.element_id part.part_num part.name color.id color.name part.quantity part.is_spare Missing?
{{ brick.element_id }} {{ brick.part.part_num }} {{ brick.part.name }} {{ brick.color.id }} {{ brick.color.name }} {{ brick.quantity }} {{ brick.is_spare }} {% set ns = namespace(count='') %}
{% for j in i['bricks']['missing'] %} {% if j['brick']['ID'] == brick.part.part_num and j['brick']['color_name'] == brick.color.name %} {% set ns.count = j['brick']['amount'] %} {% endif %} {% endfor %}
{% endblock %}