40 lines
1.3 KiB
HTML
40 lines
1.3 KiB
HTML
{% extends 'index.html' %}
|
|
|
|
{% block content %}
|
|
|
|
{% if offer.status != 'Active'%}
|
|
<h1> OFERTA NIEKATYWNA </h1>
|
|
{% endif %}
|
|
|
|
<h1> {{ offer.title }} </h1>
|
|
{{offer.created_by}}
|
|
<p> {{ offer.price }} PLN / dzień</p>
|
|
<ul>
|
|
<li> 'DMC' <b> {{offer.DMC}} </b> </li>
|
|
<li> 'Places_to_sleep' <b> {{offer.Places_to_sleep}} </b></li>
|
|
<li> 'cooker' <b> {{offer.cooker}} </b></li>
|
|
<li> 'fridge' <b> {{offer.fridge}} </b></li>
|
|
<li> 'microwave' <b> {{offer.microwave}} </b></li>
|
|
<li> 'Webasto' <b> {{offer.Webasto}} </b></li>
|
|
<li> 'auto_temp_control' <b> {{offer.auto_temp_control}} </b></li>
|
|
<li> 'water_level_indicator' <b> {{offer.water_level_indicator}} </b> </li>
|
|
<li> 'battery_level'<b> {{offer.battery_level}} </b> </li>
|
|
<li> 'photovoltaic_panels' <b> {{offer.photovoltaic_panels}} </b> </li>
|
|
<li> 'gearbox <b> {{offer.gearbox}} </b> </li>
|
|
<li> 'tempomat' <b> {{offer.tempomat}} </b> </li>
|
|
</ul>
|
|
|
|
<h2> THUMBNAIL </h2>
|
|
{% for photo in offer.images.all %}
|
|
{% if photo.main_image == True%}
|
|
<img src="{{ photo.image.url }}" width = 600px>
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
<h2> GALLERY </h2>
|
|
{% for photo in offer.images.all %}
|
|
<img src="{{ photo.image.url }}" width = 600px>
|
|
{% endfor %}
|
|
|
|
|
|
{% endblock content %} |