diff --git a/publichealth/home/migrations/0028_contact_style.py b/publichealth/home/migrations/0028_contact_style.py new file mode 100644 index 0000000..58512c3 --- /dev/null +++ b/publichealth/home/migrations/0028_contact_style.py @@ -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=''), + ), + ] diff --git a/publichealth/home/models/snippets.py b/publichealth/home/models/snippets.py index 16ce540..a18f9ca 100644 --- a/publichealth/home/models/snippets.py +++ b/publichealth/home/models/snippets.py @@ -70,6 +70,7 @@ class Contact(models.Model): email = models.EmailField(max_length=100, blank=True, default="") www = models.URLField(null=True, blank=True) + style = models.TextField(default="", blank=True) color = models.CharField(max_length=40, blank=True, default="") logo = models.ForeignKey( 'wagtailimages.Image', @@ -107,6 +108,7 @@ class Contact(models.Model): FieldPanel('www'), ImageChooserPanel('logo'), FieldPanel('color'), + FieldPanel('style'), FieldPanel('map_url'), FieldPanel('analytics'), PageChooserPanel('contact_form', 'home.ContactForm'), diff --git a/publichealth/home/templates/tags/contact_info.html b/publichealth/home/templates/tags/contact_info.html index bf63e6f..3120ba1 100644 --- a/publichealth/home/templates/tags/contact_info.html +++ b/publichealth/home/templates/tags/contact_info.html @@ -22,6 +22,7 @@