Browse Source

style changes

Juan Carlos 5 năm trước cách đây
mục cha
commit
fb3de43b2a

+ 13 - 9
marktplatz/forms.py

@@ -131,16 +131,17 @@ class ProductForm(forms.ModelForm, GeneralFields):
     product_layout = Layout(
         Fieldset(
             ('Über dein Projekt'),
-            'name','claim','beschreibung','learning','status',
+            'name','claim','beschreibung',
+            Div(
+                Div('frei',  css_class='col-sm-6 col-6 '),
+                Div('kfrei', css_class='col-sm-6 col-6 ' ),
+            css_class='form-row row mab-field-highlight'),
+            'learning','status',
            Div(
                Div('adresse',  css_class='col-sm-6 col-6'),
                Div('ort', css_class='col-sm-6 col-6'),
                css_class='form-row  row'),
-           Div(
-               Div('frei',  css_class='col-sm-6 col-6'),
-               Div('kfrei', css_class='col-sm-6 col-6'),
-               css_class='form-row  row'),
-           'mitmachen','rechtsform','orga',
+           'rechtsform','orga',
            Div(
                Div('website',  css_class='col-sm-6 col-6'),
                Div('email', css_class='col-sm-6 col-6'),
@@ -149,7 +150,7 @@ class ProductForm(forms.ModelForm, GeneralFields):
                Div('gruendungsjahr',  css_class='col-sm-6 col-6'),
                Div('betriebgenommen', css_class='col-sm-6 col-6'),
                css_class='form-row  row'),
-          'edit','public',
+          'edit','public', 'mitmachen',
         ),
     )
 
@@ -182,6 +183,7 @@ class WohnprojektForm(ProductForm):
 
     terms = forms.BooleanField(required=True,  label= ('Ich habe die Teilnahmebedingungen gelesen und akzeptiert.'))
 
+
     class Meta:
         model = Wohnprojekt
         fields = ProductForm.product_fields + (
@@ -205,6 +207,9 @@ class WohnprojektForm(ProductForm):
        self.fields['gprojekte'].help_text   = extend_help_text (self.fields['gprojekte'].help_text, Wohnprojekt.GPROJEKTE)
        #
        #
+       self.fields['frei'].label   = "Wohnung Frei"
+
+
 
        self.helper = FormHelper()
        self.helper.form_tag = False
@@ -237,8 +242,7 @@ class WohnprojektForm(ProductForm):
                 Div('kgemeinschaftr',  css_class='col-sm-6 col-6'),
                 Div('kraumangebot', css_class='col-sm-6 col-6'),
               css_class='form-row  row'),
-
-              'inseratstext',
+              Div('inseratstext', css_class = "mab-field-highlight"),
               'sonderwohnformen',
 
               Div(

+ 4 - 4
marktplatz/models.py

@@ -146,7 +146,7 @@ class Product(models.Model):
     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 )
-    betriebgenommen = IntegerField('in Betrieb genommen in Jahr', help_text="Wann wurde das Projekt in Betrieb genommen?", validators=[MinValueValidator(0), MaxValueValidator(9999)], null = True, blank=True )
+    betriebgenommen = IntegerField('in Betrieb genommen im Jahr', 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 )
     plz             = CharField   ( 'Adresse',   max_length = 256,  help_text="PLZ des Projektes", null = True, blank=True )
@@ -155,10 +155,10 @@ class Product(models.Model):
     website         = URLField    ( 'Website',   max_length = 2048, help_text="Website des Projektes", null = True, blank=True )
     email           = EmailField  ( 'Email',   max_length = 2048, help_text="Email des Projektes", null = True, blank=True )
     frei            = CharField   ( 'Platz frei', max_length = 4,    choices=FREI, default='NEIN', help_text="Gibt es freie Plätze?", null = True, blank=False )
-    kfrei           = CharField   ( 'Platz frei - Kommentar',   max_length = 2048,  help_text="Kommentar", null = True, blank=True )
+    kfrei           = CharField   ( 'Inseratstext - Platzfrei',   max_length = 2048,  help_text="Inseratstext - Platzfrei", null = True, blank=True )
     rechtsform      = CharField   ( 'Rechtsform', max_length = 32, help_text="Rechtsform des Projektes", null = True, blank=True )
     orga            = CharField   ( 'Organisationsform',  max_length = 256, help_text="Organisationsform des Projektes.", null = True, blank=True )
-    mitmachen       = BooleanField( 'Mitmachen möglich', default=False, help_text="Kann jemand mitmachen?", blank=False )
+    mitmachen       = BooleanField( 'Begleitet von RealityLab', default=False, help_text="Begleitet von RealityLab?", blank=False )
     terms           = BooleanField(help_text="", null=True)
     edit            = BooleanField( default=True, help_text="", blank=False )
     public          = BooleanField( default=False, help_text="", blank=False )
@@ -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    ( 'Angebot',   max_length = 1024,  help_text="Inseratstext", 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 )
     wohnbaufoerderung = CharField    ( 'Wohnbauförderung',    max_length = 1024,   choices=WOHNBAUFOERDERUNG, help_text="Wohnbauförderung", null = True, blank=True )

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

