{% extends "part/part_app_base.html" %} {% load static %} {% block content %} {% if part.active == False %}
This part is not active:
{% endif %} {% if part.is_template %}
This part is a template part.
It is not a real part, but real parts can be based on this template.
{% endif %} {% if part.variant_of %}
This part is a variant of {{ part.variant_of.full_name }}
{% endif %}

{{ part.full_name }}

{{ part.description }}

{% if part.is_template == False %} {% include "qr_button.html" %} {% endif %}

{% if part.IPN %} {% endif %} {% if part.URL %} {% endif %}
IPN {{ part.IPN }}
URL {{ part.URL }}
{% if part.allocation_count > 0 %} {% endif %} {% if part.on_order > 0 %} {% endif %} {% if part.assembly %} {% if part.quantity_being_built > 0 %} {% endif %} {% endif %}

Stock Status

In Stock {{ part.total_stock }}
Allocated {{ part.allocation_count }}
On Order {{ part.on_order }}
Total Available {{ part.net_stock }}

Build Status

Can Build {{ part.can_build }}
Underway {{ part.quantity_being_built }}

{% block details %} {% endblock %}
{% endblock %} {% block js_ready %} {{ block.super }} enableDragAndDrop( '#part-thumb', "{% url 'part-image' part.id %}", { label: 'image', success: function(data, status, xhr) { location.reload(); } } ); $("#show-qr-code").click(function() { launchModalForm( "{% url 'part-qr' part.id %}", { no_post: true, } ); }); $("#price-button").click(function() { launchModalForm( "{% url 'part-pricing' part.id %}", { submit_text: 'Calculate', } ); }); $("#toggle-starred").click(function() { toggleStar({ part: {{ part.id }}, user: {{ user.id }}, button: '#part-star-icon' }); }); $('#toggle-starred').click(function() { }); $("#part-thumb").click(function() { launchModalForm( "{% url 'part-image' part.id %}", { reload: true } ); }); {% endblock %}