{% extends 'base.html' %} {% load static %} {% load qr_code %} {% block content %}
{% if component.get_resolved_image %} {{component.name}} {% else %} {{component.name}} {% endif %}
{% qr_from_text component.get_qr_code size="m" image_format="svg" %}
{% if component.datasheet_link %} Datasheet {% endif %}
Name Package Manufacturer Type Total #
{{component.name}} {% if component.package %}{{component.package.name}}{% endif %} {% if component.manufacturer %}{{component.manufacturer.name}}{% endif %} {% if component.component_type %}{{component.component_type.class_name}}{% endif %} {{component.get_total_amount}}

Description

{% if component.description %} {{component.description}} {% else %} {% endif %}
{% if component.get_resolved_image %} {% endif %} {% include 'parts/modals/edit-component-modal.html' with heading="Edit "|add:component.name edit_form=edit_form %} {% endblock content %} {% block custom_scripts %} {% endblock custom_scripts %}