emailer color

This commit is contained in:
Sanj 2012-11-18 17:19:33 +05:30
parent cbb0e43b8a
commit 26677493ee
2 changed files with 12 additions and 11 deletions

View File

@ -32,6 +32,7 @@ class ItfForm(forms.ModelForm):
super(ItfForm, self).__init__(*args, **kwargs)
class PopupForm(ItfForm):
'''
All popup forms inherit from this

View File

@ -23,7 +23,7 @@
<tr>
<td style="width:290px; padding:0px 10px 0px 10px;border-bottom:2px solid #f8c92d;">
<p style="font-family:'Century Gothic', Arial, Helvetica, sans-serif; font-size:12px; color:#888; padding-bottom:2px; margin-left:8px;">Issue No: {{ issue.issue_no }} <span>&nbsp;&nbsp; {{ issue.date|date:"F j, Y" }}</span></p>
<p style="font-family:'Century Gothic', Arial, Helvetica, sans-serif; font-size:12px; color:#666; padding-bottom:2px; margin-left:8px;">Issue No: {{ issue.issue_no }} <span>&nbsp;&nbsp; {{ issue.date|date:"F j, Y" }}</span></p>
</td>
@ -42,7 +42,7 @@
<td style="width:250px; background-color:#f7bd00; color:#fff; padding:10px;">
<p style="font-size:16px; text-align:center; text-transform:uppercase; font-family:'Century Gothic', Arial, Helvetica, sans-serif;">Web Links</p>
{% for weblink in weblinks %}
<p style="font-size:13px; font-family:Arial, Helvetica, sans-serif; padding-left:6px; padding-right:6px;"> {{ weblink.box_title|truncatewords:12 }}</p>
<p style="font-size:13px; font-family:Arial, Helvetica, sans-serif; padding-left:6px; padding-right:6px;">* {{ weblink.box_title|truncatewords:12 }}</p>
{% endfor %}
<p style="text-align:right;"><a href="#weblinks" style="color:#fff; text-decoration:none; font-size:12px;">More &#187;</a></p>
</td>
@ -51,7 +51,7 @@
<td style="width:250px; background-color:#f7bd00; color:#fff; padding:10px;">
<p style="font-size:16px; text-align:center; text-transform:uppercase; font-family:'Century Gothic', Arial, Helvetica, sans-serif;">Bulletin Board</p>
{% for bbitem in bbitems %}
<p style="font-size:13px; font-family:Arial, Helvetica, sans-serif; padding-left:6px; padding-right:6px;"> {{ bbitem.box_title|truncatewords:12 }}</p>
<p style="font-size:13px; font-family:Arial, Helvetica, sans-serif; padding-left:6px; padding-right:6px;">* {{ bbitem.box_title|truncatewords:12 }}</p>
{% endfor %}
<p style="text-align:right;"><a href="#bbitems" style="color:#fff; text-decoration:none; font-size:12px;">More &#187;</a></p>
</td>
@ -64,7 +64,7 @@
<tr>
<td style="width:350px;"><p style="font-size:24px; font-weight:normal; color:#ffcc00; text-transform:uppercase; font-family:'Century Gothic', Arial, Helvetica, sans-serif; margin-left:10px;margin-top:0px;margin-bottom:0px;">{{ article.title }}</p></td>
<td style="width:250px;">{% if article.author %}<p style="font-size:12px; font-weight:normal; color:#888; font-family:'Century Gothic', Arial, Helvetica, sans-serif; text-align:right;">by: {{ article.author }}</p> {% endif %} </td>
<td style="width:250px;">{% if article.author %}<p style="font-size:12px; font-weight:normal; color:#666; font-family:'Century Gothic', Arial, Helvetica, sans-serif; text-align:right;">by: {{ article.author }}</p> {% endif %} </td>
</tr>
</table>
@ -78,17 +78,17 @@
{% endthumbnail %}
{% endif %}
<!-- <img src="/static/images/emailer/logo-erang.jpg" width="151" height="127" alt="theatre-image" style="display:block; border:1px solid #f7c00c; margin:0 auto;"> -->
<p style="text-align:center; margin-top:10px; margin-bottom:10px; color:#888; font-family:Arial, Helvetica, sans-serif; font-size:12px;">{{ article.subtitle|markdown|removetags:"p" }}</p>
<p style="text-align:center; margin-top:10px; margin-bottom:10px; color:#666; font-family:Arial, Helvetica, sans-serif; font-size:12px;">{{ article.subtitle|markdown|removetags:"p" }}</p>
</td>
</tr>
<tr>
<td style="width:580px; padding:10px 16px; color:#888; font-family:Arial, Helvetica, sans-serif; font-size:13px; line-height:17px;">
<td style="width:580px; padding:10px 16px; color:#666; font-family:Arial, Helvetica, sans-serif; font-size:13px; line-height:17px;">
<p>{{ article.text|insert_images_mailer:article.id|markdown }}</p></td>
</tr>
<tr>
<td style="width:580px; padding: 10px 16px; color:#888; font-family: Arial, Helvetica, sans-serif; font-size:12px; font-style:italic;">
<td style="width:580px; padding: 10px 16px; color:#666; font-family: Arial, Helvetica, sans-serif; font-size:12px; font-style:italic;">
{{ article.author_bio|markdown }}
</td>
</tr>
@ -103,7 +103,7 @@
<p style="padding:8px; margin-left:10px; background-color:#f7bd00; color:#fff; font-size:24px; font-family:'Century Gothic', Arial, Helvetica, sans-serif;"><a name="weblinks"></a>WEB LINKS</p>
{% for weblink in weblinks %}
<h2 style="padding-left:10px;margin-top:0px;margin-bottom:0px;font-weight:normal;"><a href="{{weblink.url}}" target="_blank" style="color:#ff8400;text-decoration:none;font-size:16px">{{ weblink.title }}</a></h2>
<div style="color:#888; font-family:Arial, Helvetica, sans-serif; font-size:13px; padding-left: 10px;line-height:17px;">{{ weblink.text|markdown }}</div>
<div style="color:#666; font-family:Arial, Helvetica, sans-serif; font-size:13px; padding-left: 10px;line-height:17px;">{{ weblink.text|markdown }}</div>
{% endfor %}
<!-- <p style="color:#888; font-family:Arial, Helvetica, sans-serif; font-size:12px; padding:8px;">{{ weblinks.text|markdown }}</p> -->
@ -119,7 +119,7 @@
<p style="padding:8px; margin-left:10px; margin-top: 4px;background-color:#f7bd00; color:#fff; font-size:24px; font-family:'Century Gothic', Arial, Helvetica, sans-serif;"><a name="bbitems"></a>BULLETIN BOARD</p>
{% for bbitem in bbitems %}
<h2 style="font-family:Arial;font-size:16px;padding-left:10px;color:#F7BD00;;margin-top:4px;margin-bottom:4px;font-weight:bold;">{{ bbitem.title }}</h2>
<div style="color:#888; font-family:Arial, Helvetica, sans-serif; font-size:13px; padding-left: 10px;margin-bottom:16px;line-height:17px;">{{ bbitem.text|markdown }}</div>
<div style="color:#666; font-family:Arial, Helvetica, sans-serif; font-size:13px; padding-left: 10px;margin-bottom:16px;line-height:17px;">{{ bbitem.text|markdown }}</div>
{% endfor %}
<!-- <p style="color:#888; font-family:Arial, Helvetica, sans-serif; font-size:12px; padding:8px;">{{ bulletinboard.text|markdown }}</p> -->
@ -134,12 +134,12 @@
<table width="600" border="0" cellspacing="6" cellpadding="1">
<tr>
<td style="width:600px; border-bottom:2px solid #f8c92d; color:#888; font-family:Arial, Helvetica, sans-serif; font-size:12px; text-align:center;">
<td style="width:600px; border-bottom:2px solid #f8c92d; color:#666; font-family:Arial, Helvetica, sans-serif; font-size:12px; text-align:center;">
<p style="border-bottom:2px solid #f8c92d; border-top:2px solid #f8c92d; padding-top:6px; padding-bottom:6px; padding-top:6px;">A fortnightly theatre e-journal from the India Theatre Forum<br>
Co-Editors: Vikram Iyengar, Joyoti Roy</p>
<p>Views expressed in the articles in e-Rang are personal.<br>e-Rang does not hold copyright of any piece.<br>Any enquiry for re-use of articles should be addressed to the authors.</p>
<p>Contribute your articles to e-Rang and become part of this theatre community! Email us at <a href="mailto:erang@theatreforum.in" style="color:#0066ff; text-decoration:none;">erang@theatreforum.in</a> to know more about how to contribute.</p>
<p style="padding-bottom:6px;">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 <a href="http://theatreforum.in/" style="color:#0066ff; text-decoration:none;">www.theatreforum.in</a>.</p>
<p style="padding-bottom:6px;">The India Theatre Forum (ITF) 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 <a href="http://theatreforum.in/" style="color:#0066ff; text-decoration:none;">www.theatreforum.in</a>.</p>
</td>
</tr>
<!--