Ver código fonte

cosmetic changes, platz > wohnung frei

Juan Carlos 5 anos atrás
pai
commit
1953cc919b

+ 3 - 3
marktplatz/models.py

@@ -43,7 +43,7 @@ class Contact(models.Model):
     email = EmailField(verbose_name="E-Mail-Addresse", unique=True)
     phonenumber = CharField(verbose_name="1. Telefonnummer", blank=True,max_length = 100)
     alternate_phonenumber = CharField(verbose_name="2. Telefonnummer", blank = True,max_length = 100)
-    skype_name = CharField(verbose_name="Skype", blank=True,max_length = 300)
+    skype_name = CharField(verbose_name="Video-Konferenzen (Zoom, teams, google)", blank=True,max_length = 300)
     website = URLField(verbose_name="Website", blank=True)
 
     def __str__(self):
@@ -145,7 +145,7 @@ class Product(models.Model):
     claim           = CharField   ( 'Claim / Untertitel', max_length = 256, help_text="Claim / Untertitel", null = True, blank=True )
     beschreibung    = TextField   ( 'Projektbeschreibung', max_length = 2048, help_text="Beschreibung des Projektes", null = True, blank=True )
     learning        = CharField   ( 'Learning', max_length = 256, help_text="Learning", null = True, blank=True )
-    gruendungsjahr  = IntegerField( 'Gründungsjahr', help_text="Gründungsjahr des Projekts", validators=[MinValueValidator(0), MaxValueValidator(9999)], null = True, blank=True )
+    gruendungsjahr  = IntegerField( 'Gründungsjahr', help_text="Gründungsjahr des Projekts", default='2020', validators=[MinValueValidator(0), MaxValueValidator(9999)], null = True, blank=True )
     betriebgenommen = IntegerField( 'in Betrieb genommen im Jahr', default='2020', help_text="Wann wurde das Projekt in Betrieb genommen?", validators=[MinValueValidator(0), MaxValueValidator(9999)], null = True, blank=True )
     status          = CharField   ( 'Status',    max_length = 3,    choices=STATUS, default='ENT', help_text="Was ist der Status des Projektes" , null = True, blank=True )
     adresse         = CharField   ( 'Adresse',   max_length = 256,  help_text="Adresse des Projektes", null = True, blank=True )
@@ -322,7 +322,7 @@ class Wohnprojekt(Product):
     def kind_of_product(self):
             return "Wohnprojekt"
 
-    eigentum          = CharField    ( 'Rechtliche Konstruktion', max_length = 6,    choices=EIGENTUM, default='GEMIET', help_text="Rechtliche Konstruktion", null = True, blank=True )
+    eigentum          = CharField    ( 'Rechtliche Konstruktion', max_length = 6,    choices=EIGENTUM, help_text="Rechtliche Konstruktion", null = True, blank=True )
     inseratstext      = TextField    ( 'Inseratstext für Raumangebote',   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 )

+ 8 - 0
marktplatz/static/css/styles.css

@@ -125,6 +125,14 @@ src: local('Bariol Bold Italic'), url('Bariol/bariol_bold_italic-webfont.woff')
 @media (max-width: 1199.98px) { ... } */
 
 
+@media (min-width: 992px) {
+
+  body {
+    margin: 0 4em;
+  }
+
+}
+
 
 body {
     font-family: 'NeuzeitGro-Reg', sans-serif;

+ 1 - 1
marktplatz/templates/marktplatz/product_detail.html

@@ -124,7 +124,7 @@
 							{% endif %}
 
 							{% if product.frei == 'NEIN' %}
-								Wir haben derzeit keine Wohnung  und führen auch keine Warteliste, auf die dich setzen lassen kannst.
+								Wir haben derzeit keine Wohnung  und führen auch keine Warteliste, auf die du dich setzen lassen kannst.
 							{% endif %}
 
 

+ 1 - 0
marktplatz/views.py

@@ -301,6 +301,7 @@ class ProductsView(generic.ListView):
             context['year_list'] = years
             context['count_list'] = used_countries
             context['frei_list'] = Product.FREI
+            context['frei_list'][0] =  ('JAJA', 'Wohnung frei')
             context['status_list'] = Product.STATUS
             context['ort_dict'] = orts
             context['raum_agebote_dict'] = raum_agebote

+ 2 - 2
project_base/templates/base_generic.html

@@ -218,7 +218,7 @@
 ********************************************************************************** -->
 
 
-<nav class="navbar navbar-fixed-top navbar-expand-lg navbar-light bg-light" style="padding-top:20px;">
+<nav class="navbar navbar-fixed-top navbar-expand-lg navbar-light" style="padding-top:20px;">
 
 
   <a class="navbar-brand navbar-right" href="{% url 'products' %}" style="width:50%" >
@@ -295,7 +295,7 @@
 
 
 
-<nav class="navbar navbar-fixed-top mab-navbar navbar-expand-lg navbar-light bg-light">
+<nav class="navbar navbar-fixed-top mab-navbar navbar-expand-lg navbar-light">
   <a class="navbar-brand navbar-right" href="{% url 'products' %}" style="width:45%" >
     <img src="{% static 'logo_gemeinschaffen.png' %}" alt="Markplatz" class="img-fluid mab-logo" style="">
   </a>