Added style field to contact
This commit is contained in:
parent
4efbdecdfc
commit
d1c2b145b9
|
@ -0,0 +1,18 @@
|
||||||
|
# Generated by Django 2.1.13 on 2019-10-21 18:09
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('home', '0027_auto_20191017_1715'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='contact',
|
||||||
|
name='style',
|
||||||
|
field=models.TextField(blank=True, default=''),
|
||||||
|
),
|
||||||
|
]
|
|
@ -70,6 +70,7 @@ class Contact(models.Model):
|
||||||
email = models.EmailField(max_length=100, blank=True, default="")
|
email = models.EmailField(max_length=100, blank=True, default="")
|
||||||
www = models.URLField(null=True, blank=True)
|
www = models.URLField(null=True, blank=True)
|
||||||
|
|
||||||
|
style = models.TextField(default="", blank=True)
|
||||||
color = models.CharField(max_length=40, blank=True, default="")
|
color = models.CharField(max_length=40, blank=True, default="")
|
||||||
logo = models.ForeignKey(
|
logo = models.ForeignKey(
|
||||||
'wagtailimages.Image',
|
'wagtailimages.Image',
|
||||||
|
@ -107,6 +108,7 @@ class Contact(models.Model):
|
||||||
FieldPanel('www'),
|
FieldPanel('www'),
|
||||||
ImageChooserPanel('logo'),
|
ImageChooserPanel('logo'),
|
||||||
FieldPanel('color'),
|
FieldPanel('color'),
|
||||||
|
FieldPanel('style'),
|
||||||
FieldPanel('map_url'),
|
FieldPanel('map_url'),
|
||||||
FieldPanel('analytics'),
|
FieldPanel('analytics'),
|
||||||
PageChooserPanel('contact_form', 'home.ContactForm'),
|
PageChooserPanel('contact_form', 'home.ContactForm'),
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
|
{{ contact.style }}
|
||||||
{% if contact.color %}
|
{% if contact.color %}
|
||||||
footer#footer, .navbar-pre {
|
footer#footer, .navbar-pre {
|
||||||
background-color: {{ contact.color }};
|
background-color: {{ contact.color }};
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// TODO: delete this file and references to it once styles are migrated.
|
||||||
|
|
||||||
// Only show news on the main home page
|
// Only show news on the main home page
|
||||||
#news { display: none; }
|
#news { display: none; }
|
||||||
.site-home #news { display: block; }
|
.site-home #news { display: block; }
|
||||||
|
@ -20,25 +22,6 @@
|
||||||
|
|
||||||
#carousel-banner .carousel-caption > * { display: none; }
|
#carousel-banner .carousel-caption > * { display: none; }
|
||||||
#carousel-banner .carousel-caption { display: none; }
|
#carousel-banner .carousel-caption { display: none; }
|
||||||
|
|
||||||
/*
|
|
||||||
#carousel-banner .carousel-caption {
|
|
||||||
width: 13em;
|
|
||||||
background: rgba(0,0,50,0.4);
|
|
||||||
border: 6px solid white;
|
|
||||||
font-size: 155%;
|
|
||||||
padding: 1em 1em;
|
|
||||||
left: 50%;
|
|
||||||
margin-left: -6.5em;
|
|
||||||
bottom: 2em;
|
|
||||||
}
|
|
||||||
#carousel-banner .carousel-caption:before {
|
|
||||||
content: 'SPHC 2018'; display: block;
|
|
||||||
}
|
|
||||||
#carousel-banner .carousel-caption:after {
|
|
||||||
content: 'Better Health Faster';
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
// -site-sphc
|
// -site-sphc
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue