{% extends "easy_pdf/base.html" %}
{% block title%}Products Report{%endblock%}
{% block header%}
{% include 'easy_pdf/header.html' %}
{%endblock%}
{% block content %}
{% for title in titles %}
{% if title in 'NAME,' %}
{{ title }} |
{% elif title in 'DESCRIPTION,' %}
{{ title }} |
{% else %}
{{ title }} |
{% endif %}
{% endfor %}
{% for stock in data %}
{{ stock.name }} |
{{ stock.description }} |
{{ stock.quantity }} |
{{ stock.unit_price }} |
{{ stock.stock_level }} |
{% endfor %}
{% endblock %}
{% block footer %}
{% include 'easy_pdf/footer.html' %}
{%endblock%}