{% extends 'base.html' %} {% block content %}

Products > {{product.name}}

{% if user.is_authenticated %} {% endif %} {% if user.is_authenticated %}
{% csrf_token %}
{% endif %}

Details

Current Real Price: $ {{product.real_price|floatformat:2}}

{% if graph_error != None %} {% endif %}
{% comment %} TOP ROW {% endcomment %}

$ {{product.cost_price|floatformat:2}} / {{product.measurement}}   

Estimated Cost

{{product.value|floatformat:3}} h   

Estimated Labor Time

{% comment %} END TOP ROW {% endcomment %} {% comment %} 2 x 2 section {% endcomment %}

$ {{product.direct_wages|floatformat:2}}

Direct Wages

$ {{product.indirect_wages|floatformat:2}}

Indirect Wages

{{product.direct_labor|floatformat:3}} h

Direct Labor

{{product.indirect_labor|floatformat:3}} h

Indirect Labor

{% comment %} end 2 x 2 section {% endcomment %}

Dependencies

{% if user.is_authenticated %}
{% comment %} {% endcomment %}
{% endif %}
{% if dependencies|length > 0 %} {% for dep in dependencies %}
Name Quantity
{{dep.dependency.name}} {{dep.quantity}} {{dep.dependency.measurement}}s {% endfor %}
{% elif user.is_authenticated %}
Click the "Add" button to add a dependency!
{% else %}
Login to start adding some dependencies!
{% endif %}
{% endblock %}