This commit is contained in:
Jędrzej Klepacki 2021-01-03 15:57:50 +01:00
commit ad503bdafa
2 changed files with 67 additions and 2 deletions

View File

@ -37,6 +37,38 @@
<div class="c_product_grid_details"> <div class="c_product_grid_details">
{% if all_product %} {% if all_product %}
{% for product in all_product %} {% for product in all_product %}
{% if product.Wolontatriat %}
<div class="c_product_item">
<div class="row">
<div class="col-lg-4 col-md-6">
<div class="c_product_img">
<img class="img-fluid" src="{{ product.picture.url }}">
</div>
</div>
<span style="border: 5px dashed green;">
<div class="col-lg-8 col-md-6">
<div class="c_product_text">
<h1>{{ product.title }}</h1>
<h6><a href="user_profile/{{ product.user_iden }}">{{ product.user_iden }}</a></h6>
<h5>
{% if types.0.0 == product.type %}
Need
{% else %}
Give
{% endif %}
{% if types_o.0.0 == product.offer %}
Service
{% else %}
Items
{% endif %}</h5>
<h6>Location: <span>{{ product.place }}</span></h6>
</div>
</div>
</span>
</div>
</div>
{% else %}
<div class="c_product_item"> <div class="c_product_item">
<div class="row"> <div class="row">
<div class="col-lg-4 col-md-6"> <div class="col-lg-4 col-md-6">
@ -54,19 +86,19 @@
{% else %} {% else %}
Give Give
{% endif %} {% endif %}
{% if types_o.0.0 == product.offer %} {% if types_o.0.0 == product.offer %}
Service Service
{% else %} {% else %}
Items Items
{% endif %}</h5> {% endif %}</h5>
<h6>Locality: <span>{{ product.place }}</span></h6> <h6>Location: <span>{{ product.place }}</span></h6>
<p>{{ product.description }}</p> <p>{{ product.description }}</p>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{% endif %}
{% endfor %} {% endfor %}
{% else %} {% else %}
<p>No polls are available.</p> <p>No polls are available.</p>

View File

@ -37,6 +37,38 @@
<div class="c_product_grid_details"> <div class="c_product_grid_details">
{% if all_product %} {% if all_product %}
{% for product in all_product %} {% for product in all_product %}
{% if product.Wolontatriat %}
<div class="c_product_item">
<div class="row">
<div class="col-lg-4 col-md-6">
<div class="c_product_img">
<img class="img-fluid" src="{{ product.picture.url }}">
</div>
</div>
<span style="border: 5px dashed green;">
<div class="col-lg-8 col-md-6">
<div class="c_product_text">
<h1>{{ product.title }}</h1>
<h6><a href="user_profile/{{ product.user_iden }}">{{ product.user_iden }}</a></h6>
<h5>
{% if types.0.0 == product.type %}
Need
{% else %}
Give
{% endif %}
{% if types_o.0.0 == product.offer %}
Service
{% else %}
Items
{% endif %}</h5>
<h6>Location: <span>{{ product.place }}</span></h6>
</div>
</div>
</span>
</div>
</div>
{% else %}
<div class="c_product_item"> <div class="c_product_item">
<div class="row"> <div class="row">
<div class="col-lg-4 col-md-6"> <div class="col-lg-4 col-md-6">
@ -67,6 +99,7 @@
</div> </div>
</div> </div>
</div> </div>
{% endif %}
{% endfor %} {% endfor %}
{% else %} {% else %}
<p>No polls are available.</p> <p>No polls are available.</p>