{% extends "list-page.html" %} {% block style %} {{ super() }} {% endblock style %} {% block function_buttons %} {% endblock function_buttons %} {% block view_buttons %} {% endblock view_buttons %} {% block main_view_content_list %}

{{ _('Parts') }}

{{ _('Reset') }}

{{ ngettext('%(num)s part was found.', '%(num)s parts were found.', len(components)) }}

{% set next_direction = 'desc' if sort_key == 'number' and direction == 'asc' else 'asc' %} {% set next_direction = 'desc' if sort_key == 'name' and direction == 'asc' else 'asc' %} {% set next_direction = 'desc' if sort_key == 'unit_price' and direction == 'asc' else 'asc' %} {% set next_direction = 'desc' if sort_key == 'supplier' and direction == 'asc' else 'asc' %} {% set next_direction = 'desc' if sort_key == 'description' and direction == 'asc' else 'asc' %} {% for component in components %} {% set cad_filename = component_cad_filenames.get(component.uuid) %} {% endfor %}
{{ _('Part number') }}{% if sort_key == 'number' %}{% endif %}{{ _('Name') }}{% if sort_key == 'name' %}{% endif %}{{ _('Estimated unit price') }}{% if sort_key == 'unit_price' %}{% endif %}{{ _('Supplier') }}{% if sort_key == 'supplier' %}{% endif %}{{ _('Description') }}{% if sort_key == 'description' %}{% endif %}
{% if cad_filename %} {% endif %}
{{ component.number }} {{ component.name }} {{ component.unit_price }} {{ component.currency }} {{ component.supplier.name if component.supplier else "" }} {{ component.description }}
{% endblock main_view_content_list %} {% block main_view_content_preview %}
OpenPartsLibrary
{{ _('No CAD file attached') }}
{% endblock main_view_content_preview %} {% block script %} {{ super() }} {% endblock script %}