This commit is contained in:
Jędrzej Klepacki 2021-01-03 16:15:53 +01:00
parent ad503bdafa
commit 94d3480a2e
6 changed files with 31 additions and 75 deletions

View File

@ -37,39 +37,11 @@
<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 %} {% if product.Wolontatriat %}
<div class="c_product_item"> <div class="c_product_item" style="border: 5px dashed green;">
<div class="row"> {% else %}
<div class="col-lg-4 col-md-6"> <div class="c_product_item">
<div class="c_product_img"> {% endif %}
<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="row"> <div class="row">
<div class="col-lg-4 col-md-6"> <div class="col-lg-4 col-md-6">
<div class="c_product_img"> <div class="c_product_img">
@ -93,12 +65,10 @@
{% endif %}</h5> {% endif %}</h5>
<h6>Location: <span>{{ product.place }}</span></h6> <h6>Location: <span>{{ product.place }}</span></h6>
<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

@ -27,7 +27,11 @@
<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 %}
<div class="c_product_item"> {% if product.Wolontatriat %}
<div class="c_product_item" style="border: 5px dashed green;">
{% else %}
<div class="c_product_item">
{% endif %}
<div class="row"> <div class="row">
<div class="col-lg-4 col-md-6"> <div class="col-lg-4 col-md-6">
<div class="c_product_img"> <div class="c_product_img">

View File

@ -47,7 +47,11 @@
<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 %}
<div class="c_product_item"> {% if product.Wolontatriat %}
<div class="c_product_item" style="border: 5px dashed green;">
{% else %}
<div class="c_product_item">
{% endif %}
<div class="row"> <div class="row">
<div class="col-lg-4 col-md-6"> <div class="col-lg-4 col-md-6">
<div class="c_product_img"> <div class="c_product_img">
@ -101,7 +105,7 @@
<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">
<strong> {{ocen_jed.ocena_jedn}} </strong> <strong> <span STYLE="font-size:15.0pt"> {{ocen_jed.ocena_jedn}} </span> </strong>
</div> </div>
<div class="col-lg-8 col-md-6"> <div class="col-lg-8 col-md-6">
<div class="c_product_text"> <div class="c_product_text">

View File

@ -38,14 +38,17 @@
{% if all_product %} {% if all_product %}
{% for product in all_product %} {% for product in all_product %}
{% if product.Wolontatriat %} {% if product.Wolontatriat %}
<div class="c_product_item" style="border: 5px dashed green;">
{% else %}
<div class="c_product_item"> <div class="c_product_item">
{% endif %}
<div class="row"> <div class="row">
<div class="col-lg-4 col-md-6"> <div class="col-lg-4 col-md-6">
<div class="c_product_img"> <div class="c_product_img">
<img class="img-fluid" src="{{ product.picture.url }}"> <img class="img-fluid" src="{{ product.picture.url }}">
</div> </div>
</div> </div>
<span style="border: 5px dashed green;">
<div class="col-lg-8 col-md-6"> <div class="col-lg-8 col-md-6">
<div class="c_product_text"> <div class="c_product_text">
<h1>{{ product.title }}</h1> <h1>{{ product.title }}</h1>
@ -65,41 +68,8 @@
<h6>Location: <span>{{ product.place }}</span></h6> <h6>Location: <span>{{ product.place }}</span></h6>
</div> </div>
</div> </div>
</span>
</div> </div>
</div> </div>
{% else %}
<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>
<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 %}
Potrzebuje
{% else %}
Oddam
{% endif %}
{% if types_o.0.0 == product.offer %}
Usługa
{% else %}
Przedmiot
{% endif %}</h5>
<h6>Z miejscowości: <span>{{ product.place }}</span></h6>
<p>{{ product.description }}</p>
</div>
</div>
</div>
</div>
{% endif %}
{% endfor %} {% endfor %}
{% else %} {% else %}
<p>No polls are available.</p> <p>No polls are available.</p>

View File

@ -27,7 +27,11 @@
<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 %}
<div class="c_product_item"> {% if product.Wolontatriat %}
<div class="c_product_item" style="border: 5px dashed green;">
{% else %}
<div class="c_product_item">
{% endif %}
<div class="row"> <div class="row">
<div class="col-lg-4 col-md-6"> <div class="col-lg-4 col-md-6">
<div class="c_product_img"> <div class="c_product_img">

View File

@ -43,7 +43,11 @@
<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 %}
<div class="c_product_item"> {% if product.Wolontatriat %}
<div class="c_product_item" style="border: 5px dashed green;">
{% else %}
<div class="c_product_item">
{% endif %}
<div class="row"> <div class="row">
<div class="col-lg-4 col-md-6"> <div class="col-lg-4 col-md-6">
<div class="c_product_img"> <div class="c_product_img">
@ -94,7 +98,7 @@
<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">
<strong> {{ocen_jed.ocena_jedn}} </strong> <strong> <span STYLE="font-size:15.0pt"> {{ocen_jed.ocena_jedn}} </span> </strong>
</div> </div>
<div class="col-lg-8 col-md-6"> <div class="col-lg-8 col-md-6">
<div class="c_product_text"> <div class="c_product_text">