{% extends 'base.html' %} {% load static %} {% load qr_code %} {% load crispy_forms_tags %} {% 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}} {% if component.package.image %} {% endif %} {% endif %} {% if component.manufacturer %} {{component.manufacturer.name}} {% if component.manufacturer.image %} {% endif %} {% endif %} {% if component.component_type %}{{component.component_type.class_name}}{% endif %} {{component.get_total_amount}}

Description

{% if component.description %} {{component.description|linebreaks}} {% else %} {% endif %}

Parameters

{% csrf_token %} {% for f in param_formset %} {% endfor %}
Parameter Value Unit
{{f.parameter_type_object.unit}}

Stocks

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