product_detail.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  1. {% extends "base_generic.html" %}
  2. {% load fullurl %}
  3. {% load tags %}
  4. {% load static %}
  5. {% load email_obfuscator %}
  6. {% block script %}
  7. <link href="{% static 'featherlight.min.css' %}" type="text/css" rel="stylesheet" />
  8. <script src="{% static 'featherlight.min.js' %}"></script>
  9. <link href="{% static 'featherlight.gallery.min.css' %}" type="text/css" rel="stylesheet" />
  10. <script src="{% static 'featherlight.gallery.min.js' %}"></script>
  11. <script>
  12. $(document).ready(function() {
  13. $('.gallery').featherlightGallery({
  14. previousIcon: '«',
  15. nextIcon: '»',
  16. galleryFadeIn: 250,
  17. openSpeed: 250,
  18. });
  19. });
  20. </script>
  21. <style>
  22. .image-detail {
  23. margin: 40px 60px 40px 0px;
  24. }
  25. .product-text strong {
  26. font-weight: bolder;
  27. font: "NeuzeitGro-Bla", sans-serif;
  28. }
  29. .product-text {
  30. line-height: 1.2;
  31. color: #000;
  32. }
  33. .product-text h1,
  34. h2,
  35. h3,
  36. h4,
  37. h5 {
  38. color: #469CA8;
  39. }
  40. .product-color {
  41. color: #469CA8;
  42. }
  43. .titlepro {
  44. margin-top: 40px;
  45. font-family: NeuzeitGro-Bla;
  46. }
  47. @media (min-width: 500px) {}
  48. </style>
  49. {% endblock %}
  50. {% block content %}
  51. <!-- <hr style="color: black; background-color: black; margin-top: 0px; width: 130%; display: flex; margin-left: -20px; margin-right:20px "> -->
  52. <div class="container " style="">
  53. <div class="row gemain-color product-text">
  54. <div class="col-sm-6">
  55. <h1 class="titlepro" style="">{{ product.name }}</h1>
  56. <p class="lead kur">{% if product.claim %}{{ product.claim }}{% endif %}</p>
  57. <div class="row product-color">
  58. <div class="col-sm-4">{% include "marktplatz/modal-share.html" %}</div>
  59. <div class="col-sm-4"> {% include "marktplatz/modal-sa.html" %}</div>
  60. <div class="col-sm-4">{% if product.wohnprojekt.email %} {{ product.wohnprojekt.email | obfuscate_mailto:'<i class="fas fa-envelope"></i> Email' }}{% endif %}</div>
  61. </div>
  62. <div class="">
  63. &nbsp;
  64. </div>
  65. <div class="">
  66. &nbsp;
  67. </div>
  68. <div class="">
  69. &nbsp;
  70. </div>
  71. <div class="">
  72. &nbsp;
  73. </div>
  74. <div class="">
  75. <p><strong>Wohnungsangebot</strong>:<br>
  76. {% if product.frei == 'JAJA' %}
  77. Wohnung frei.
  78. {% if product.kfrei %}
  79. {{ product.kfrei }}
  80. {% if product.wohnprojekt.email %}<p>{{ product.wohnprojekt.email | obfuscate_mailto:'<i class="fas fa-envelope"></i> Email' }}</p>{% endif %}
  81. {% endif %}
  82. {% endif %}
  83. {% if product.frei == 'WART' %}
  84. Wir haben derzeit keine Wohnung frei, aber wir melden uns, wenn etwas frei wird. Aktiviere die Benachrichtigung!
  85. {% endif %}
  86. {% if product.frei == 'NEIN' %}
  87. Wir haben derzeit keine Wohnung und führen auch keine Warteliste, auf die du dich setzen lassen kannst.
  88. {% endif %}
  89. </p>
  90. </div>
  91. <!-- <div class="">
  92. {{ product.mitmachen }}
  93. </div> -->
  94. <p>{% if product.wohnprojekt.inseratstext %}<strong>{% field_name product.wohnprojekt 'inseratstext' %}</strong>:<br>{{ product.wohnprojekt.inseratstext }} {% if product.wohnprojekt.email %}<p>{{ product.wohnprojekt.email | obfuscate_mailto:'<i class="fas fa-envelope"></i> Email' }}</p>{% endif %}{% endif %}</p>
  95. <div class="">
  96. &nbsp;
  97. </div>
  98. <p class="">{% if product.beschreibung %}<strong>{% field_name product.wohnprojekt 'beschreibung' %}</strong>:<br>{{ product.beschreibung | safe | linebreaks }}{% endif %}</p>
  99. <p class="">{% if product.learning %}<strong>{% field_name product.wohnprojekt 'learning' %}</strong>:<br>{{ product.learning | safe | linebreaks }}{% endif %}</p>
  100. <div class="">
  101. &nbsp;
  102. </div>
  103. <div class="">
  104. &nbsp;
  105. </div>
  106. {% for video in product.video_set.all %}
  107. <video autoplay style="width: 100%;height: auto;vertical-align: middle; padding-bottom: 10px" controls>
  108. <source src="{{video.image.url}}" type="video/mp4">
  109. </video>
  110. {% endfor %}
  111. {% if product.media_set %}
  112. {% for media in product.media_set.all %}
  113. {% if not forloop.first %}
  114. {% if forloop.counter < 6 %}
  115. <div class="image-detail" style="flex: {% get_ratio media %}; ">
  116. <img href="{{media.image_big.url}}" src="{{media.image_norm.url }}" class="gallery img-fluid img-responsive" alt="" style="width: 100%;height: auto;vertical-align: middle;">
  117. </div>
  118. {% endif %}
  119. {% endif %}
  120. {% endfor %}
  121. {% endif %}
  122. </div>
  123. <!-- *************************************************************** -->
  124. <div class="col-sm-6">
  125. <div class="image-detail" style="">
  126. <img href="{{product.media_set.first.image_big.url}}" src="{{product.media_set.first.image_norm.url }}" class="gallery img-fluid img-responsive" alt="" style="width: 100%;height: auto;vertical-align: middle;">
  127. </div>
  128. <br />
  129. <h5 class=" mediumkur">Steckbrief</h5>
  130. <br />
  131. <p>{{ product.wohnprojekt.kind_of_product }}, gegründet {{ product.wohnprojekt.gruendungsjahr }}{% if product.wohnprojekt.betriebgenommen %}, in Betrieb genommen: {{ product.wohnprojekt.betriebgenommen }}{% endif %}.</p>
  132. <p><strong>Rechtsform</strong>: {{ product.wohnprojekt.rechtsform }}</p>
  133. <p>{{ product.wohnprojekt.artmodell }}</p>
  134. <p>{% if product.wohnprojekt.orga %}<strong>{% field_name product.wohnprojekt 'orga' %}</strong>: {{ product.wohnprojekt.orga }}{% endif %}</p>
  135. <p>{% if product.wohnprojekt.eigentum %}<strong>{% field_name product.wohnprojekt 'eigentum' %}</strong>: {{ product.wohnprojekt.get_eigentum_display }}{% endif %}</p>
  136. <p>{% if product.wohnprojekt.gprojekte %}<strong>Gemeinschaftliche Projekte</strong>: {{ product.wohnprojekt.gprojekte }}{% endif %}</p>
  137. <p><strong>Gemeinschaftsräume</strong>:
  138. {{ product.wohnprojekt.gemeinschaftr }}{% if product.wohnprojekt.kgemeinschaftr %}, {{ product.wohnprojekt.kgemeinschaftr }}{% endif %}
  139. </p>
  140. <p>{% if product.wohnprojekt.sonderwohnformen %}<strong>{% field_name product.wohnprojekt 'sonderwohnformen' %}</strong>: {{ product.wohnprojekt.sonderwohnformen }}{% endif %}</p>
  141. <p>{% if product.wohnprojekt.zielgruppen %}<strong>Besondere Zielgruppen</strong>: {{ product.wohnprojekt.zielgruppen }}{% endif %}</p>
  142. <p>{% if product.wohnprojekt.freiraumangebote %}<strong>Freiraumangebote</strong>: {{ product.wohnprojekt.freiraumangebote }}{% endif %}</p>
  143. <p>{% if product.wohnprojekt.oekologie %}<strong>{% field_name product.wohnprojekt 'oekologie' %}</strong>: {{ product.wohnprojekt.oekologie }}{% endif %}</p>
  144. <p>{% if product.wohnprojekt.schwerpunkt %}<strong>{% field_name product.wohnprojekt 'schwerpunkt' %}</strong>: {{ product.wohnprojekt.schwerpunkt }}{% endif %}</p>
  145. <br />
  146. <h5 class=" mediumkur">Kenndaten</h5>
  147. <br />
  148. <p>{{ product.wohnprojekt.get_altneu_display }}, {{ product.wohnprojekt.bauweise }}</p>
  149. <p><strong>Bautr&auml;ger</strong>: {{ product.wohnprojekt.bautraeger }}</p>
  150. <p>{% if product.wohnprojekt.architektur %}<strong>{% field_name product.wohnprojekt 'architektur' %}:</strong> {{ product.wohnprojekt.architektur }}{% endif %}</p>
  151. <p>{% if product.wohnprojekt.wohnbaufoerderung %}<strong>{% field_name product.wohnprojekt 'wohnbaufoerderung' %}:</strong> {{ product.wohnprojekt.wohnbaufoerderung }}{% endif %}</p>
  152. <p>im Haus Wohnen ca {{ product.wohnprojekt.aerwachsene }} Erwachsene und {{ product.wohnprojekt.akinder }} Kinder.
  153. Anzahl der Mitglieder: {{ product.wohnprojekt.amitglieder }}
  154. </p>
  155. <p>{% if product.wohnprojekt.awohnungen %}<strong>{% field_name product.wohnprojekt 'awohnungen' %}:</strong> {{ product.wohnprojekt.awohnungen }} Wohnungen{% endif %}</p>
  156. <p>{% if product.wohnprojekt.gaestwohnungen %}<strong>{% field_name product.wohnprojekt 'gaestwohnungen' %}:</strong> {{ product.wohnprojekt.gaestwohnungen }}{% endif %}</p>
  157. <p>{% if product.wohnprojekt.wohnflaeche %}<strong>{% field_name product.wohnprojekt 'wohnflaeche' %}:</strong> {{ product.wohnprojekt.wohnflaeche }} m<sup>2</sup>{% endif %}</p>
  158. <p>{% if product.wohnprojekt.gewerbeflaechen %}<strong>{% field_name product.wohnprojekt 'gewerbeflaechen' %}:</strong> {{ product.wohnprojekt.gewerbeflaechen }} m<sup>2</sup>{% endif %}</p>
  159. <p>{% if product.wohnprojekt.gemeinschaftsflaeche %}<strong>{% field_name product.wohnprojekt 'gemeinschaftsflaeche' %}:</strong> {{ product.wohnprojekt.gemeinschaftsflaeche }} m<sup>2</sup>{% endif %}</p>
  160. <p>{% if product.wohnprojekt.sonstige_flaechen %}<strong>{% field_name product.wohnprojekt 'sonstige_flaechen' %}:</strong> {{ product.wohnprojekt.sonstige_flaechen }} m<sup>2</sup>{% endif %}</p>
  161. <p>{% if product.wohnprojekt.flaeche %}<strong>{% field_name product.wohnprojekt 'flaeche' %}:</strong> {{ product.wohnprojekt.flaeche }} m<sup>2</sup>{% endif %}</p>
  162. <p>{% if product.wohnprojekt.kflaechen %}<strong>{% field_name product.wohnprojekt 'kflaechen' %}:</strong> {{ product.wohnprojekt.kflaechen }} m<sup>2</sup>{% endif %}</p>
  163. <p>{% if product.wohnprojekt.parbeiten %}Im Haus arbeiten ca {{ product.wohnprojekt.parbeiten }} Personen.{% endif %}
  164. {% if product.wohnprojekt.karbeiten %}{{ product.wohnprojekt.karbeiten }}{% endif %}</p>
  165. <p>{% if product.wohnprojekt.raumangebot %}<strong>{% field_name product.wohnprojekt 'raumangebot' %}:</strong> {{ product.wohnprojekt.raumangebot }}{% if product.wohnprojekt.kraumangebot %},
  166. {{ product.wohnprojekt.kraumangebot }}
  167. {% endif %}
  168. {% endif %}</p>
  169. <!-- <p>{% if product.wohnprojekt.kraumangebot %}<strong>{% field_name product.wohnprojekt 'kraumangebot' %}:</strong> {{ product.wohnprojekt.kraumangebot }}{% endif %}</p> -->
  170. <br />
  171. <h5 class=" mediumkur">Kontakt</h5>
  172. <br />
  173. <p>{{ product.wohnprojekt.adresse }}, {{ product.wohnprojekt.get_ort_display }}</p>
  174. <div class="row">
  175. <div class="col-sm-4">
  176. {% if product.wohnprojekt.email %}<p>{{ product.wohnprojekt.email | obfuscate_mailto:'<i class="fas fa-envelope"></i> Email' }}</p>{% endif %}
  177. </div>
  178. <div class="col-sm-8">
  179. {% if product.wohnprojekt.email %}<p><a href="mailto:{{ product.wohnprojekt.email | obfuscate }}" >{{ product.wohnprojekt.email | obfuscate }}</a></p>{% endif %}
  180. </div>
  181. </div>
  182. <div class="row">
  183. <div class="col-sm-4">
  184. {% if product.wohnprojekt.website %}<p><a href="{{ product.wohnprojekt.website }}" target="_blank" rel="noopener">Webseite</a></p>{% endif %}
  185. </div>
  186. <div class="col-sm-8">
  187. {% if product.wohnprojekt.website %}<p><a href="{{ product.wohnprojekt.website }}" target="_blank" rel="noopener">{{ product.wohnprojekt.website }}</a></p>{% endif %}
  188. </div>
  189. </div>
  190. <br />
  191. <h5 class="mediumkur">Mediacredits</h5>
  192. <br />
  193. {% for media in product.media_set.all %}
  194. {% if media.copyright %}
  195. <p class="fieldname"> {{ media.copyright }}</p>
  196. {% endif %}
  197. {% endfor %}
  198. {% for media in product.video_set.all %}
  199. {% if media.copyright %}
  200. <p class="fieldname"> {{ media.copyright }}</p>
  201. {% endif %}
  202. {% endfor %}
  203. {% if product.media_set %}
  204. {% for media in product.media_set.all %}
  205. {% if forloop.counter > 5 %}
  206. <div style="flex: {% get_ratio media %}; margin:40px 60px 40px 0px;">
  207. <img href="{{media.image_big.url}}" src="{{media.image_norm.url }}" class="gallery img-fluid img-responsive" alt="" style="width: 100%;height: auto;vertical-align: middle;">
  208. </div>
  209. {% endif %}
  210. {% endfor %}
  211. {% endif %}
  212. <!-- <p>{% if product.wohnprojekt.altneu %}{% field_name product.wohnprojekt 'altneu' %}: {{ product.wohnprojekt.altneu }}{% endif %}</p> -->
  213. <!-- <p>{% if product.wohnprojekt.artmodell %}{% field_name product.wohnprojekt 'artmodell' %}: {{ product.wohnprojekt.artmodell }}{% endif %}</p> -->
  214. <!-- <p>{% if product.wohnprojekt.bautraeger %}{% field_name product.wohnprojekt 'bautraeger' %}: {{ product.wohnprojekt.bautraeger }}{% endif %}</p> -->
  215. <!-- <p>{% if product.wohnprojekt.aerwachsene %}{% field_name product.wohnprojekt 'aerwachsene' %}: {{ product.wohnprojekt.aerwachsene }}{% endif %}</p>
  216. <p>{% if product.wohnprojekt.akinder %}{% field_name product.wohnprojekt 'akinder' %}: {{ product.wohnprojekt.akinder }}{% endif %}</p>
  217. <p>{% if product.wohnprojekt.amitglieder %}Anzahl an Mitglieder: {{ product.wohnprojekt.amitglieder }}{% endif %}</p> -->
  218. <!-- <p>{% if product.wohnprojekt.awohnungen %}{% field_name product.wohnprojekt 'awohnungen' %}: {{ product.wohnprojekt.awohnungen }}{% endif %}</p> -->
  219. <!-- <p>{% if product.wohnprojekt.wohnflaeche %}{% field_name product.wohnprojekt 'wohnflaeche' %}: {{ product.wohnprojekt.wohnflaeche }}{% endif %}</p>
  220. <p>{% if product.wohnprojekt.gewerbeflaechen %}{% field_name product.wohnprojekt 'gewerbeflaechen' %}: {{ product.wohnprojekt.gewerbeflaechen }}{% endif %}</p>
  221. <p>{% if product.wohnprojekt.gemeinschaftsflaeche %}{% field_name product.wohnprojekt 'gemeinschaftsflaeche' %}: {{ product.wohnprojekt.gemeinschaftsflaeche }}{% endif %}</p>
  222. <p>{% if product.wohnprojekt.sonstige_flaechen %}{% field_name product.wohnprojekt 'sonstige_flaechen' %}: {{ product.wohnprojekt.sonstige_flaechen }}{% endif %}</p>
  223. <p>{% if product.wohnprojekt.flaeche %}Fläche: {{ product.wohnprojekt.flaeche }}{% endif %}</p> -->
  224. <!-- <p>{% if product.wohnprojekt.gemeinschaftr %}{% field_name product.wohnprojekt 'gemeinschaftr' %}: {{ product.wohnprojekt.gemeinschaftr }}{% endif %}</p> -->
  225. <!-- <p>{% if product.wohnprojekt.kgemeinschaftr %}{% field_name product.wohnprojekt 'kgemeinschaftr' %}: {{ product.wohnprojekt.kgemeinschaftr }}{% endif %}</p> -->
  226. <!-- <p>{% if product.wohnprojekt.sonderwohnformen %}{% field_name product.wohnprojekt 'sonderwohnformen' %}: {{ product.wohnprojekt.sonderwohnformen }}{% endif %}</p> -->
  227. <!-- <p>{% if product.wohnprojekt.parbeiten %}{% field_name product.wohnprojekt 'parbeiten' %}: {{ product.wohnprojekt.parbeiten }}{% endif %}</p> -->
  228. <!-- <p>{% if product.wohnprojekt.bauweise %}{% field_name product.wohnprojekt 'bauweise' %}: {{ product.wohnprojekt.bauweise }}{% endif %}</p> -->
  229. <!-- <p>{% if product.wohnprojekt.zielgruppen %}{% field_name product.wohnprojekt 'zielgruppen' %}: {{ product.wohnprojekt.zielgruppen }}{% endif %}</p> -->
  230. <!-- <p>{% if product.wohnprojekt.gprojekte %}{% field_name product.wohnprojekt 'gprojekte' %}: {{ product.wohnprojekt.gprojekte }}{% endif %}</p> -->
  231. <!-- <p>{% if product.wohnprojekt.oekologie %}{% field_name product.wohnprojekt 'oekologie' %}: {{ product.wohnprojekt.oekologie }}{% endif %}</p> -->
  232. <!-- <p>{% if product.wohnprojekt.freiraumangebote %}{% field_name product.wohnprojekt 'freiraumangebote' %}: {{ product.wohnprojekt.freiraumangebote }}{% endif %}</p> -->
  233. </div>
  234. </div>
  235. </div>
  236. <div class="container">
  237. <div class="row" style="margin-top: 10px">
  238. <div class="col-sm-6">
  239. </div>
  240. <div class="col-sm-4">
  241. {% for field, value in product.wohnprojekt %}
  242. {% if value and not field == "ID" %}
  243. <!-- <p class="fieldname"><strong class="mediumkur"> {{ field }} :</strong> {{ value }}</p> -->
  244. {% endif %}
  245. {% endfor %}
  246. </div>
  247. </div>
  248. </div>
  249. {% endblock %}