{% extends "base_generic.html" %}
{% load fullurl %}
{% load tags %}
{% load static %}
{% block script %}
{% load email_obfuscator %}
<link href="{% static 'featherlight.min.css' %}" type="text/css" rel="stylesheet" />
<script src="{% static 'featherlight.min.js' %}" ></script>
<link href="{% static 'featherlight.gallery.min.css' %}" type="text/css" rel="stylesheet" />
<script src="{% static 'featherlight.gallery.min.js' %}" ></script>

<script>
	$(document).ready(function() {
		$('.gallery').featherlightGallery({
			previousIcon: '«',
			nextIcon: '»',
			galleryFadeIn: 250,
			openSpeed: 250,
		});
	});
</script>


{% endblock %}

{% block content %}


<style>
	.image-detail {

		margin: 40px 60px 40px 0px;
	}

	@media (min-width: 500px) {}
</style>

<!-- <hr style="color: black; background-color: black; margin-top: 0px; width: 130%; display: flex; margin-left: -20px; margin-right:20px "> -->

<div class="container " style="">
	<div class="row gemain-color">
		<div class="col-sm-3">
			<!-- --- -->
		</div>
		<div class="col-sm-6">
			<h2 class="titlepro" style="margin-top: 7px; font-weight: bold">{{ object.name }} </h2>
			<p class="lead kur"> {{ object.claim }}</p>
			<div class="image-detail" style="">
				<img href="{{object.media_set.first.image_big.url}}" src="{{object.media_set.first.image_norm.url }}" class="gallery img-fluid img-responsive" alt="" style="width: 100%;height: auto;vertical-align: middle;">
			</div>
			<br />
			<h5 class=" mediumkur">Steckbrief</h5>
			<br />
			<p>Gegründet {{ object.gruendungsjahr }}, in Betrieb genommen: {{ object.betriebgenommen }}.</p>
			<p>Rechtsform: {{ object.rechtsform }}</p>
			<p>{{ object.artmodell }}</p>
			<p>{{ object.orga }}</p>
			<p>{% if object.eigentum  %}{% field_name object.wohnprojekt 'eigentum' %}: {{ object.get_eigentum_display }}{% endif %}</p>
			<p>Gemeinschaftliche Projekte: {{ object.gprojekte }}</p>
			<p>Gemeinschaftsräume: {{ object.gemeinschaftr }}
				{% if object.kgemeinschaftr  %} - {{ object.kgemeinschaftr }}{% endif %}
			</p>
			<p>{% if object.sonderwohnformen  %}{% field_name object.wohnprojekt 'sonderwohnformen' %}: {{ object.sonderwohnformen }}{% endif %}</p>
			<p>Besondere Zielgruppen: {{ object.zielgruppen }}</p>
			<p>Freiraumangebote: {{ object.freiraumangebote }}</p>
			<p>{% if object.schwerpunkt  %}{% field_name object.wohnprojekt 'schwerpunkt' %}: {{ object.schwerpunkt }}{% endif %}</p>
			<p>{{ object.oekologie }}</p>
			<br />
			<h5 class=" mediumkur">Kontakt</h5>
			<br />
			<p>{{ object.adresse }}, {{ object.get_ort_display }}</p>
			{% if object.email  %}<p>{{ object.email | obfuscate_mailto:'<i class="fas fa-envelope"></i> Email'  }}</p>{% endif %}
			<p><a href="{{  object.website }}">Webseite</a></p>
		</div>
		<div class="col-sm-3">
		</div>
	</div>
</div>


<div class="container">
	<div class="row" style="margin-top: 10px">
		<div class="col-sm-6">

		</div>
		<div class="col-sm-4">
		</div>
	</div>
</div>

{% endblock %}
