Added Template for Place list view
This commit is contained in:
parent
44128caa6b
commit
77b13c3c66
30
source/lostplaces/lostplaces_app/templates/placeList.html
Normal file
30
source/lostplaces/lostplaces_app/templates/placeList.html
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{% extends 'global.html'%}
|
||||||
|
|
||||||
|
{% block maincontent %}
|
||||||
|
<ul class="LP-Place__List">
|
||||||
|
{% for place in place_list %}
|
||||||
|
<li class="LP-Place__Item">
|
||||||
|
<a href="{% url 'place_detail' pk=place.id %}" class="LP-Link">
|
||||||
|
<article class="LP-Place">
|
||||||
|
<img class="LP-Place__Image" src="/images/photo_2020-04-09_18-27-13.jpg" />
|
||||||
|
<div class="LP-Place__Assets">
|
||||||
|
<div class="LP-Place__Info">
|
||||||
|
<h3 class="LP-Place__Title">{{place.name}}</h3>
|
||||||
|
<p class="LP-Place__Detail">{{place.location}}</p>
|
||||||
|
</div>
|
||||||
|
<p class="LP-TextSection LP-Place__Description">
|
||||||
|
{{place.description}}
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<ul class="LP-Icon__List">
|
||||||
|
<li class="LP-Icon__Item"><img class="LP-Icon" src="/icons/favourite.svg" /></li>
|
||||||
|
<li class="LP-Icon__Item"><img class="LP-Icon" src="/icons/location.svg" /></li>
|
||||||
|
<li class="LP-Icon__Item"><img class="LP-Icon" src="/icons/flag.svg" /></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
{% endblock maincontent %}
|
Loading…
Reference in New Issue
Block a user