Juan Carlos 5 éve
szülő
commit
4e653898ff

+ 1 - 1
marktplatz/models.py

@@ -323,7 +323,7 @@ class Wohnprojekt(Product):
             return "Wohnprojekt"
 
     eigentum          = CharField    ( 'Rechtliche Konstruktion', max_length = 6,    choices=EIGENTUM, default='GEMIET', help_text="Rechtliche Konstruktion", null = True, blank=True )
-    inseratstext      = TextField    ( 'Inseratstext',   max_length = 1024,  help_text="Inseratstext", null = True, blank=True )
+    inseratstext      = TextField    ( 'Angebot',   max_length = 1024,  help_text="Inseratstext", null = True, blank=True )
     altneu            = CharField    ( 'Altbau/Neubau',  max_length = 4, choices=ALTNEU, help_text="Altbau/Neubau", null = True, blank=False )
     schwerpunkt       = CharField    ( 'Inhaltlicher Schwerpunkt',   max_length = 1024,  help_text="Inhaltlicher Schwerpunkt", null = True, blank=True )
     wohnbaufoerderung = CharField    ( 'Wohnbauförderung',    max_length = 1024,   choices=WOHNBAUFOERDERUNG, help_text="Wohnbauförderung", null = True, blank=True )

+ 59 - 29
marktplatz/templates/marktplatz/product_detail.html

@@ -41,6 +41,18 @@
 
 }
 
