{% extends 'global.html'%}
{% load static %}

{% block title %}{{place.name}}{% endblock %}

{% block maincontent %}



<article class="LP-PlaceOverview">
    <div class="LP-PlaceOverview__Info">
        <img class="LP-PlaceOveriew__Image" src="{{ place.images.first.filename.url_hero }}">
        <article class="LP-PlaceOverView__Description">
            <div class="LP-TextSection">
                <h1 class="LP-Headline LP-Headline--main">{{place.name}}</h1>
                <p class="LP-Text LP-Content">{{place.description}}</p>
            </div>
        </article>
    </div>
    <article style="clear:both;">
        <h2 class="LP-Headline LP-Headline">Sicherheitsmaßnahmen</h2>
        <div class="LP-Content">
            <ul class="LP-SecurityMeasure__List">
                <li class="LP-SecurityMeasure__Item"><span class="LP-Text">Kameras</span></li>
                <li class="LP-SecurityMeasure__Item"><span class="LP-Text">Zaun</span></li>
                <li class="LP-SecurityMeasure__Item"><span class="LP-Text">Wachhund</span></li>
                <li class="LP-SecurityMeasure__Item"><span class="LP-Text">Alarmanlage</span></li>
                <li class="LP-SecurityMeasure__Item"><span class="LP-Text">Selbstschussanlage</span></li>
            </ul>
        </div>
    </article>
    <article>
        <h2 class="LP-Headline LP-Headline">Karten</h2>
        <div class="LP-Content">
            <ul class="LP-LinkList__List">
                <li class="LP-LinkList__Item"><a target="_blank" href="https://www.google.com/maps?q={{place.latitude}},{{place.longitude}}" class="LP-Link"><span class="LP-Text">Google Maps</span></a></li>
                <li class="LP-LinkList__Item"><a target="_blank" href="https://www.tim-online.nrw.de/tim-online2/?center={{place.latitude}},{{place.longitude}}&icon=true&bg=dop" class="LP-Link"><span class="LP-Text">TIM Online</span></a></li>
                <li class="LP-LinkList__Item"><a target="_blank" href="http://www.openstreetmap.org/?mlat={{place.latitude}}&mlon={{place.longitude}}&zoom=16" class="LP-Link"><span class="LP-Text">OSM</span></a></li>
            </ul>
        </div>
    </article>
    <article>
        <h2 class="LP-Headline LP-Headline">Fotoalben</h2>
        <div class="LP-Content">
            <ul class="LP-LinkList__List">
                <li class="LP-LinkList__Item"><a target="_blank" href="https://gallery.commander1024.de/index.php?/category/verlassenes-wohnhaus-mesum" class="LP-Link"><span class="LP-Text">Commander1024</span></a></li>
                <li class="LP-LinkList__Item"><a href="#" class="LP-Link LP-Link--iconized">
                    <div class="LP-Link__IconWrapper">
                       <svg class="LP-Link__Icon" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg"
                           xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512"
                           xml:space="preserve">
                           <g>
                               <path d="M492,236H276V20c0-11.046-8.954-20-20-20c-11.046,0-20,8.954-20,20v216H20c-11.046,0-20,8.954-20,20s8.954,20,20,20h216
               v216c0,11.046,8.954,20,20,20s20-8.954,20-20V276h216c11.046,0,20-8.954,20-20C512,244.954,503.046,236,492,236z" />
                           </g>
                       </svg>
                   </div>
                   <span class="LP-Text">Album hinzufügen</span></a></li>
            </ul>
        </div>
    </article>
    <article class="">
        <h2 class="LP-Headline LP-Headline">Bilder</h2>
        <div class=" LP-Content">
            <ul class="LP-PlaceOverView__ImageList">
                {% for place_image in place.images.all %}
                <li class="LP-PlaceOverView__ImageItem">
                    <a href="{{ place_image.filename.url_large }}"> <img src="{{ place_image.filename.url_thumbnail }}"></a>
                </li>
                {% endfor %}
            </ul>
        </div>
    </article>
</article>
{% endblock maincontent %}