product_detail.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  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 }}
  56. <small class="text-muted">{% if product.year %} {{ product.year }}, {% endif %} {% for country in product.country %} {{ country.name }}, {% endfor %} {% if product.city %} {{ product.city }} {% endif %}</small>
  57. </h1>
  58. <p class="lead kur"> {{ product.claim }}</p>
  59. <div class="row product-color">
  60. <div class="col-sm-4">{% include "marktplatz/modal-share.html" %}</div>
  61. <div class="col-sm-4"> {% include "marktplatz/modal-sa.html" %}</div>
  62. <div class="col-sm-4">{% if product.wohnprojekt.email %} {{ product.wohnprojekt.email | obfuscate_mailto:'<i class="fas fa-envelope"></i> Email' }}{% endif %}</div>
  63. </div>
  64. <div class="">
  65. &nbsp;
  66. </div>
  67. <div class="">
  68. &nbsp;
  69. </div>
  70. <div class="">
  71. &nbsp;
  72. </div>
  73. <div class="">
  74. &nbsp;
  75. </div>
  76. <div class="">
  77. <p><strong>Wohnungsangebot</strong>:<br>
  78. {% if product.frei == 'JAJA' %}
  79. Wohnung frei.
  80. {% if product.kfrei %}
  81. {{ product.kfrei }}
  82. {% if product.wohnprojekt.email %}<p>{{ product.wohnprojekt.email | obfuscate_mailto:'<i class="fas fa-envelope"></i> Email' }}</p>{% endif %}
  83. {% endif %}
  84. {% endif %}
  85. {% if product.frei == 'WART' %}
  86. Wir haben derzeit keine Wohnung frei, aber wir melden uns, wenn etwas frei wird. Aktiviere die Benachrichtigung!
  87. {% endif %}
  88. {% if product.frei == 'NEIN' %}
  89. Wir haben derzeit keine Wohnung und führen auch keine Warteliste, auf die du dich setzen lassen kannst.
  90. {% endif %}
  91. </p>
  92. </div>
  93. <!-- <div class="">
  94. {{ product.mitmachen }}
  95. </div> -->
  96. <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>
  97. <div class="">
  98. &nbsp;
  99. </div>
  100. <p class="">{% if product.beschreibung %}<strong>{% field_name product.wohnprojekt 'beschreibung' %}</strong>:<br>{{ product.beschreibung }}{% endif %}</p>
  101. <p class="">{% if product.learning %}<strong>{% field_name product.wohnprojekt 'learning' %}</strong>:<br>{{ product.learning }}{% endif %}</p>
  102. <div class="">
  103. &nbsp;
  104. </div>
  105. <div class="">
  106. &nbsp;
  107. </div>
  108. {% for video in product.video_set.all %}
  109. <video autoplay style="width: 100%;height: auto;vertical-align: middle; padding-bottom: 10px" controls>
  110. <source src="{{video.image.url}}" type="video/mp4">
  111. </video>
  112. {% endfor %}
  113. {% if product.media_set %}
  114. {% for media in product.media_set.all %}
  115. {% if not forloop.first %}
  116. {% if forloop.counter < 6 %}
  117. <div class="image-detail" style="flex: {% get_ratio media %}; ">
  118. <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;">
  119. </div>
  120. {% endif %}
  121. {% endif %}
  122. {% endfor %}
  123. {% endif %}
  124. </div>
  125. <!-- *************************************************************** -->
  126. <div class="col-sm-6">
  127. <div class="image-detail" style="">
  128. <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;">
  129. </div>
  130. <br />
  131. <h5 class=" mediumkur">Steckbrief</h5>
  132. <br />
  133. <p>{{ product.wohnprojekt.kind_of_product }}, gegründet {{ product.wohnprojekt.gruendungsjahr }}{% if product.wohnprojekt.betriebgenommen %}, in Betrieb genommen: {{ product.wohnprojekt.betriebgenommen }}{% endif %}.</p>
  134. <p><strong>Rechtsform</strong>: {{ product.wohnprojekt.rechtsform }}</p>
  135. <p>{{ product.wohnprojekt.artmodell }}</p>
  136. <p>{% if product.wohnprojekt.orga %}<strong>{% field_name product.wohnprojekt 'orga' %}</strong>: {{ product.wohnprojekt.orga }}{% endif %}</p>
  137. <p>{% if product.wohnprojekt.eigentum %}<strong>{% field_name product.wohnprojekt 'eigentum' %}</strong>: {{ product.wohnprojekt.get_eigentum_display }}{% endif %}</p>
  138. <p><strong>Gemeinschaftliche Projekte</strong>: {{ product.wohnprojekt.gprojekte }}</p>
  139. <p><strong>Gemeinschaftsräume</strong>: {{ product.wohnprojekt.gemeinschaftr }}
  140. {% if product.wohnprojekt.kgemeinschaftr %} - {{ product.wohnprojekt.kgemeinschaftr }}{% endif %}
  141. </p>
  142. <p>{% if product.wohnprojekt.sonderwohnformen %}<strong>{% field_name product.wohnprojekt 'sonderwohnformen' %}</strong>: {{ product.wohnprojekt.sonderwohnformen }}{% endif %}</p>
  143. <p><strong>Besondere Zielgruppen</strong>: {{ product.wohnprojekt.zielgruppen }}</p>
  144. <p><strong>Freiraumangebote</strong>: {{ product.wohnprojekt.freiraumangebote }}</p>
  145. <p>{% if product.wohnprojekt.oekologie %}<strong>{% field_name product.wohnprojekt 'oekologie' %}</strong>: {{ product.wohnprojekt.oekologie }}{% endif %}</p>
  146. <p>{% if product.wohnprojekt.schwerpunkt %}<strong>{% field_name product.wohnprojekt 'schwerpunkt' %}</strong>: {{ product.wohnprojekt.schwerpunkt }}{% endif %}</p>
  147. <br />
  148. <h5 class=" mediumkur">Kenndaten</h5>
  149. <br />
  150. <p>{{ product.wohnprojekt.get_altneu_display }}, {{ product.wohnprojekt.bauweise }}</p>
  151. <p><strong>Bautr&auml;ger</strong>: {{ product.wohnprojekt.bautraeger }}</p>
  152. <p>{% if product.wohnprojekt.wohnbaufoerderung %}<strong>{% field_name product.wohnprojekt 'wohnbaufoerderung' %}:</strong> {{ product.wohnprojekt.wohnbaufoerderung }}{% endif %}</p>
  153. <p>im Haus Wohnen ca {{ product.wohnprojekt.aerwachsene }} Erwachsene und {{ product.wohnprojekt.akinder }} Kinder.
  154. Anzahl an Mitglieder: {{ product.wohnprojekt.amitglieder }}
  155. </p>
  156. <p>{% if product.wohnprojekt.awohnungen %}<strong>{% field_name product.wohnprojekt 'awohnungen' %}:</strong> {{ product.wohnprojekt.awohnungen }} Wohnungen{% endif %}</p>
  157. <p>{% if product.wohnprojekt.gaestwohnungen %}<strong>{% field_name product.wohnprojekt 'gaestwohnungen' %}:</strong> {{ product.wohnprojekt.gaestwohnungen }}{% endif %}</p>
  158. <p>{% if product.wohnprojekt.wohnflaeche %}<strong>{% field_name product.wohnprojekt 'wohnflaeche' %}:</strong> {{ product.wohnprojekt.wohnflaeche }} m<sup>2</sup>{% endif %}</p>
  159. <p>{% if product.wohnprojekt.gewerbeflaechen %}<strong>{% field_name product.wohnprojekt 'gewerbeflaechen' %}:</strong> {{ product.wohnprojekt.gewerbeflaechen }} m<sup>2</sup>{% endif %}</p>
  160. <p>{% if product.wohnprojekt.gemeinschaftsflaeche %}<strong>{% field_name product.wohnprojekt 'gemeinschaftsflaeche' %}:</strong> {{ product.wohnprojekt.gemeinschaftsflaeche }} m<sup>2</sup>{% endif %}</p>
  161. <p>{% if product.wohnprojekt.sonstige_flaechen %}<strong>{% field_name product.wohnprojekt 'sonstige_flaechen' %}:</strong> {{ product.wohnprojekt.sonstige_flaechen }} m<sup>2</sup>{% endif %}</p>
  162. <p>{% if product.wohnprojekt.flaeche %}<strong>Fläche:</strong> {{ product.wohnprojekt.flaeche }} m<sup>2</sup>{% endif %}</p>
  163. <p>{% if product.wohnprojekt.kflaechen %}<strong>{% field_name product.wohnprojekt 'kflaechen' %}:</strong> {{ product.wohnprojekt.kflaechen }} m<sup>2</sup>{% endif %}</p>
  164. <p>Im Haus arbeiten ca {{ product.wohnprojekt.parbeiten }} Personen {% 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 }}{% endif %}</p>
  166. <p>{% if product.wohnprojekt.kraumangebot %}<strong>{% field_name product.wohnprojekt 'kraumangebot' %}:</strong> {{ product.wohnprojekt.kraumangebot }}{% endif %}</p>
  167. <br />
  168. <h5 class=" mediumkur">Kontakt</h5>
  169. <br />
  170. <p>{{ product.wohnprojekt.adresse }}, {{ product.wohnprojekt.get_ort_display }}</p>
  171. {% if product.wohnprojekt.email %}<p>{{ product.wohnprojekt.email | obfuscate_mailto:'<i class="fas fa-envelope"></i> Email' }}</p>{% endif %}
  172. {% if product.wohnprojekt.website %}<p><a href="{{ product.wohnprojekt.website }}" target="_blank" rel="noopener">Webseite</a></p>{% endif %}
  173. <br />
  174. <h5 class="mediumkur">Mediacredits</h5>
  175. <br />
  176. {% for media in product.media_set.all %}
  177. {% if media.copyright %}
  178. <p class="fieldname"> {{ media.copyright }}</p>
  179. {% endif %}
  180. {% endfor %}
  181. {% for media in product.video_set.all %}
  182. {% if media.copyright %}
  183. <p class="fieldname"> {{ media.copyright }}</p>
  184. {% endif %}
  185. {% endfor %}
  186. {% if product.media_set %}
  187. {% for media in product.media_set.all %}
  188. {% if forloop.counter > 5 %}
  189. <div style="flex: {% get_ratio media %}; margin:40px 60px 40px 0px;">
  190. <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;">
  191. </div>
  192. {% endif %}
  193. {% endfor %}
  194. {% endif %}
  195. <!-- <p>{% if product.wohnprojekt.altneu %}{% field_name product.wohnprojekt 'altneu' %}: {{ product.wohnprojekt.altneu }}{% endif %}</p> -->
  196. <!-- <p>{% if product.wohnprojekt.artmodell %}{% field_name product.wohnprojekt 'artmodell' %}: {{ product.wohnprojekt.artmodell }}{% endif %}</p> -->
  197. <!-- <p>{% if product.wohnprojekt.bautraeger %}{% field_name product.wohnprojekt 'bautraeger' %}: {{ product.wohnprojekt.bautraeger }}{% endif %}</p> -->
  198. <!-- <p>{% if product.wohnprojekt.aerwachsene %}{% field_name product.wohnprojekt 'aerwachsene' %}: {{ product.wohnprojekt.aerwachsene }}{% endif %}</p>
  199. <p>{% if product.wohnprojekt.akinder %}{% field_name product.wohnprojekt 'akinder' %}: {{ product.wohnprojekt.akinder }}{% endif %}</p>
  200. <p>{% if product.wohnprojekt.amitglieder %}Anzahl an Mitglieder: {{ product.wohnprojekt.amitglieder }}{% endif %}</p> -->
  201. <!-- <p>{% if product.wohnprojekt.awohnungen %}{% field_name product.wohnprojekt 'awohnungen' %}: {{ product.wohnprojekt.awohnungen }}{% endif %}</p> -->
  202. <!-- <p>{% if product.wohnprojekt.wohnflaeche %}{% field_name product.wohnprojekt 'wohnflaeche' %}: {{ product.wohnprojekt.wohnflaeche }}{% endif %}</p>
  203. <p>{% if product.wohnprojekt.gewerbeflaechen %}{% field_name product.wohnprojekt 'gewerbeflaechen' %}: {{ product.wohnprojekt.gewerbeflaechen }}{% endif %}</p>
  204. <p>{% if product.wohnprojekt.gemeinschaftsflaeche %}{% field_name product.wohnprojekt 'gemeinschaftsflaeche' %}: {{ product.wohnprojekt.gemeinschaftsflaeche }}{% endif %}</p>
  205. <p>{% if product.wohnprojekt.sonstige_flaechen %}{% field_name product.wohnprojekt 'sonstige_flaechen' %}: {{ product.wohnprojekt.sonstige_flaechen }}{% endif %}</p>
  206. <p>{% if product.wohnprojekt.flaeche %}Fläche: {{ product.wohnprojekt.flaeche }}{% endif %}</p> -->
  207. <!-- <p>{% if product.wohnprojekt.gemeinschaftr %}{% field_name product.wohnprojekt 'gemeinschaftr' %}: {{ product.wohnprojekt.gemeinschaftr }}{% endif %}</p> -->
  208. <!-- <p>{% if product.wohnprojekt.kgemeinschaftr %}{% field_name product.wohnprojekt 'kgemeinschaftr' %}: {{ product.wohnprojekt.kgemeinschaftr }}{% endif %}</p> -->
  209. <!-- <p>{% if product.wohnprojekt.sonderwohnformen %}{% field_name product.wohnprojekt 'sonderwohnformen' %}: {{ product.wohnprojekt.sonderwohnformen }}{% endif %}</p> -->
  210. <!-- <p>{% if product.wohnprojekt.parbeiten %}{% field_name product.wohnprojekt 'parbeiten' %}: {{ product.wohnprojekt.parbeiten }}{% endif %}</p> -->
  211. <!-- <p>{% if product.wohnprojekt.bauweise %}{% field_name product.wohnprojekt 'bauweise' %}: {{ product.wohnprojekt.bauweise }}{% endif %}</p> -->
  212. <!-- <p>{% if product.wohnprojekt.zielgruppen %}{% field_name product.wohnprojekt 'zielgruppen' %}: {{ product.wohnprojekt.zielgruppen }}{% endif %}</p> -->
  213. <!-- <p>{% if product.wohnprojekt.gprojekte %}{% field_name product.wohnprojekt 'gprojekte' %}: {{ product.wohnprojekt.gprojekte }}{% endif %}</p> -->
  214. <!-- <p>{% if product.wohnprojekt.oekologie %}{% field_name product.wohnprojekt 'oekologie' %}: {{ product.wohnprojekt.oekologie }}{% endif %}</p> -->
  215. <!-- <p>{% if product.wohnprojekt.freiraumangebote %}{% field_name product.wohnprojekt 'freiraumangebote' %}: {{ product.wohnprojekt.freiraumangebote }}{% endif %}</p> -->
  216. </div>
  217. </div>
  218. </div>
  219. <div class="container">
  220. <div class="row" style="margin-top: 10px">
  221. <div class="col-sm-6">
  222. </div>
  223. <div class="col-sm-4">
  224. {% for field, value in product.wohnprojekt %}
  225. {% if value and not field == "ID" %}
  226. <!-- <p class="fieldname"><strong class="mediumkur"> {{ field }} :</strong> {{ value }}</p> -->
  227. {% endif %}
  228. {% endfor %}
  229. </div>
  230. </div>
  231. </div>
  232. {% endblock %}