From 17c3e29bf6d8230eaeccdbe6dd259e4a1c31ca69 Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 6 Dec 2011 18:15:46 +0530 Subject: [PATCH] updated templates for emailer --- itf/emailer/models.py | 14 ++ itf/static/css/modules/emailer.css | 186 ++++++++++++++++++ .../modules/emailer/emailerissue.html | 66 +++++++ 3 files changed, 266 insertions(+) create mode 100644 itf/static/css/modules/emailer.css create mode 100644 itf/templates/modules/emailer/emailerissue.html diff --git a/itf/emailer/models.py b/itf/emailer/models.py index 4c3b024..480cd55 100644 --- a/itf/emailer/models.py +++ b/itf/emailer/models.py @@ -13,6 +13,20 @@ class EmailerIssue(ItfModel): class Meta: ordering = ['-issue_no'] + def info_dict(self): + return { + 'issue': self, + 'weblinks': Weblink.objects.filter(issue=self), + 'articles': EmailerArticle.objects.filter(issue=self), + 'bbitems': BulletinBoardItem.objects.filter(issue=self) + } + + def list_dict(self): + return { + 'id': self.id, + 'title': self.title + } + class EmailerArticle(models.Model): issue = models.ForeignKey(EmailerIssue) diff --git a/itf/static/css/modules/emailer.css b/itf/static/css/modules/emailer.css new file mode 100644 index 0000000..0546e03 --- /dev/null +++ b/itf/static/css/modules/emailer.css @@ -0,0 +1,186 @@ + +#wrapperEmailer { + width:570px; + padding:20px; + background:#fff; + +} + +.clear { + clear:both; +} + +/* HEADER EMAILER*/ + +#headerEmailer { + position:relative; + width:570px; +} + +#logoItfSmall { + margin-left:10px; + margin-top:16px; +} + +#issueNo, #issueDate { + font-family:"Century Gothic", Arial, Helvetica, sans-serif; + font-weight:bold; + line-height:14px; + margin-left:10px; +} + +#emailerDescription { + font-family:"Century Gothic", Arial, Helvetica, sans-serif; + font-weight:bold; + line-height:14px; + color:#fff; + width:60%; + background-color:#f7bd00; + padding:8px; + margin-top:6px; +} + +#logoImg { + position:absolute; + top:10px; + right:0px; +} + +#navEmailer { + font-family:"Century Gothic", Arial, Helvetica, sans-serif; + font-weight:bold; + margin-left:20px; + margin-right:20px; + margin-top:20px; + border-bottom:2px solid #f7bd00; + padding-bottom:10px; +} + +#navEmailer li { + list-style:none; + text-transform:uppercase; + display:inline; +} + +#navEmailer li a { + color:#f7bd00; + text-decoration:none; +} + +/* HEADER EMAILER CLOSING */ + +/* ------------------------------- */ + +/* CONTENT */ + + +#contentEmailer { + width:570px; + margin:0 auto; + +} + +.contentBoxes { + background-color:#f7bd00; + color:#fff; + text-align:center; + width:164px; /* fixed, can be changed*/ + height:130px; /* fixed, can be changed, character limit accordingly*/ + margin-top:10px; + margin-left:5px; + margin-right:5px; + margin-bottom:20px; + padding:8px; + float:left; + position:relative; + +} + +.contentBoxes h1 { + font-family:"Century Gothic", Arial, Helvetica, sans-serif; + font-size:16px; + margin-bottom:8px; + text-transform:uppercase; +} + +.contentBoxes p { + text-align:justify; + padding:4px; +} + +.contentBoxes a { + color:#fff; + text-decoration:none; +} + +.contentBoxesMore { + position:absolute; + right:8px; + bottom:8px; +} + +.articleTitle { + font-family:"Century Gothic", Arial, Helvetica, sans-serif; + font-size:24px; + color:#f7bd00; + text-transform:uppercase; +} + +.articleImg { + margin-top:10px; +} + +.articleImg img { + display:block; + border:1px solid #f7bd00; + max-width:550px; /* SUBJECT TO CHANGE*/ + margin:0 auto; +} + +.articleCaption { + text-align:center; + margin-top:10px; + margin-bottom:20px; +} + +.articleText p { + margin-bottom:8px; +} + + +/* CONTENT EMAILER CLOSING */ + +/* ------------------------------- */ + + +/* FOOTER EMAILER*/ + +#footerEmailer { + margin-top:30px; + margin-left:20px; + margin-right:20px; + text-align:center; +} + +#footerEmailer a { + color:#0066ff; + text-decoration:none; +} + +#footerEmailer p { + padding:8px; +} + +#footerEmailer p:first-child { + border-bottom:2px solid #f7bd00; +} + +#footerEmailer p:last-child { + border-top:2px solid #f7bd00; + padding-bottom:30px; +} /* last child don't work with IE8 also, have added JS libraries; will test when site goes live */ + +/* FOOTER EMAILER CLOSING */ + +/* ------------------------------- */ + diff --git a/itf/templates/modules/emailer/emailerissue.html b/itf/templates/modules/emailer/emailerissue.html new file mode 100644 index 0000000..b092aae --- /dev/null +++ b/itf/templates/modules/emailer/emailerissue.html @@ -0,0 +1,66 @@ +
+ +
+ + logo-itf-small + +

Issue No: {{ issue_no }}

+

{{ issue_date }}

+

A fortnightly theatre e-journal from the India Theatre Forum
Co-Editors: Vikram Iyengar, Joyoti Roy

+ + logo-erang + + + +
+ +
+ +
+

{{ box_title }}

+

{{ box_text }}

+

More »

+
+ +
+

{{ box_title }}

+

{{ box_text }}

+

More »

+
+ +
+

{{ box_title }}

+

{{ box_text }}

+

More »

+ +
+ +
+ +
+
{{ article_title }}
+
+
{{ article_caption }}
+
{{ article_text|markdown }}
+
+ +
+ +
+ +

Contribute your articles to e-Rang and become part of this theatre community! Email us at erang@theatreforum.in to know +more about how to contribute..

+

The India Theatre Forum (ITF), a Prithvi Theatre initiative, was formed in 2006 as a loose +association of theatre people coming together in the larger interests of theatre. For more on the ITF, please visit +www.theatreforum.in. The ITF is currently supported by HIVOS.

+ +

If you'd prefer not to receive theatre updates and theatre news, simply click here to unsubscribe.

+ +
+ +