{% extends "customer/baseaccountpage.html" %} {% load thumbnail %} {% load i18n %} {% load currency_filters %} {% load staticfiles %} {% load bootstrap4 %} {% load catalogue_tags %} {% block tabcontent %}

Mark your preferences

How it works? Rate the coffees you have tried, thumbs up or thumbs downs. If it is thumbs down, we will make sure we will not send you that coffee ever again!

{% if products %}
{% for product in products %}
{% block product_image %}
{% with image=product.primary_image %} {% thumbnail image.original "400x250" upscale=True crop="center" as thumb %} {{ product.get_title }} {% endthumbnail %} {% endwith %}
{% endblock %}

{{ product.get_title }}

{% define "far" as likeclass %} {% define "far" as dislikeclass %} {% if product.preferences_set.all %} {% get_object product.preferences_set.all as preference %} {% if preference == 1 %} {% define "fas" as likeclass %} {% else %} {% define "fas" as dislikeclass %} {% endif %} {% endif %}

Like

Dislike

{% endfor %}
{% include "partials/pagination.html" %}
{% else %}

{% trans "No products found." %}

{% endif %}
{% endblock tabcontent %}