{% extends "page.html" %} {% block style %} {% endblock style %} {% block function_buttons %}{% endblock function_buttons %} {% block view_buttons %} {% endblock view_buttons %} {% block main_view_content %}
{% if component_cad_filename %} {% else %}
OpenPartsLibrary
{{ _('No CAD file attached') }}
{% endif %}

{{ _('Part') }}

{{ component.name }}

{% if component_cad_filename %} {{ _('Download CAD') }} {% endif %}
{{ _('Name') }} {{ component.name }}
{{ _('Description') }} {{ component.description }}
{{ _('Part number') }} {{ component.number }}
{{ _('Supplier') }} {{ component.supplier.name }}
{{ _('Estimated unit price') }} {{ component.unit_price }} {{ component.currency }}

{{ _('Attached Files') }}

{{ ngettext('%(num)s file found.', '%(num)s files found.', files|length) }}

{% for file in files %} {% else %} {% endfor %}
{{ _('Name') }} {{ _('Last modified') }}
{{ file.name }} {{ file.date_modified }}
{{ _('No files attached.') }}

{{ _('Used in BOM') }}

{{ ngettext('%(num)s BOM found.', '%(num)s BOMs found.', used_in_boms|length) }}

{% for used_in_bom in used_in_boms %} {% else %} {% endfor %}
{{ _('BOM number') }} {{ _('Name') }} {{ _('Quantity') }} {{ _('Estimated cost') }}
{{ used_in_bom.bom.number }} {{ used_in_bom.bom.name }} {{ used_in_bom.quantity }} {{ used_in_bom.cost }}
{{ _('This part is not used in any BOM.') }}
{% endblock main_view_content %} {% block script %}{% endblock script %}