wohnprojekt_detail.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  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="">{{ object.name }}</h1>
  56. <p class="lead kur">{% if object.claim %}{{ object.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 object.email %} {{ object.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 object.frei == 'JAJA' %}
  77. Wohnung frei.
  78. {% if object.kfrei %}
  79. {{ object.kfrei }}
  80. {% if object.email %}<p>{{ object.email | obfuscate_mailto:'<i class="fas fa-envelope"></i> Email' }}</p>{% endif %}
  81. {% endif %}
  82. {% endif %}
  83. {% if object.frei == 'WART' %}
  84. Wir haben derzeit keine Wohnung frei, aber wir melden uns, wenn etwas frei wird. Aktiviere die Benachrichtigung!
  85. {% endif %}
  86. {% if object.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. {{ object.mitmachen }}
  93. </div> -->
  94. <p>{% if object.inseratstext %}<strong>{% field_name object.wohnprojekt 'inseratstext' %}</strong>:<br>{{ object.inseratstext }} {% if object.email %}<p>{{ object.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 object.beschreibung %}<strong>{% field_name object.wohnprojekt 'beschreibung' %}</strong>:<br>{{ object.beschreibung | safe | linebreaks }}{% endif %}</p>
  99. <p class="">{% if object.learning %}<strong>{% field_name object.wohnprojekt 'learning' %}</strong>:<br>{{ object.learning | safe | linebreaks }}{% endif %}</p>
  100. <div class="">
  101. &nbsp;
  102. </div>
  103. <div class="">
  104. &nbsp;
  105. </div>
  106. {% for video in object.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 object.media_set %}
  112. {% for media in object.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="{{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;">
  127. </div>
  128. <br />
  129. <h5 class=" mediumkur">Kontakt</h5>
  130. <br />
  131. <p>{{ object.adresse }}{% if object.adresse_zusatz %}, {{ object.adresse_zusatz }}{% endif %}{% if object.plz %}, {{ object.plz }}{% endif %}{% if object.ort %}, {{ object.get_ort_display }}{% endif %}</p>
  132. <div class="row">
  133. <div class="col-sm-4">
  134. {% if object.email %}<p>{{ object.email | obfuscate_mailto:'<i class="fas fa-envelope"></i> Email' }}</p>{% endif %}
  135. </div>
  136. <div class="col-sm-8">
  137. {% if object.email %}<p><a href="mailto:{{ object.email | obfuscate }}" >{{ object.email | obfuscate }}</a></p>{% endif %}
  138. </div>
  139. </div>
  140. <div class="row">
  141. <div class="col-sm-4">
  142. {% if object.website %}<p><a href="{{ object.website }}" target="_blank" rel="noopener">Webseite</a></p>{% endif %}
  143. </div>
  144. <div class="col-sm-8">
  145. {% if object.website %}<p><a href="{{ object.website }}" target="_blank" rel="noopener">{{ object.website }}</a></p>{% endif %}
  146. </div>
  147. </div>
  148. <br />
  149. <h5 class=" mediumkur">Steckbrief</h5>
  150. <br />
  151. <p>{{ object.kind_of_product }}, gegründet {{ object.gruendungsjahr }}{% if object.betriebgenommen %}, in Betrieb genommen: {{ object.betriebgenommen }}{% endif %}.</p>
  152. <p><strong>Rechtsform</strong>: {{ object.rechtsform }}</p>
  153. <!-- XXX --> <p>{{ object.artmodell }}</p>
  154. <p>{% if object.orga %}<strong>{% field_name object.wohnprojekt 'orga' %}</strong>: {{ object.orga }}{% endif %}</p>
  155. <!-- XXX --> <p>{% if object.eigentum %}<strong>{% field_name object.wohnprojekt 'eigentum' %}</strong>: {{ object.get_eigentum_display }}{% endif %}</p>
  156. <!-- XXX --> <p>{% if object.gprojekte %}<strong>Gemeinschaftliche Projekte</strong>: {{ object.gprojekte }}{% endif %}</p>
  157. <p>{% if object.zielgruppen %}<strong>Besondere Zielgruppen</strong>: {{ object.zielgruppen }}{% endif %}</p>
  158. <p>{% if object.freiraumangebote %}<strong>Freiraumangebote</strong>: {{ object.freiraumangebote }}{% endif %}</p>
  159. <p>{% if object.oekologie %}<strong>{% field_name object.wohnprojekt 'oekologie' %}</strong>: {{ object.oekologie }}{% endif %}</p>
  160. <p>{% if object.schwerpunkt %}<strong>{% field_name object.wohnprojekt 'schwerpunkt' %}</strong>: {{ object.schwerpunkt }}{% endif %}</p>
  161. <br />
  162. <h5 class=" mediumkur">Kenndaten</h5>
  163. <br />
  164. <p>{{ object.get_altneu_display }}, {{ object.bauweise }}</p>
  165. <p><strong>Bautr&auml;ger</strong>: {{ object.bautraeger }}</p>
  166. <p>{% if object.architektur %}<strong>{% field_name object.wohnprojekt 'architektur' %}:</strong> {{ object.architektur }}{% endif %}</p>
  167. <p>{% if object.wohnbaufoerderung %}<strong>{% field_name object.wohnprojekt 'wohnbaufoerderung' %}:</strong> {{ object.wohnbaufoerderung }}{% endif %}</p>
  168. <p>im Haus Wohnen ca {{ object.aerwachsene }} Erwachsene und {{ object.akinder }} Kinder.
  169. Anzahl der Mitglieder: {{ object.amitglieder }}
  170. </p>
  171. <p>{% if object.awohnungen %}<strong>{% field_name object.wohnprojekt 'awohnungen' %}:</strong> {{ object.awohnungen }} Wohnungen{% endif %}</p>
  172. <p>{% if object.gaestwohnungen %}<strong>{% field_name object.wohnprojekt 'gaestwohnungen' %}:</strong> {{ object.gaestwohnungen }}{% endif %}</p>
  173. <p>{% if object.wohnflaeche %}<strong>{% field_name object.wohnprojekt 'wohnflaeche' %}:</strong> {{ object.wohnflaeche }} m<sup>2</sup>{% endif %}</p>
  174. <p>{% if object.sonderwohnformen %}<strong>{% field_name object.wohnprojekt 'sonderwohnformen' %}</strong>: {{ object.sonderwohnformen }}{% endif %}</p>
  175. <p>{% if object.gewerbeflaechen %}<strong>{% field_name object.wohnprojekt 'gewerbeflaechen' %}:</strong> {{ object.gewerbeflaechen }} m<sup>2</sup>{% endif %}</p>
  176. <p>{% if object.gewerbe %}<strong>{% field_name object.wohnprojekt 'gewerbe' %}:</strong> {{ object.gewerbe }}{% endif %}</p>
  177. <p>{% if object.gemeinschaftsflaeche %}<strong>{% field_name object.wohnprojekt 'gemeinschaftsflaeche' %}:</strong> {{ object.gemeinschaftsflaeche }} m<sup>2</sup>{% endif %}</p>
  178. <p><strong>Gemeinschaftsräume</strong>:
  179. {{ object.gemeinschaftr }}{% if object.kgemeinschaftr %}, {{ object.kgemeinschaftr }}{% endif %}
  180. </p>
  181. <p>{% if object.sonstige_flaechen %}<strong>{% field_name object.wohnprojekt 'sonstige_flaechen' %}:</strong> {{ object.sonstige_flaechen }} m<sup>2</sup>{% endif %}</p>
  182. <p>{% if object.flaeche %}<strong>{% field_name object.wohnprojekt 'flaeche' %}:</strong> {{ object.flaeche }} m<sup>2</sup>{% endif %}</p>
  183. <p>{% if object.kflaechen %}<strong>{% field_name object.wohnprojekt 'kflaechen' %}:</strong> {{ object.kflaechen }} m<sup>2</sup>{% endif %}</p>
  184. <p>{% if object.parbeiten %}Im Haus arbeiten ca {{ object.parbeiten }} Personen.{% endif %}
  185. {% if object.karbeiten %}{{ object.karbeiten }}{% endif %}</p>
  186. <p>{% if object.raumangebot %}<strong>{% field_name object.wohnprojekt 'raumangebot' %}:</strong> {{ object.raumangebot }}{% if object.kraumangebot %},
  187. {{ object.kraumangebot }}
  188. {% endif %}
  189. {% endif %}</p>
  190. <!-- <p>{% if object.kraumangebot %}<strong>{% field_name object.wohnprojekt 'kraumangebot' %}:</strong> {{ object.kraumangebot }}{% endif %}</p> -->
  191. <br />
  192. <h5 class="mediumkur">Mediacredits</h5>
  193. <br />
  194. {% for media in object.media_set.all %}
  195. {% if media.copyright %}
  196. <p class="fieldname"> {{ media.copyright }}</p>
  197. {% endif %}
  198. {% endfor %}
  199. {% for media in object.video_set.all %}
  200. {% if media.copyright %}
  201. <p class="fieldname"> {{ media.copyright }}</p>
  202. {% endif %}
  203. {% endfor %}
  204. {% if object.media_set %}
  205. {% for media in object.media_set.all %}
  206. {% if forloop.counter > 5 %}
  207. <div style="flex: {% get_ratio media %}; margin:40px 60px 40px 0px;">
  208. <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;">
  209. </div>
  210. {% endif %}
  211. {% endfor %}
  212. {% endif %}
  213. </div>
  214. </div>
  215. </div>
  216. <div class="container">
  217. <div class="row" style="margin-top: 10px">
  218. <div class="col-sm-6">
  219. </div>
  220. <div class="col-sm-4">
  221. {% for field, value in object.wohnprojekt %}
  222. {% if value and not field == "ID" %}
  223. <!-- <p class="fieldname"><strong class="mediumkur"> {{ field }} :</strong> {{ value }}</p> -->
  224. {% endif %}
  225. {% endfor %}
  226. </div>
  227. </div>
  228. </div>
  229. {% endblock %}