+.product-text strong{
+
+	font-weight: bolder;
+	font: NeuzeitGro-Bla
+
+}
+
+.product-text{
+
+	line-height: 1.0;
+
+}
 
 
 @media (min-width: 500px) {
@@ -54,13 +66,13 @@
 <!-- <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="row gemain-color product-text">
 				<div class="col-sm-6">
 
 
-					<h2 class="titlepro" style="margin-top: 7px;color: font-weight: bold">{{ product.name }}
+					<h1 class="titlepro" style="margin-top: 7px; font-family: NeuzeitGro-Bla; ">{{ product.name }}
 					      <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>
-					</h2>
+					</h1>
 
 					<p class="lead kur"> {{ product.claim }}</p>
 
@@ -84,24 +96,41 @@
 					</div>
 
 					<div class="">
-						{{  product.get_frei_display  }}
+						<p><strong>Wohnungsangebot</strong>:<br>
+
+							{% if product.frei == 'JAJA' %}
+								Wohnung frei.
+								{% if product.kfrei %}
+									{{ product.kfrei }}
+								{% endif %}
+							{% endif %}
+
+							{% if product.frei == 'WART' %}
+								Wir haben derzeit keine Wohnung frei, aber wir melden uns, wenn etwas frei wird. Aktiviere die Benachrichtigung!
+							{% endif %}
+
+							{% if product.frei == 'NEIN' %}
+								Wir haben derzeit keine Wohnung  und führen auch keine Warteliste, auf die dich setzen lassen kannst.
+							{% endif %}
+
+
+						</p>
 					</div>
 
 
-					<div class="">
+					<!-- <div class="">
 						{{  product.mitmachen  }}
-					</div>
+					</div> -->
 
-					<p>{% if product.wohnprojekt.inseratstext  %}{% field_name product.wohnprojekt 'inseratstext' %}: {{ product.wohnprojekt.inseratstext }}{% endif %}</p>
+					<p>{% if product.wohnprojekt.inseratstext  %}<strong>{% field_name product.wohnprojekt 'inseratstext' %}</strong>:<br>{{ product.wohnprojekt.inseratstext }}{% endif %}</p>
 
 					<div class="">
 						&nbsp;
 					</div>
 
-					<p class=""> {{ product.beschreibung }}</p>
-
-					<p class=""> {{ product.learning }}</p>
 
+					<p class="">{% if product.beschreibung %}<strong>{% field_name product.wohnprojekt 'beschreibung' %}</strong>:<br>{{ product.beschreibung }}{% endif %}</p>
+					<p class="">{% if product.learning %}<strong>{% field_name product.wohnprojekt 'learning' %}</strong>:<br>{{ product.learning }}{% endif %}</p>
 
 
 					<div class="">
@@ -156,19 +185,19 @@
 					<br />
 
 					<p>{{ product.wohnprojekt.kind_of_product }}, gegründet {{ product.wohnprojekt.gruendungsjahr }}, in Betrieb genommen: {{ product.wohnprojekt.betriebgenommen }}.</p>
-					<p>Rechtsform: {{ product.wohnprojekt.rechtsform }}</p>
+					<p><strong>Rechtsform</strong>: {{ product.wohnprojekt.rechtsform }}</p>
 					<p>{{ product.wohnprojekt.artmodell }}</p>
 					<p>{{ product.wohnprojekt.orga }}</p>
-					<p>{% if product.wohnprojekt.eigentum  %}{% field_name product.wohnprojekt 'eigentum' %}: {{ product.wohnprojekt.get_eigentum_display }}{% endif %}</p>
-					<p>Gemeinschaftliche Projekte: {{ product.wohnprojekt.gprojekte }}</p>
-					<p>Gemeinschaftsräume: {{ product.wohnprojekt.gemeinschaftr }}
+					<p><strong>{% if product.wohnprojekt.eigentum  %}{% field_name product.wohnprojekt 'eigentum' %}</strong>: {{ product.wohnprojekt.get_eigentum_display }}{% endif %}</p>
+					<p><strong>Gemeinschaftliche Projekte</strong>: {{ product.wohnprojekt.gprojekte }}</p>
+					<p><strong>Gemeinschaftsräume</strong>: {{ product.wohnprojekt.gemeinschaftr }}
 						{% if product.wohnprojekt.kgemeinschaftr  %} - {{ product.wohnprojekt.kgemeinschaftr }}{% endif %}
 					</p>
 
-					<p>{% if product.wohnprojekt.sonderwohnformen  %}{% field_name product.wohnprojekt 'sonderwohnformen' %}: {{ product.wohnprojekt.sonderwohnformen }}{% endif %}</p>
-					<p>Besondere Zielgruppen: {{ product.wohnprojekt.zielgruppen }}</p>
-					<p>Freiraumangebote: {{ product.wohnprojekt.freiraumangebote }}</p>
-					<p>{% if product.wohnprojekt.schwerpunkt  %}{% field_name product.wohnprojekt 'schwerpunkt' %}: {{ product.wohnprojekt.schwerpunkt }}{% endif %}</p>
+					<p><strong>{% if product.wohnprojekt.sonderwohnformen  %}{% field_name product.wohnprojekt 'sonderwohnformen' %}</strong>: {{ product.wohnprojekt.sonderwohnformen }}{% endif %}</p>
+					<p><strong>Besondere Zielgruppen</strong>: {{ product.wohnprojekt.zielgruppen }}</p>
+					<p><strong>Freiraumangebote</strong>: {{ product.wohnprojekt.freiraumangebote }}</p>
+					<p><strong>{% if product.wohnprojekt.schwerpunkt  %}{% field_name product.wohnprojekt 'schwerpunkt' %}</strong>: {{ product.wohnprojekt.schwerpunkt }}{% endif %}</p>
 					<p>{{ product.wohnprojekt.oekologie }}</p>
 
 
@@ -178,21 +207,22 @@
 
 					<p>{{ product.wohnprojekt.get_altneu_display }}, {{ product.wohnprojekt.bauweise }}</p>
 					<p>Bautr&auml;ger: {{ product.wohnprojekt.bautraeger }}</p>
-					<p>{% if product.wohnprojekt.wohnbaufoerderung  %}{% field_name product.wohnprojekt 'wohnbaufoerderung' %}: {{ product.wohnprojekt.wohnbaufoerderung }}{% endif %}</p>
+					<p>{% if product.wohnprojekt.wohnbaufoerderung  %}<strong>{% field_name product.wohnprojekt 'wohnbaufoerderung' %}:</strong>  {{ product.wohnprojekt.wohnbaufoerderung }}{% endif %}</p>
 					<p>im Haus Wohnen ca {{ product.wohnprojekt.aerwachsene }} Erwachsene und {{  product.wohnprojekt.akinder }} Kinder.
 						Anzahl an Mitglieder: {{ product.wohnprojekt.amitglieder }}
 					</p>
-					<p>{% if product.wohnprojekt.awohnungen  %}{% field_name product.wohnprojekt 'awohnungen' %}: {{  product.wohnprojekt.awohnungen  }} Wohnungen{% endif %}</p>
-					<p>{% if product.wohnprojekt.gaestwohnungen  %}{% field_name product.wohnprojekt 'gaestwohnungen' %}: {{ product.wohnprojekt.gaestwohnungen }}{% endif %}</p>
-					<p>{% if product.wohnprojekt.wohnflaeche  %}{% field_name product.wohnprojekt 'wohnflaeche' %}: {{ product.wohnprojekt.wohnflaeche }}{% endif %}</p>
-			    <p>{% if product.wohnprojekt.gewerbeflaechen  %}{% field_name product.wohnprojekt 'gewerbeflaechen' %}: {{ product.wohnprojekt.gewerbeflaechen }}{% endif %}</p>
-			    <p>{% if product.wohnprojekt.gemeinschaftsflaeche  %}{% field_name product.wohnprojekt 'gemeinschaftsflaeche' %}: {{ product.wohnprojekt.gemeinschaftsflaeche }}{% endif %}</p>
-			    <p>{% if product.wohnprojekt.sonstige_flaechen  %}{% field_name product.wohnprojekt 'sonstige_flaechen' %}: {{ product.wohnprojekt.sonstige_flaechen }}{% endif %}</p>
-			    <p>{% if product.wohnprojekt.flaeche  %}Fläche: {{ product.wohnprojekt.flaeche }}{% endif %}</p>
-					<p>{% if product.wohnprojekt.kflaechen  %}{% field_name product.wohnprojekt 'kflaechen' %}: {{ product.wohnprojekt.kflaechen }}{% endif %}</p>
+					<p>{% if product.wohnprojekt.awohnungen  %}<strong>{% field_name product.wohnprojekt 'awohnungen' %}:</strong>  {{  product.wohnprojekt.awohnungen  }} Wohnungen{% endif %}</p>
+					<p>{% if product.wohnprojekt.gaestwohnungen  %}<strong>{% field_name product.wohnprojekt 'gaestwohnungen' %}:</strong>  {{ product.wohnprojekt.gaestwohnungen }}{% endif %}</p>
+					<p>{% if product.wohnprojekt.wohnflaeche  %}<strong>{% field_name product.wohnprojekt 'wohnflaeche' %}:</strong>  {{ product.wohnprojekt.wohnflaeche }}{% endif %}</p>
+			    <p>{% if product.wohnprojekt.gewerbeflaechen  %}<strong>{% field_name product.wohnprojekt 'gewerbeflaechen' %}:</strong>  {{ product.wohnprojekt.gewerbeflaechen }}{% endif %}</p>
+			    <p>{% if product.wohnprojekt.gemeinschaftsflaeche  %}<strong>{% field_name product.wohnprojekt 'gemeinschaftsflaeche' %}:</strong>  {{ product.wohnprojekt.gemeinschaftsflaeche }}{% endif %}</p>
+			    <p>{% if product.wohnprojekt.sonstige_flaechen  %}<strong>{% field_name product.wohnprojekt 'sonstige_flaechen' %}:</strong>  {{ product.wohnprojekt.sonstige_flaechen }}{% endif %}</p>
+			    <p>{% if product.wohnprojekt.flaeche  %}<strong>Fläche:</strong>  {{ product.wohnprojekt.flaeche }}{% endif %}</p>
+					<p>{% if product.wohnprojekt.kflaechen  %}<strong>{% field_name product.wohnprojekt 'kflaechen' %}:</strong>  {{ product.wohnprojekt.kflaechen }}{% endif %}</p>
 					<p>Im Haus arbeiten ca {{ product.wohnprojekt.parbeiten }} Personen {% if product.wohnprojekt.karbeiten  %}{{ product.wohnprojekt.karbeiten }}{% endif %}</p>
-					<p>{% if product.wohnprojekt.raumangebot  %}{% field_name product.wohnprojekt 'raumangebot' %}: {{ product.wohnprojekt.raumangebot }}{% endif %}</p>
-			    <p>{% if product.wohnprojekt.kraumangebot  %}{% field_name product.wohnprojekt 'kraumangebot' %}: {{ product.wohnprojekt.kraumangebot }}{% endif %}</p>
+					<p>{% if product.wohnprojekt.raumangebot  %}<strong>{% field_name product.wohnprojekt 'raumangebot' %}:</strong>  {{ product.wohnprojekt.raumangebot }}{% endif %}</p>
+			    <p>{% if product.wohnprojekt.kraumangebot  %}<strong>{% field_name product.wohnprojekt 'kraumangebot' %}:</strong>  {{ product.wohnprojekt.kraumangebot }}{% endif %}</p>
+
 
 					<br />
 					<h5 class=" mediumkur">Kontakt</h5>

+ 9 - 12
marktplatz/templates/marktplatz/product_overview.html

@@ -160,19 +160,16 @@ $(document).ready(function(){
 
   .mab-product-button-text {
     color: #EA4814;
-    font-size: large;
-    font-weight: bold;
-    text-align: left;
-    /* background-color: rgba(0, 0, 0, 0); */
-    /* text-shadow: 0 0 6px #444, 0 0 20px #888; */
-    vertical-align: bottom;
-    top: 50%;
-    left: 50%;
-    transform: translate(-50%, -50%);
-
-    position: inherit;
+  	font-size: initial;
+  	font-weight: bold;
+  	text-align: center;
+  	top: 20%;
+  	/* left: 50%; */
+  	/* transform: translate(-50%, -50%); */
+  	position: inherit;
   }
 
+
   .mab-product-button {
     position: absolute;
     top: 16px;
@@ -413,7 +410,7 @@ $(document).ready(function(){
 
             {% if product.frei == 'JAJA' %} <div class="mab-product-button" style="">
               <div class="mab-product-button-text">
-                Platz Frei!
+                Wohnung Frei!
               </div>
             </div>
             {% endif %}

+ 7 - 3
project_base/templates/base_generic.html

@@ -188,14 +188,18 @@
 
     </ul>
     <ul class="navbar-nav ml-auto">
-    <li class="nav-item">
-        <a class=" nav-link active nav-right boldkur mab-menu-elm" style="" href="{% url 'mab_login' %}">Einloggen</a>
-    </li>
+
     {% if user.is_authenticated %}
     <li class="nav-item">
         <a class=" nav-link active nav-right boldkur mab-menu-elm" style="" href="{% url 'mab_logout' %}">Ausloggen</a>
     </li>
+    {% else %}
+    <li class="nav-item">
+      <a class=" nav-link active nav-right boldkur mab-menu-elm" style="" href="{% url 'mab_login' %}">Einloggen</a>
+    </li>
     {% endif %}
+
+
     <li class="nav-item">
       <a class=" nav-link active nav-right boldkur mab-menu-elm" style="" href="{% url 'register-view' %}">Registrieren</a>
     </li>