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

Products

{% if errors %} {% endif %}
{% if user.is_authenticated %}
{% csrf_token %}
{% endif %}
{% if products|length > 0 %} {% for product in products %} {% endfor %} {% elif user.is_authenticated and has_filter == None %}
Click the "Create" button to get started!
{% elif has_filter %}
Uh oh, no products matched that search.
{% else %}
Login to start adding some products!
{%endif%}
{{ product.name }}
Estimated cost: ${{product.cost_price|floatformat:2}}
Estimated labor time: {{product.value|floatformat:3}} h
Unit of Measurement: {{product.measurement}}
{% if products.paginator.page_range|length > 1 or current_page != 1 %}
{%endif%}
{% endblock %}