{% import 'colors_macro.html' as colors %}
{% extends "component_table.html" %}
{% block header_extra_col %}
{# undefied 'bom_id', tbd where/how it is needed
{% if bom_id %}
BOM: {{ bom_id }} |
{% endif %}
#}
{% endblock %}
{% block info_columns %}
{% if component.type %} {{ component.type }} | {% endif %}
{% if component.show_wirecount %} {{ component.wirecount }}x | {% endif %}
{% if component.gauge_str_with_equiv %} {{ component.gauge_str_with_equiv }} | {% endif %}
{% if component.shield %} + S | {% endif %}
{% if component.length_str %} {{ component.length_str }} | {% endif %}
{% if component.color %} {{ component.color }} | {% endif %}
{% if component.color %} {{ colors.colorbar_cells(component.color, component.color.len) }} {% endif %}
{% endblock %}
{% block ports %}
| |
{% for wire in component.wire_objects.values() %}
{% if wire.is_shield %}
| |
{% endif %}
| {{ component.wire_ins_str(wire.id) }} |
|
{{ wire.wireinfo() }} |
|
{{ component.wire_outs_str(wire.id) }} |
|
|
{% if wire.partnumbers and component.partnumbers.is_list %}
{% set partnumbers = wire.partnumbers.as_list(parent_partnumbers=component.partnumbers) %}
{% if partnumbers %}
{% for partnumber in partnumbers[0] %}
{% if partnumber %}
| {{ partnumber }} |
{% endif %}
{% endfor %}
|
{% endif %}
{% endif %}
{% endfor %}
| |
{% endblock %}