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

{{ part.name }}{% if part.active == False %} - INACTIVE{% endif %}

{{ part.description }}

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

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 }} $("#part-thumb").click(function() { launchModalForm( "{% url 'part-image' part.id %}", { reload: true } ); }); {% endblock %}