Skip to content

Commit

Permalink
Create m2-p2-s2-render-products
Browse files Browse the repository at this point in the history
  • Loading branch information
divanov11 authored Apr 22, 2020
1 parent 1dad05d commit 7c3836a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions m2-p2-s2-render-products
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{% extends 'store/main.html' %}
{% load static %}
{% block content %}
<div class="row">
{% for product in products %}
<div class="col-lg-4">
<img class="thumbnail" src="{% static 'images/placeholder.png' %}">
<div class="box-element product">
<h6><strong>{{product.name}}</strong></h6>
<hr>

<button class="btn btn-outline-secondary add-btn">Add to Cart</button>
<a class="btn btn-outline-success" href="#">View</a>
<h4 style="display: inline-block; float: right"><strong>${{product.price}}</strong></h4>

</div>
</div>
{% endfor %}
</div>

{% endblock content %}

0 comments on commit 7c3836a

Please sign in to comment.