product_detail.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. {% extends "base_generic.html" %}
  2. {% load fullurl %}
  3. {% load tags %}
  4. {% load static %}
  5. {% block script %}
  6. <link href="{% static 'featherlight.min.css' %}" type="text/css" rel="stylesheet" />
  7. <script src="{% static 'featherlight.min.js' %}" type="text/javascript" charset="utf-8"></script>
  8. <link href="{% static 'featherlight.gallery.min.css' %}" type="text/css" rel="stylesheet" />
  9. <script src="{% static 'featherlight.gallery.min.js' %}" type="text/javascript" charset="utf-8"></script>
  10. <script>
  11. $(document).ready(function(){
  12. $('.gallery').featherlightGallery({
  13. previousIcon: '«',
  14. nextIcon: '»',
  15. galleryFadeIn: 250,
  16. openSpeed: 250,
  17. });
  18. });
  19. </script>
  20. {% endblock %}
  21. {% block content %}
  22. <style>
  23. .image-detail{
  24. margin:40px 60px 40px 0px;
  25. }
  26. @media (min-width: 500px) {
  27. }
  28. </style>
  29. <!-- <hr style="color: black; background-color: black; margin-top: 0px; width: 130%; display: flex; margin-left: -20px; margin-right:20px "> -->
  30. <div class="container " style="">
  31. <div class="row gemain-color">
  32. <div class="col-sm-6">
  33. <h2 class="titlepro" style="margin-top: 7px;color: font-weight: bold">{{ product.name }}
  34. <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>
  35. </h2>
  36. <p class="lead kur"> {{ product.claim }}</p>
  37. <div class="row">
  38. <div class="col-sm-4">{% include "marktplatz/modal-share.html" %}</div>
  39. <div class="col-sm-4"> {% include "marktplatz/modal-sa.html" %}</div>
  40. <div class="col-sm-4">{% if product.wohnprojekt.email %} <a href="mailto:{{ product.wohnprojekt.email }}" class="text-decoration-none" ><i class="fas fa-envelope"></i> {{ product.wohnprojekt.email }}</a> {% endif %} </div>
  41. </div>
  42. <div class="">
  43. &nbsp;
  44. </div>
  45. <div class="">
  46. &nbsp;
  47. </div>
  48. <div class="">
  49. &nbsp;
  50. </div>
  51. <div class="">
  52. &nbsp;
  53. </div>
  54. <div class="">
  55. {{ product.get_frei_display }}
  56. </div>
  57. <div class="">
  58. {{ product.mitmachen }}
  59. </div>
  60. <p>{% if product.wohnprojekt.inseratstext %}{% field_name product.wohnprojekt 'inseratstext' %}: {{ product.wohnprojekt.inseratstext }}{% endif %}</p>
  61. <div class="">
  62. &nbsp;
  63. </div>
  64. <p class=""> {{ product.beschreibung }}</p>
  65. <p class=""> {{ product.learning }}</p>
  66. <div class="">
  67. &nbsp;
  68. </div>
  69. <div class="">
  70. &nbsp;
  71. </div>
  72. {% for video in product.video_set.all %}
  73. <video autoplay style="width: 100%;height: auto;vertical-align: middle; padding-bottom: 10px" controls>
  74. <source src="{{video.image.url}}" type="video/mp4">
  75. </video>
  76. {% endfor %}
  77. {% if product.media_set %}
  78. {% for media in product.media_set.all %}
  79. {% if not forloop.first %}
  80. {% if forloop.counter < 6 %}
  81. <div class="image-detail" style="flex: {% get_ratio media %}; ">
  82. <img href="{{media.image_big.url}}" align="middle" src="{{media.image_norm.url }}" class="gallery img-fluid img-responsive" alt="" style="width: 100%;height: auto;vertical-align: middle;">
  83. </div>
  84. {% endif %}
  85. {% endif %}
  86. {% endfor %}
  87. {% endif %}
  88. </div>
  89. <!-- *************************************************************** -->
  90. <div class="col-sm-6">
  91. <div class="image-detail" style="">
  92. <img href="{{product.media_set.first.image_big.url}}" align="middle" src="{{product.media_set.first.image_norm.url }}" class="gallery img-fluid img-responsive" alt="" style="width: 100%;height: auto;vertical-align: middle;">
  93. </div>
  94. <br />
  95. <h5 class=" mediumkur">Steckbrief</h5>
  96. <br />
  97. <p>{{ product.wohnprojekt.kind_of_product }}, gegründet {{ product.wohnprojekt.gruendungsjahr }}, in Betrieb genommen: {{ product.wohnprojekt.betriebgenommen }}.</p>
  98. <p>Rechtsform: {{ product.wohnprojekt.rechtsform }}</p>
  99. <p>{{ product.wohnprojekt.artmodell }}</p>
  100. <p>{{ product.wohnprojekt.orga }}</p>
  101. <p>{% if product.wohnprojekt.eigentum %}{% field_name product.wohnprojekt 'eigentum' %}: {{ product.wohnprojekt.get_eigentum_display }}{% endif %}</p>
  102. <p>Gemeinschaftliche Projekte: {{ product.wohnprojekt.gprojekte }}</p>
  103. <p>Gemeinschaftsräume: {{ product.wohnprojekt.gemeinschaftr }}
  104. {% if product.wohnprojekt.kgemeinschaftr %} - {{ product.wohnprojekt.kgemeinschaftr }}{% endif %}
  105. </p>
  106. <p>{% if product.wohnprojekt.sonderwohnformen %}{% field_name product.wohnprojekt 'sonderwohnformen' %}: {{ product.wohnprojekt.sonderwohnformen }}{% endif %}</p>
  107. <p>Besondere Zielgruppen: {{ product.wohnprojekt.zielgruppen }}</p>
  108. <p>Freiraumangebote: {{ product.wohnprojekt.freiraumangebote }}</p>
  109. <p>{% if product.wohnprojekt.schwerpunkt %}{% field_name product.wohnprojekt 'schwerpunkt' %}: {{ product.wohnprojekt.schwerpunkt }}{% endif %}</p>
  110. <p>{{ product.wohnprojekt.oekologie }}</p>
  111. <br />
  112. <h5 class=" mediumkur">Kenndaten</h5>
  113. <br />
  114. <p>{{ product.wohnprojekt.get_altneu_display }}, {{ product.wohnprojekt.bauweise }}</p>
  115. <p>Bautr&auml;ger: {{ product.wohnprojekt.bautraeger }}</p>
  116. <p>{% if product.wohnprojekt.wohnbaufoerderung %}{% field_name product.wohnprojekt 'wohnbaufoerderung' %}: {{ product.wohnprojekt.wohnbaufoerderung }}{% endif %}</p>
  117. <p>im Haus Wohnen ca {{ product.wohnprojekt.aerwachsene }} Erwachsene und {{ product.wohnprojekt.akinder }} Kinder.
  118. Anzahl an Mitglieder: {{ product.wohnprojekt.amitglieder }}
  119. </p>
  120. <p>{% if product.wohnprojekt.awohnungen %}{% field_name product.wohnprojekt 'awohnungen' %}: {{ product.wohnprojekt.awohnungen }} Wohnungen{% endif %}</p>
  121. <p>{% if product.wohnprojekt.gaestwohnungen %}{% field_name product.wohnprojekt 'gaestwohnungen' %}: {{ product.wohnprojekt.gaestwohnungen }}{% endif %}</p>
  122. <p>{% if product.wohnprojekt.wohnflaeche %}{% field_name product.wohnprojekt 'wohnflaeche' %}: {{ product.wohnprojekt.wohnflaeche }}{% endif %}</p>
  123. <p>{% if product.wohnprojekt.gewerbeflaechen %}{% field_name product.wohnprojekt 'gewerbeflaechen' %}: {{ product.wohnprojekt.gewerbeflaechen }}{% endif %}</p>
  124. <p>{% if product.wohnprojekt.gemeinschaftsflaeche %}{% field_name product.wohnprojekt 'gemeinschaftsflaeche' %}: {{ product.wohnprojekt.gemeinschaftsflaeche }}{% endif %}</p>
  125. <p>{% if product.wohnprojekt.sonstige_flaechen %}{% field_name product.wohnprojekt 'sonstige_flaechen' %}: {{ product.wohnprojekt.sonstige_flaechen }}{% endif %}</p>
  126. <p>{% if product.wohnprojekt.flaeche %}Fläche: {{ product.wohnprojekt.flaeche }}{% endif %}</p>
  127. <p>{% if product.wohnprojekt.kflaechen %}{% field_name product.wohnprojekt 'kflaechen' %}: {{ product.wohnprojekt.kflaechen }}{% endif %}</p>
  128. <p>Im Haus arbeiten ca {{ product.wohnprojekt.parbeiten }} Personen {% if product.wohnprojekt.karbeiten %}{{ product.wohnprojekt.karbeiten }}{% endif %}</p>
  129. <p>{% if product.wohnprojekt.raumangebot %}{% field_name product.wohnprojekt 'raumangebot' %}: {{ product.wohnprojekt.raumangebot }}{% endif %}</p>
  130. <p>{% if product.wohnprojekt.kraumangebot %}{% field_name product.wohnprojekt 'kraumangebot' %}: {{ product.wohnprojekt.kraumangebot }}{% endif %}</p>
  131. <br />
  132. <h5 class=" mediumkur">Kontakt</h5>
  133. <br />
  134. <p>{{ product.wohnprojekt.adresse }}, {{ product.wohnprojekt.get_ort_display }}</p>
  135. {% if product.wohnprojekt.email %}<p><a href="mailto:{{ product.wohnprojekt.email }}"><i class="fas fa-envelope"></i> {{ product.wohnprojekt.email }}</a></p>{% endif %}
  136. <p><a href="{{ product.wohnprojekt.website }}">Webseite</a></p>
  137. <br />
  138. <h5 class="mediumkur">Mediacredits</h5>
  139. <br />
  140. {% for media in product.media_set.all %}
  141. {% if media.copyright %}
  142. <p class="fieldname"> {{ media.copyright }}</p>
  143. {% endif %}
  144. {% endfor %}
  145. {% for media in product.video_set.all %}
  146. {% if media.copyright %}
  147. <p class="fieldname"> {{ media.copyright }}</p>
  148. {% endif %}
  149. {% endfor %}
  150. {% if product.media_set %}
  151. {% for media in product.media_set.all %}
  152. {% if forloop.counter > 5 %}
  153. <div style="flex: {% get_ratio media %}; margin:40px 60px 40px 0px;">
  154. <img href="{{media.image_big.url}}" align="middle" src="{{media.image_norm.url }}" class="gallery img-fluid img-responsive" alt="" style="width: 100%;height: auto;vertical-align: middle;">
  155. </div>
  156. {% endif %}
  157. {% endfor %}
  158. {% endif %}
  159. <!-- <p>{% if product.wohnprojekt.altneu %}{% field_name product.wohnprojekt 'altneu' %}: {{ product.wohnprojekt.altneu }}{% endif %}</p> -->
  160. <!-- <p>{% if product.wohnprojekt.artmodell %}{% field_name product.wohnprojekt 'artmodell' %}: {{ product.wohnprojekt.artmodell }}{% endif %}</p> -->
  161. <!-- <p>{% if product.wohnprojekt.bautraeger %}{% field_name product.wohnprojekt 'bautraeger' %}: {{ product.wohnprojekt.bautraeger }}{% endif %}</p> -->
  162. <!-- <p>{% if product.wohnprojekt.aerwachsene %}{% field_name product.wohnprojekt 'aerwachsene' %}: {{ product.wohnprojekt.aerwachsene }}{% endif %}</p>
  163. <p>{% if product.wohnprojekt.akinder %}{% field_name product.wohnprojekt 'akinder' %}: {{ product.wohnprojekt.akinder }}{% endif %}</p>
  164. <p>{% if product.wohnprojekt.amitglieder %}Anzahl an Mitglieder: {{ product.wohnprojekt.amitglieder }}{% endif %}</p> -->
  165. <!-- <p>{% if product.wohnprojekt.awohnungen %}{% field_name product.wohnprojekt 'awohnungen' %}: {{ product.wohnprojekt.awohnungen }}{% endif %}</p> -->
  166. <!-- <p>{% if product.wohnprojekt.wohnflaeche %}{% field_name product.wohnprojekt 'wohnflaeche' %}: {{ product.wohnprojekt.wohnflaeche }}{% endif %}</p>
  167. <p>{% if product.wohnprojekt.gewerbeflaechen %}{% field_name product.wohnprojekt 'gewerbeflaechen' %}: {{ product.wohnprojekt.gewerbeflaechen }}{% endif %}</p>
  168. <p>{% if product.wohnprojekt.gemeinschaftsflaeche %}{% field_name product.wohnprojekt 'gemeinschaftsflaeche' %}: {{ product.wohnprojekt.gemeinschaftsflaeche }}{% endif %}</p>
  169. <p>{% if product.wohnprojekt.sonstige_flaechen %}{% field_name product.wohnprojekt 'sonstige_flaechen' %}: {{ product.wohnprojekt.sonstige_flaechen }}{% endif %}</p>
  170. <p>{% if product.wohnprojekt.flaeche %}Fläche: {{ product.wohnprojekt.flaeche }}{% endif %}</p> -->
  171. <!-- <p>{% if product.wohnprojekt.gemeinschaftr %}{% field_name product.wohnprojekt 'gemeinschaftr' %}: {{ product.wohnprojekt.gemeinschaftr }}{% endif %}</p> -->
  172. <!-- <p>{% if product.wohnprojekt.kgemeinschaftr %}{% field_name product.wohnprojekt 'kgemeinschaftr' %}: {{ product.wohnprojekt.kgemeinschaftr }}{% endif %}</p> -->
  173. <!-- <p>{% if product.wohnprojekt.sonderwohnformen %}{% field_name product.wohnprojekt 'sonderwohnformen' %}: {{ product.wohnprojekt.sonderwohnformen }}{% endif %}</p> -->
  174. <!-- <p>{% if product.wohnprojekt.parbeiten %}{% field_name product.wohnprojekt 'parbeiten' %}: {{ product.wohnprojekt.parbeiten }}{% endif %}</p> -->
  175. <!-- <p>{% if product.wohnprojekt.bauweise %}{% field_name product.wohnprojekt 'bauweise' %}: {{ product.wohnprojekt.bauweise }}{% endif %}</p> -->
  176. <!-- <p>{% if product.wohnprojekt.zielgruppen %}{% field_name product.wohnprojekt 'zielgruppen' %}: {{ product.wohnprojekt.zielgruppen }}{% endif %}</p> -->
  177. <!-- <p>{% if product.wohnprojekt.gprojekte %}{% field_name product.wohnprojekt 'gprojekte' %}: {{ product.wohnprojekt.gprojekte }}{% endif %}</p> -->
  178. <!-- <p>{% if product.wohnprojekt.oekologie %}{% field_name product.wohnprojekt 'oekologie' %}: {{ product.wohnprojekt.oekologie }}{% endif %}</p> -->
  179. <!-- <p>{% if product.wohnprojekt.freiraumangebote %}{% field_name product.wohnprojekt 'freiraumangebote' %}: {{ product.wohnprojekt.freiraumangebote }}{% endif %}</p> -->
  180. </div>
  181. </div>
  182. </div>
  183. <div clas="container">
  184. <div class="row" style="margin-top: 10px">
  185. <div class="col-sm-6">
  186. </div>
  187. <div class="col-sm-4">
  188. {% for field, value in product.wohnprojekt %}
  189. {% if value and not field == "ID" %}
  190. <!-- <p class="fieldname"><strong class="mediumkur"> {{ field }} :</strong> {{ value }}</p> -->
  191. {% endif %}
  192. {% endfor %}
  193. </div>
  194. </div>
  195. </div>
  196. {% endblock %}