{% extends "part/part_app_base.html" %} {% load static %} {% block content %}
{% if part.active == False %}
This part ({{ part.full_name }}) is not active:
{% endif %}

{{ part.full_name }}

{% if part.variant %}

Variant: {{ part.variant }}

{% endif %}

{{ part.description }}

{% include "qr_button.html" %}

{% if part.IPN %} {% endif %} {% if part.URL %} {% endif %}
IPN {{ part.IPN }}
URL {{ part.URL }}

Stock Status - {{ part.available_stock }}{% if part.units %} {{ part.units }} {% endif%} available

{% if part.buildable %} {% if part.quantity_being_built > 0 %} {% endif %} {% endif %} {% if part.allocation_count > 0 %} {% endif %}
In Stock {{ part.total_stock }}
Can Build {{ part.can_build }}
Underway {{ part.quantity_being_built }}
Allocated {{ part.allocation_count }}

{% block details %} {% endblock %}
{% include 'modals.html' %} {% 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, } ); }); $("#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 %}