home

verlanglijst-producten.djhtml

1
{% for product in products %}
2
<div id="{{ product.id }}">
3
    {% if product.picture %}
4
    <img src="{{ product.picture }}"
5
         style="float:right">
6
    {% endif %}
7
    <h3>{{ product.name|safe }} 
8
        {% if product.estimated_price == 0 %}
9
            (onbekende prijs)
10
        {% else %}
11
            (~€{{ product.estimated_price }})
12
        {% endif %}</h3>
13
    <p>
14
        {% if product.url %}
15
        <a href="{{ product.url }}">URL</a><br>
16
        {% endif %}
17
        {% if product.isbn %}
18
        ISBN: {{ product.isbn }}<br>
19
        {% endif %}
20
        {% if product.extra_info %}
21
        {{ product.extra_info|safe }}
22
        {% endif %}
23
    </p>
24
    {% if form %}
25
    <form method="POST" action="#{{ product.id }}">
26
        {% csrf_token %}
27
        <input type="hidden" name="product_id" value="{{ product.id }}">
28
        <input type="submit" value="Ik ga dit kopen">
29
    </form>
30
    {% endif %}
31
</div>
32
{% endfor %}
33