@@ -316,6 +316,15 @@ button{
 }
 
 
+.mab-field-highlight {
+
+  box-shadow: 0 4px 8px 0 rgba(70, 156, 168, 0.2), 0 6px 20px 0 rgba(70, 156, 168, 0.19);
+  margin-top: 30px;
+  margin-bottom: 30px;
+  padding: 20px 20px 10px 20px;
+border-radius: 25px;
+}
+
 /*******************************************************************************/
 /*******************************************************************************/
 /*******************************************************************************/

+ 20 - 3
marktplatz/templates/marktplatz/product_detail.html

@@ -50,10 +50,27 @@
 
 .product-text{
 
-	line-height: 1.0;
+	line-height: 1.2;
+	color: #000;
+}
+
+.product-text h1, h2, h3, h4, h5{
 
+	color: #469CA8;
 }
 
+.product-color{
+
+color: #469CA8;
+
+}
+
+
+.titlepro{
+
+	margin-top: 40px;
+	font-family: NeuzeitGro-Bla;
+}
 
 @media (min-width: 500px) {
 
@@ -70,13 +87,13 @@
 				<div class="col-sm-6">
 
 
-					<h1 class="titlepro" style="margin-top: 7px; font-family: NeuzeitGro-Bla; ">{{ product.name }}
+					<h1 class="titlepro" style="">{{ 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>
 					</h1>
 
 					<p class="lead kur"> {{ product.claim }}</p>
 
-					<div class="row">
+					<div class="row product-color">
 						<div class="col-sm-4">{% include "marktplatz/modal-share.html" %}</div>
 							<div class="col-sm-4"> {% include "marktplatz/modal-sa.html" %}</div>
 			        <div class="col-sm-4">{% if product.wohnprojekt.email  %} {{ product.wohnprojekt.email | obfuscate_mailto:'<i class="fas fa-envelope"></i> Email'  }}{% endif %}</div>

+ 6 - 5
marktplatz/templates/marktplatz/product_overview.html

@@ -140,7 +140,7 @@ $(document).ready(function(){
 
     padding: .15em .75em .15em 0.75em;
     border-style: solid;
-    border-width: 1px;
+    border-width: 0px;
     border-color: #469CA8;
     color: #469CA8;
     background-color: #FFFD;
@@ -157,12 +157,13 @@ $(document).ready(function(){
 
   }
 
+
   .mab-product-button-text {
     color: #EA4814;
     font-size: initial;
     font-weight: bold;
     text-align: center;
-    top: 20%;
+    top: 25%;
     /* left: 50%; */
     /* transform: translate(-50%, -50%); */
     position: inherit;
@@ -174,10 +175,10 @@ $(document).ready(function(){
     top: 16px;
     right: 16px;
     background-color: #EDBBA8;
-    border: 2px solid #EA4814;
+    border: 0px solid #EA4814;
     border-radius: 50%;
-    width: 5em;
-    height: 5em;
+    width: 5.2em;
+    height: 5.2em;
     text-align: center;
     transform: rotate(15deg);
   }

+ 18 - 3
project_base/templates/base_generic.html

@@ -37,6 +37,7 @@
           /* box-shadow: 0 8px 4px -6px gray; */
       }
 
+
       .cursor-pointer {
         cursor: pointer;
       }
@@ -111,7 +112,7 @@
 
         font-size: 1em;
         /* font-weight: bold; */
-        font-family: NeuzeitGro-Bla;
+        /* font-family: NeuzeitGro-Bla; */
         text-align: center;
         margin: 5px 10px 5px 10px;
 
@@ -130,6 +131,11 @@
 
       }
 
+      .mab-nav-fix{
+
+        padding-top: 8px;
+      }
+
       .mab-menu-elm:hover {
         color: #FFF;
 
@@ -191,17 +197,26 @@
 
     {% if user.is_authenticated %}
     <li class="nav-item">
+      <div class="mab-nav-fix">
         <a class=" nav-link active nav-right boldkur mab-menu-elm" style="" href="{% url 'mab_logout' %}">Ausloggen</a>
+
+      </div>
     </li>
     {% else %}
     <li class="nav-item">
-      <a class=" nav-link active nav-right boldkur mab-menu-elm" style="" href="{% url 'mab_login' %}">Einloggen</a>
+      <div class="mab-nav-fix">
+        <a class=" nav-link active nav-right boldkur mab-menu-elm " style="" href="{% url 'mab_login' %}">Einloggen</a>
+
+      </div>
     </li>
     {% endif %}
 
 
     <li class="nav-item">
-      <a class=" nav-link active nav-right boldkur mab-menu-elm" style="" href="{% url 'register-view' %}">Registrieren</a>
+      <div class="mab-nav-fix">
+        <a class=" nav-link active nav-right boldkur mab-menu-elm " style="" href="{% url 'register-view' %}">Registrieren</a>
+
+      </div>
     </li>
 
     <li class="nav-item mab-nav-item mab-menu-mega">