|
|
@@ -202,32 +202,32 @@ $(document).ready(function(){
|
|
|
{{main_card|safe}}
|
|
|
|
|
|
|
|
|
- {% for Product in Product_list %}
|
|
|
+ {% for product in product_list %}
|
|
|
|
|
|
- <div class="mab-card {% for name in Product.country %} {{name.code}} {% endfor %} {{Product.year}} {% for category in Product.category.all %} {{category.short_name}} {% endfor %} card rounded-0 border-0 {% if user.is_authenticated %} {% get_vote_class Product user %} {% endif %}" style="">
|
|
|
- <a href="{% url 'product-detail' Product.pk %}">
|
|
|
+ <div class="mab-card {% for name in product.country %} {{name.code}} {% endfor %} {{product.year}} {% for category in product.category.all %} {{category.short_name}} {% endfor %} card rounded-0 border-0 {% if user.is_authenticated %} {% get_vote_class product user %} {% endif %}" style="">
|
|
|
+ <a href="{% url 'product-detail' product.pk %}">
|
|
|
<div style="position: relative;text-align: center;">
|
|
|
- <img class="{% if user.is_authenticated %}{% get_vote_class Product user %} {% endif %} {% for category in Product.category.all %} {{category.short_name}} {% endfor %} card-img-top rounded-0" src="{{Product.media_set.first.image_norm.url}}" alt="image">
|
|
|
- <div class="mab-Product-title" style="">{{Product.name|upper }}</div>
|
|
|
+ <img class="{% if user.is_authenticated %}{% get_vote_class product user %} {% endif %} {% for category in product.category.all %} {{category.short_name}} {% endfor %} card-img-top rounded-0" src="{{product.media_set.first.image_norm.url}}" alt="image">
|
|
|
+ <div class="mab-product-title" style="">{{product.name|upper }}</div>
|
|
|
{% if user.is_authenticated %}
|
|
|
- <div class="mab-Product-vote" style="">{% get_vote Product user %}</div>
|
|
|
+ <div class="mab-product-vote" style="">{% get_vote product user %}</div>
|
|
|
{% endif %}
|
|
|
</div>
|
|
|
</a>
|
|
|
<div class="card-body mab-card-body" style="">
|
|
|
<!--<div class="border-0 d-flex justify-content">
|
|
|
- <p class="card-title" style="margin-bottom: 3px"><a href="{% url 'product-detail' Product.pk %}"> {{Product.header }} </a></p>
|
|
|
+ <p class="card-title" style="margin-bottom: 3px"><a href="{% url 'product-detail' product.pk %}"> {{product.header }} </a></p>
|
|
|
|
|
|
</div>-->
|
|
|
|
|
|
<p class="mab-card-text card-text" style="">
|
|
|
- {% for name in Product.country %}
|
|
|
+ {% for name in product.country %}
|
|
|
<button id='{{name.code}}' class="border-thin mybtn" style="">#{{name.name}}</button>
|
|
|
{% endfor %}
|
|
|
|
|
|
- <button id='{{Product.year}}' class="border-thin mybtn" style="">#{{Product.year}}</button>
|
|
|
+ <button id='{{product.year}}' class="border-thin mybtn" style="">#{{product.year}}</button>
|
|
|
|
|
|
- {% for category in Product.category.all %}
|
|
|
+ {% for category in product.category.all %}
|
|
|
<button id='{{category.short_name}}' class="border-thin mybtn" style="">#{{category.name}}</button>
|
|
|
{% endfor %}
|
|
|
</p>
|