t88: выпилил формы подписки с сайдбара + удалил выбор когда получать письма

remotes/origin/t90_expo_page
Slava Kyrachevsky 9 years ago
parent 7afee48c21
commit c0679891d4
  1. 26
      apps/emencia/django/newsletter/forms.py
  2. 1
      apps/emencia/django/newsletter/mailer.py
  3. 3
      apps/emencia/django/newsletter/urls/__init__.py
  4. 43
      apps/emencia/django/newsletter/views/expo_views.py
  5. 4
      proj/views.py
  6. 17
      static/client.old/js/main.js
  7. 17
      static/client/js/main.js
  8. 17
      static/client/js/vendor.js
  9. 4
      static/client/js_min/vendor.min.js
  10. 1
      templates/client/base_catalog.html
  11. 6
      templates/client/includes/announces.html
  12. 4
      templates/client/index.html
  13. 312
      templates/client/newsletters/announce_template.html
  14. 34
      templates/client/newsletters/mailing_settings.html
  15. 58
      templates/client/popups/announces.html

@ -107,15 +107,12 @@ class MailingSettingsForm(forms.ModelForm):
model = Contact model = Contact
fields = [ fields = [
'email', 'first_name', 'moscow', 'russia', 'r_cities', 'foreign', 'email', 'first_name', 'moscow', 'russia', 'r_cities', 'foreign',
'periodic', 'periodic_day', 'content_news', 'content_overview', 'content_news', 'content_overview', 'content_articles',
'content_articles',
] ]
widgets = { widgets = {
'first_name': forms.TextInput(attrs={'placeholder': _(u'Ваше имя')}), 'first_name': forms.TextInput(attrs={'placeholder': _(u'Ваше имя')}),
'moscow': forms.CheckboxInput(), 'moscow': forms.CheckboxInput(),
'foreign': forms.CheckboxInput(), 'foreign': forms.CheckboxInput(),
'periodic': forms.RadioSelect(),
'periodic_day': forms.RadioSelect(),
'content_news': forms.CheckboxInput(), 'content_news': forms.CheckboxInput(),
'content_overview': forms.CheckboxInput(), 'content_overview': forms.CheckboxInput(),
'content_articles': forms.CheckboxInput(), 'content_articles': forms.CheckboxInput(),
@ -437,27 +434,6 @@ class AbstractSubscribeForm(forms.ModelForm):
return Theme.objects.filter(id__in=themes) return Theme.objects.filter(id__in=themes)
class SubscribeAssideForm(AbstractSubscribeForm):
city = forms.CharField(
widget=forms.HiddenInput(attrs={'id': 'id_subscription_city', 'placeholder': _(u'Город')}),
required=False)
periodic = forms.ChoiceField(
choices=ContactSettings.PERIODIC_CHOICES, required=False,
widget=forms.Select(attrs={'placeholder': _(u'Периодичность'), 'id': 'id_subscription_periodic'}))
def __init__(self, *args, **kwargs):
super(SubscribeAssideForm, self).__init__(*args, **kwargs)
lang = translation.get_language()
self.fields['theme'] = forms.MultipleChoiceField(
choices=[(item.pk, get_by_lang(item, 'name', lang)) for item in SearchQuerySet().models(Theme).all()],
widget=forms.SelectMultiple(attrs={'placeholder': _(u'Тематики'), 'id': 'id_subscription_theme'}))
self.fields['country'] = forms.MultipleChoiceField(
choices=[(item.pk, get_by_lang(item, 'name', lang)) for item in SearchQuerySet().models(Country).all()],
required=False,
widget=forms.SelectMultiple(attrs={'placeholder': _(u'Страны'), 'id': 'id_subscription_country'}))
class SubscribeSettingsForm(AbstractSubscribeForm): class SubscribeSettingsForm(AbstractSubscribeForm):
NA_ID = 12 NA_ID = 12
ASIA_ID = 9 ASIA_ID = 9

@ -412,7 +412,6 @@ class NewsLetterSender(object):
}) })
if self.announce: if self.announce:
# render template by default announce template # render template by default announce template
# template = get_template('newsletter/announce_template.html')
template = get_template('newsletter/AutomaticEmail_v2.html') template = get_template('newsletter/AutomaticEmail_v2.html')
context.update(announce_context) context.update(announce_context)
content = template.render(context) content = template.render(context)

@ -12,7 +12,6 @@ urlpatterns = patterns('',
url(r'^statistics/', include('emencia.django.newsletter.urls.statistics')), url(r'^statistics/', include('emencia.django.newsletter.urls.statistics')),
url(r'^', include('emencia.django.newsletter.urls.newsletter')), url(r'^', include('emencia.django.newsletter.urls.newsletter')),
url(r'^test-letter/', TemplateView.as_view(template_name='client/newsletters/announce_template.html'), name='newsletter_test_letter'),
url(r'^activation/send/', TemplateView.as_view(template_name='client/newsletters/activation_send.html'), url(r'^activation/send/', TemplateView.as_view(template_name='client/newsletters/activation_send.html'),
name='subscription_activation_send'), name='subscription_activation_send'),
url(r'^activation/complete/', TemplateView.as_view(template_name='client/newsletters/activation_complete.html'), url(r'^activation/complete/', TemplateView.as_view(template_name='client/newsletters/activation_complete.html'),
@ -22,7 +21,5 @@ urlpatterns = patterns('',
name='newsletter_subscription_popup_validate'), name='newsletter_subscription_popup_validate'),
url(r'^partisipation/validate/$', 'emencia.django.newsletter.views.expo_views.landing_partisipation_validate', url(r'^partisipation/validate/$', 'emencia.django.newsletter.views.expo_views.landing_partisipation_validate',
name='landing_partisipation_validate'), name='landing_partisipation_validate'),
url(r'^subsribe/aside/$', 'emencia.django.newsletter.views.expo_views.subscribe_aside',
name='newsletter_subscription_aside'),
url(r'^$', SubscribeView.as_view(), name='newsletter_subscription'), url(r'^$', SubscribeView.as_view(), name='newsletter_subscription'),
) )

@ -2,16 +2,14 @@
import json import json
from django.core.urlresolvers import reverse_lazy from django.core.urlresolvers import reverse_lazy
from django.db.models import Count
from django.views.generic import TemplateView, FormView from django.views.generic import TemplateView, FormView
from django.http import HttpResponse from django.http import HttpResponse
from django.shortcuts import redirect from django.shortcuts import redirect
from emencia.django.newsletter.forms import ContactForm from emencia.django.newsletter.forms import ContactForm
from emencia.django.newsletter.models import Contact, MailingList from emencia.django.newsletter.models import Contact, MailingList
from emencia.django.newsletter.forms import ( from emencia.django.newsletter.forms import MailingSettingsForm
SubscribeAssideForm, MailingSettingsForm
)
from accounts.models import User
from accounts.views import GetUserMixin from accounts.views import GetUserMixin
from functions.http import JsonResponse from functions.http import JsonResponse
from city.models import City from city.models import City
@ -109,9 +107,14 @@ class SubscribeView(GetUserMixin, FormView):
def get_popular_themes(self): def get_popular_themes(self):
""" """
:return: :return: 7 популярных тем (где больше всего подписчиков)
""" """
return Theme.objects.all()[:7] qs = Theme.objects.annotate(c=Count('contact'))\
.values('pk', 'c')\
.order_by('-c')[:7]
return Theme.objects.language()\
.filter(pk__in=[x['pk'] for x in qs])\
.order_by('name')
class ActivationView(TemplateView): class ActivationView(TemplateView):
@ -145,34 +148,6 @@ class ActivationView(TemplateView):
return ('subscription_activation_complete', (), {}) return ('subscription_activation_complete', (), {})
def subscribe_aside(request):
if request.POST:
response = {'success': False}
form = SubscribeAssideForm(request.POST)
if form.is_valid():
email = form.cleaned_data['email']
try:
user = User.objects.get(username=email)
except User.DoesNotExist:
user = None
contact = Contact.objects.create_contact(email, user)
contact_setting = form.save(commit=False)
contact_setting.contact = contact
contact_setting.exponent_practicum = True
contact_setting.organiser_practicum = True
contact_setting.save()
form.save_m2m()
response['success'] = True
else:
errors = form.errors
if 'theme' in errors:
errors['id_subscription_theme'] = errors['theme']
response['errors'] = errors
return HttpResponse(json.dumps(response, indent=2), content_type='application/json')
else:
return HttpResponse('not form request')
def popup_validate(request): def popup_validate(request):
response = {'success': False} response = {'success': False}
if request.GET: if request.GET:

@ -16,8 +16,6 @@ from theme.models import Theme
from article.models import Article from article.models import Article
from exposition.models import Exposition from exposition.models import Exposition
from conference.models import Conference from conference.models import Conference
from emencia.django.newsletter.forms import SubscribeAssideForm
from django.db.models.loading import get_model from django.db.models.loading import get_model
@ -40,7 +38,7 @@ def expo_context(request):
'main_page_blogs': Article.objects.main_page_blogs(), 'main_page_blogs': Article.objects.main_page_blogs(),
'blogs': Article.objects.every_page_blogs(), 'blogs': Article.objects.every_page_blogs(),
'news_list': Article.objects.main_page_news(), 'sng_countries': settings.SNG_COUNTRIES, 'news_list': Article.objects.main_page_news(), 'sng_countries': settings.SNG_COUNTRIES,
'seo_text': add_seo(request), 'announce_subscribe': SubscribeAssideForm(), 'seo_text': add_seo(request),
'NO_EXTERNAL_JS': getattr(settings, 'NO_EXTERNAL_JS', False), 'NO_EXTERNAL_JS': getattr(settings, 'NO_EXTERNAL_JS', False),
'NO_BANNERS': getattr(settings, 'NO_BANNERS', False), 'NO_BANNERS': getattr(settings, 'NO_BANNERS', False),
'SUBSCRIBERS_COUNT': get_subscribers_count(), 'SUBSCRIBERS_COUNT': get_subscribers_count(),

@ -1020,23 +1020,6 @@ function placeInput(width){
$scrollContainer.mCustomScrollbar(customScrollOptions); $scrollContainer.mCustomScrollbar(customScrollOptions);
}); });
/* Открыть диалог подписки на нужной вкладке */
$('#subscribe-sm').each(function () {
var $container = $(this);
var $links = $container.find('a');
$links.on('click', function () {
var $link = $(this);
var index = $links.index(this);
var popupSubscribe = $('#pw-subscribe');
$.fancybox(popupSubscribe, fbPopupOptions);
var $tabs = popupSubscribe.find('ul.tabs > li');
$tabs.eq(index).trigger('click');
return false;
});
});
/* Обработка поведения вкладок */ /* Обработка поведения вкладок */
$("ul.tabs > li").on('click', function () { $("ul.tabs > li").on('click', function () {
var $curTab = $(this); var $curTab = $(this);

@ -694,23 +694,6 @@ function placeInput(width){
$scrollContainer.mCustomScrollbar(customScrollOptions); $scrollContainer.mCustomScrollbar(customScrollOptions);
}); });
/* Открыть диалог подписки на нужной вкладке */
$('#subscribe-sm').each(function () {
var $container = $(this);
var $links = $container.find('a');
$links.on('click', function () {
var $link = $(this);
var index = $links.index(this);
var popupSubscribe = $('#pw-subscribe');
$.fancybox(popupSubscribe, fbPopupOptions);
var $tabs = popupSubscribe.find('ul.tabs > li');
$tabs.eq(index).trigger('click');
return false;
});
});
/* Обработка поведения вкладок */ /* Обработка поведения вкладок */
$("ul.tabs > li").on('click', function () { $("ul.tabs > li").on('click', function () {
var $curTab = $(this); var $curTab = $(this);

@ -4373,23 +4373,6 @@ function placeInput(width){
$scrollContainer.mCustomScrollbar(customScrollOptions); $scrollContainer.mCustomScrollbar(customScrollOptions);
}); });
/* Открыть диалог подписки на нужной вкладке */
$('#subscribe-sm').each(function () {
var $container = $(this);
var $links = $container.find('a');
$links.on('click', function () {
var $link = $(this);
var index = $links.index(this);
var popupSubscribe = $('#pw-subscribe');
$.fancybox(popupSubscribe, fbPopupOptions);
var $tabs = popupSubscribe.find('ul.tabs > li');
$tabs.eq(index).trigger('click');
return false;
});
});
/* Обработка поведения вкладок */ /* Обработка поведения вкладок */
$("ul.tabs > li").on('click', function () { $("ul.tabs > li").on('click', function () {
var $curTab = $(this); var $curTab = $(this);

File diff suppressed because one or more lines are too long

@ -115,6 +115,5 @@
{% endblock %} {% endblock %}
{% block popup %} {% block popup %}
{% include 'client/popups/announces.html' %}
{% include 'client/popups/announce_subscription.html' %} {% include 'client/popups/announce_subscription.html' %}
{% endblock %} {% endblock %}

@ -1,13 +1,13 @@
{% load i18n %} {% load i18n %}
{% load staticfiles %} {% load staticfiles %}
<div id="subscribe-sm" class="subscribe-sm"> <div class="subscribe-sm">
<header> <header>
<a href="#" style="text-decoration: none"> {% trans 'получать анонсЫ' %} <a href="{% url 'newsletter_subscription' %}" style="text-decoration: none"> {% trans 'получать анонсЫ' %}
<span> <span>
<img style="margin-right: -2px; margin-bottom: 4px; width: 12%;" src="{% static 'img/announce-letter.png' %}"> <img style="margin-right: -2px; margin-bottom: 4px; width: 12%;" src="{% static 'img/announce-letter.png' %}">
</span> </span>
</a> </a>
</header> </header>
</div> </div>
<hr/> <hr/>

@ -100,10 +100,6 @@
{% include 'client/includes/online_consult.html' %} {% include 'client/includes/online_consult.html' %}
{% comment %}
<!-- task EXPO-145-->
{% include 'client/includes/announces.html' %}
{% endcomment %}
{% include 'client/includes/services.html' %} {% include 'client/includes/services.html' %}
</aside> </aside>

@ -1,312 +0,0 @@
{% load static %}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html style="margin: 0; padding: 0; height: 100%;">
<head>
<title>Тестовове письмо</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
</head>
<body style="margin: 0; padding: 0; min-height: 100%; background: #f4f2ee;">
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%" bgcolor="#f4f2ee" style="font-family: Arial, sans-serif; background: #f4f2ee;">
<tr>
<td align="center" style="padding: 50px 0">
<table cellpadding="0" cellspacing="0" border="0" width="600" style="width: 600px;">
<tr>
<td style="vertical-align: top;">
<div class="logo">
<a style="text-decoration: none; color: #a2a2a2; font-size: 12px;" href="#">
<img src="{% static 'client/img/logo.png' %}" alt="Expomap.ru" />
<b style="display: block; padding-left: 67px; margin-top: -5px;">Выставки, конференции, семинары</b>
</a>
</div>
</td>
<td style="vertical-align: top; padding-top: 22px;">
<ul class="t-links" style="margin: 0 0 15px; padding: 0; list-style: none; text-align: right; font-size: 16px; line-height: 17px; font-weight: bold;">
<li style="display: inline-block;"><a style="text-decoration: none; color: #ff6600" href="#">СОБЫТИЯ</a></li>
<li style="display: inline-block; margin-left: 20px;"><a style="text-decoration: none; color: #ff6600" href="#">МЕСТА</a></li>
<li style="display: inline-block; margin-left: 20px;"><a style="text-decoration: none; color: #ff6600" href="#">УЧАСТНИКИ</a></li>
</ul>
<ul class="soc-media-buttons" style="margin: 0; padding: 0; list-style: none; text-align: right;">
<li style="display: inline-block;"><a href="#"><img src="{% static 'client/img/soc-medias/sm-icon-rss.png' %}" title="RSS" alt="RSS" /></a></li>
<li style="display: inline-block; margin-left: 5px;"><a href="#"><img src="{% static 'client/img/soc-medias/sm-icon-fb.png' %}" title="Facebook" alt="Facebook" /></a></li>
<li style="display: inline-block; margin-left: 5px;"><a href="#"><img src="{% static 'client/img/soc-medias/sm-icon-lin.png' %}" title="LinkedIn" alt="LinkedIn" /></a></li>
<li style="display: inline-block; margin-left: 5px;"><a href="#"><img src="{% static 'client/img/soc-medias/sm-icon-vk.png' %}" title="В контакте" alt="В контакте" /></a></li>
<li style="display: inline-block; margin-left: 5px;"><a href="#"><img src="{% static 'client/img/soc-medias/sm-icon-twit.png' %}" title="Twitter" alt="Twitter" /></a></li>
</ul>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="600" style="width: 600px; margin-bottom: 10px;">
<tr>
<td style="padding: 20px 0 0;"><a style="display: block; padding: 25px 30px; text-decoration: none; background: #ff6600; color: #ffffff; font-size: 20px; line-height: 26px;" href="#">Выставки в Москве по тематике: <b style="display: block; font-size: 26px;">Мебель, Дизайн интерьеров</b></a></td>
</tr>
<tr>
<td style="padding: 10px 30px 15px; background: #faf9f7;">
<table cellpadding="0" cellspacing="0" border="0" width="540" style="margin-bottom: 15px;">
<tr valign="top">
<td style="padding: 15px 15px 15px 0; width: 76px; border-bottom: 1px dotted #cccccc;">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="background: #ffffff; padding: 3px; width: 70px; height: 70px; vertical-align: middle; text-align: center; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px;"><a href="#"><img src="{% static 'client/img/_del-temp/cl-logo-1.png' %}" style="width: 100%;" alt="" /></a></td>
</tr>
</table>
</td>
<td style="padding: 15px 15px 15px 0; border-bottom: 1px dotted #cccccc;">
<h2 style="margin: 0 0 5px; font-family: Tahoma, Arial, sans-serif; font-size: 18px; line-height: 21px;"><a style="color: #464646; text-decoration: none;" href="#">Foire de Pau 2013</a></h2>
<p style="margin: 0 0 7px; font-size: 12px; line-height: 15px; color: #a2a2a2"><a style="color: #a2a2a2; text-decoration: none;" href="#">Международная ярмарка потребительских товаров</a></p>
<a class="button" style="display: inline-block; padding: 4px 10px 3px; text-decoration: none; color: #ff6600; font-size: 11px; font-weight: bold; line-height: 14px; border: 1px solid #feb17d; text-transform: uppercase; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px;" href="#">добавить в расписание</a>
<div class="addr" style="margin-top: 10px; font-size: 13px; line-height: 15px;"><img src="{% static 'client/img/pin.png' %}" width="10" height="15" alt="" style="vertical-align: middle; margin-top: -1px;" /> Россия, Москва, ЦВК «Экспоцентр»</div>
</td>
<td style="padding: 17px 0; text-align: right; font-size: 13px; line-height: 16px; color: #ff6600; width: 140px; border-bottom: 1px dotted #cccccc;">
<img src="{% static 'client/img/clock.png' %}" width="14" height="15" style="vertical-align: middle; margin-top: -1px;" alt="" /> с 5 по 20 октября
</td>
</tr>
<tr valign="top">
<td style="padding: 15px 15px 15px 0; width: 76px; border-bottom: 1px dotted #cccccc;">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="background: #ffffff; padding: 3px; width: 70px; height: 70px; vertical-align: middle; text-align: center; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px;"><a href="#"><img src="{% static 'client/img/_del-temp/cl-logo-2.png' %}" style="width: 100%;" alt="" /></a></td>
</tr>
</table>
</td>
<td style="padding: 15px 15px 15px 0; border-bottom: 1px dotted #cccccc;">
<h2 style="margin: 0 0 5px; font-family: Tahoma, Arial, sans-serif; font-size: 18px; line-height: 21px;"><a style="color: #464646; text-decoration: none;" href="#">Foire de Pau 2013</a></h2>
<p style="margin: 0 0 7px; font-size: 12px; line-height: 15px; color: #a2a2a2"><a style="color: #a2a2a2; text-decoration: none;" href="#">Международная ярмарка потребительских товаров</a></p>
<a class="button" style="display: inline-block; padding: 4px 10px 3px; text-decoration: none; color: #ff6600; font-size: 11px; font-weight: bold; line-height: 14px; border: 1px solid #feb17d; text-transform: uppercase; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px;" href="#">добавить в расписание</a>
<div class="addr" style="margin-top: 10px; font-size: 13px; line-height: 15px;"><img src="{% static 'client/img/pin.png' %}" width="10" height="15" alt="" style="vertical-align: middle; margin-top: -1px;" /> Россия, Москва, ЦВК «Экспоцентр»</div>
</td>
<td style="padding: 17px 0; text-align: right; font-size: 13px; line-height: 16px; color: #ff6600; width: 140px; border-bottom: 1px dotted #cccccc;">
<img src="{% static 'client/img/clock.png' %}" width="14" height="15" style="vertical-align: middle; margin-top: -1px;" alt="" /> с 5 по 20 октября
</td>
</tr>
<tr valign="top">
<td style="padding: 15px 15px 15px 0; width: 76px; border-bottom: 1px dotted #cccccc;">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="background: #ffffff; padding: 3px; width: 70px; height: 70px; vertical-align: middle; text-align: center; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px;"><a href="#"><img src="{% static 'client/img/_del-temp/cl-logo-3.png' %}" style="width: 100%;" alt="" /></a></td>
</tr>
</table>
</td>
<td style="padding: 15px 15px 15px 0; border-bottom: 1px dotted #cccccc;">
<h2 style="margin: 0 0 5px; font-family: Tahoma, Arial, sans-serif; font-size: 18px; line-height: 21px;"><a style="color: #464646; text-decoration: none;" href="#">Foire de Pau 2013</a></h2>
<p style="margin: 0 0 7px; font-size: 12px; line-height: 15px; color: #a2a2a2"><a style="color: #a2a2a2; text-decoration: none;" href="#">Международная ярмарка потребительских товаров</a></p>
<a class="button" style="display: inline-block; padding: 4px 10px 3px; text-decoration: none; color: #ff6600; font-size: 11px; font-weight: bold; line-height: 14px; border: 1px solid #feb17d; text-transform: uppercase; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px;" href="#">добавить в расписание</a>
<div class="addr" style="margin-top: 10px; font-size: 13px; line-height: 15px;"><img src="{% static 'client/img/pin.png' %}" width="10" height="15" alt="" style="vertical-align: middle; margin-top: -1px;" /> Россия, Москва, ЦВК «Экспоцентр»</div>
</td>
<td style="padding: 17px 0; text-align: right; font-size: 13px; line-height: 16px; color: #ff6600; width: 140px; border-bottom: 1px dotted #cccccc;">
<img src="{% static 'client/img/clock.png' %}" width="14" height="15" style="vertical-align: middle; margin-top: -1px;" alt="" /> с 5 по 20 октября
</td>
</tr>
</table>
<div class="more" style="text-align: center;">
<a class="button" style="display: inline-block; padding: 4px 10px 3px; text-decoration: none; color: #2592c5; font-size: 11px; font-weight: bold; line-height: 14px; border: 1px solid #90c7e0; text-transform: uppercase; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; width: 336px;" href="#">посмотреть все события</a>
</div>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="600" style="width: 600px; margin-bottom: 10px;">
<tr>
<td style="padding: 20px 0 0;"><a style="display: block; padding: 25px 30px; text-decoration: none; background: #ff6600; color: #ffffff; font-size: 20px; line-height: 26px;" href="#">Новости событий</a></td>
</tr>
<tr>
<td style="padding: 10px 30px 15px; background: #faf9f7;">
<table cellpadding="0" cellspacing="0" border="0" width="540" style="margin-bottom: 15px;">
<tr valign="top">
<td style="padding: 15px 15px 15px 0; width: 76px; border-bottom: 1px dotted #cccccc;">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="background: #ffffff; padding: 0; width: 76px; height: 76px; vertical-align: middle; text-align: center;"><a href="#"><img style="width: 100%; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px;" alt="" src="{% static 'client/img/_del-temp/news-1.jpg' %}" /></a></td>
</tr>
</table>
</td>
<td style="padding: 15px 0; border-bottom: 1px dotted #cccccc;">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom: 5px;">
<tr>
<td><h2 style="margin: 0 0 5px; font-family: Tahoma, Arial, sans-serif; font-size: 18px; line-height: 21px;"><a style="color: #464646; text-decoration: none;" href="#">Foire de Pau 2013</a></h2></td>
<td style="font-size: 13px; line-height: 15px; text-align: right; color: #ff6600;">05.10.2013</td>
</tr>
</table>
<p style="margin: 0 0 7px; font-size: 13px; line-height: 17px;"><a style="color: #464646; text-decoration: none;" href="#">VII Международный форум «АтомЭко 2013» пройдет 30-31 октября в Москве под знаком нулевого ущерба для экологии. Главная тема VIIМеждународного Форума «АтомЭко 2013»: «Атомная энергетика – стратегия нулевого ущерба», где будут обсуждаться вопросы по обращению с радиоактивными отходами (РАО) и отработавшим <span style="text-decoration: underline; color: #ff6600;">...</span></a></p>
</td>
</tr>
<tr valign="top">
<td style="padding: 15px 15px 15px 0; width: 76px; border-bottom: 1px dotted #cccccc;">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="background: #ffffff; padding: 0; width: 76px; height: 76px; vertical-align: middle; text-align: center;"><a href="#"><img style="width: 100%; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px;" alt="" src="{% static 'client/img/_del-temp/news-1.jpg' %}" /></a></td>
</tr>
</table>
</td>
<td style="padding: 15px 0; border-bottom: 1px dotted #cccccc;">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom: 5px;">
<tr>
<td><h2 style="margin: 0 0 5px; font-family: Tahoma, Arial, sans-serif; font-size: 18px; line-height: 21px;"><a style="color: #464646; text-decoration: none;" href="#">Foire de Pau 2013</a></h2></td>
<td style="font-size: 13px; line-height: 15px; text-align: right; color: #ff6600;">05.10.2013</td>
</tr>
</table>
<p style="margin: 0 0 7px; font-size: 13px; line-height: 17px;"><a style="color: #464646; text-decoration: none;" href="#">VII Международный форум «АтомЭко 2013» пройдет 30-31 октября в Москве под знаком нулевого ущерба для экологии. Главная тема VIIМеждународного Форума «АтомЭко 2013»: «Атомная энергетика – стратегия нулевого ущерба», где будут обсуждаться вопросы по обращению с радиоактивными отходами (РАО) и отработавшим <span style="text-decoration: underline; color: #ff6600;">...</span></a></p>
</td>
</tr>
<tr valign="top">
<td style="padding: 15px 0; width: 76px; border-bottom: 1px dotted #cccccc;">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="background: #ffffff; padding: 0; width: 76px; height: 76px; vertical-align: middle; text-align: center;"><a href="#"><img style="width: 100%; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px;" alt="" src="{% static 'client/img/_del-temp/news-1.jpg' %}" /></a></td>
</tr>
</table>
</td>
<td style="padding: 15px 15px 15px 0; border-bottom: 1px dotted #cccccc;">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom: 5px;">
<tr>
<td><h2 style="margin: 0 0 5px; font-family: Tahoma, Arial, sans-serif; font-size: 18px; line-height: 21px;"><a style="color: #464646; text-decoration: none;" href="#">Foire de Pau 2013</a></h2></td>
<td style="font-size: 13px; line-height: 15px; text-align: right; color: #ff6600;">05.10.2013</td>
</tr>
</table>
<p style="margin: 0 0 7px; font-size: 13px; line-height: 17px;"><a style="color: #464646; text-decoration: none;" href="#">VII Международный форум «АтомЭко 2013» пройдет 30-31 октября в Москве под знаком нулевого ущерба для экологии. Главная тема VIIМеждународного Форума «АтомЭко 2013»: «Атомная энергетика – стратегия нулевого ущерба», где будут обсуждаться вопросы по обращению с радиоактивными отходами (РАО) и отработавшим <span style="text-decoration: underline; color: #ff6600;">...</span></a></p>
</td>
</tr>
</table>
<div class="more" style="text-align: center;">
<a class="button" style="display: inline-block; padding: 4px 10px 3px; text-decoration: none; color: #2592c5; font-size: 11px; font-weight: bold; line-height: 14px; border: 1px solid #90c7e0; text-transform: uppercase; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; width: 336px;" href="#">посмотреть все новости</a>
</div>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="600" style="width: 600px; margin-bottom: 10px;">
<tr>
<td style="padding: 20px 0 0;"><a style="display: block; padding: 25px 30px; text-decoration: none; background: #ff6600; color: #ffffff; font-size: 20px; line-height: 26px;" href="#">Фоторепортаж: Международный форум «АтомЭко 2013»</a></td>
</tr>
<tr>
<td style="padding: 10px 30px 15px; background: #faf9f7;">
<table cellpadding="0" cellspacing="0" border="0" width="540" style="margin-bottom: 15px;">
<tr valign="top">
<td style="padding: 15px 0; border-bottom: 1px dotted #cccccc;">
<table cellpadding="0" cellspacing="0" border="0" style="margin-bottom: 10px;">
<tr>
<td style="width: 100px;"><a href="#"><img src="{% static 'client/img/_del-temp/phr-1.jpg' %}" width="100" height="100" alt="" /></a></td>
<td style="width: 100px; padding-left: 10px;"><a href="#"><img src="{% static 'client/img/_del-temp/phr-2.jpg' %}" width="100" height="100" alt="" /></a></td>
<td style="width: 100px; padding-left: 10px;"><a href="#"><img src="{% static 'client/img/_del-temp/phr-3.jpg' %}" width="100" height="100" alt="" /></a></td>
<td style="width: 100px; padding-left: 10px;"><a href="#"><img src="{% static 'client/img/_del-temp/phr-4.jpg' %}" width="100" height="100" alt="" /></a></td>
<td style="width: 100px; padding-left: 10px;"><a href="#"><img src="{% static 'client/img/_del-temp/phr-2.jpg' %}" width="100" height="100" alt="" /></a></td>
</tr>
</table>
<p style="margin: 0 0 7px; font-size: 12px; line-height: 15px;"><a style="color: #464646; text-decoration: none;" href="#">Идея Russian Affiliate Congress and Expo возникла в ответ на необходимость развития бизнеса России и стран СНГ в соответствии с мировыми тенденциями. Партнерские программы — один из наиболее эффективных и широко применяемых на западе инструментов интернет маркетинга, доля которого на рынке интернет продвижения развитых стран около 40 %, для сравнения в России и странах СНГ на этот сегмент приходится около 10%. Разница очевидна.</a></p>
</td>
</tr>
</table>
<div class="more" style="text-align: center;">
<a class="button" style="display: inline-block; padding: 4px 10px 3px; text-decoration: none; color: #2592c5; font-size: 11px; font-weight: bold; line-height: 14px; border: 1px solid #90c7e0; text-transform: uppercase; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; width: 336px;" href="#">посмотреть все фотрепортажи</a>
</div>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="600" style="width: 600px; margin-bottom: 10px;">
<tr>
<td style="padding: 20px 0 0;"><a href="#"><img src="{% static 'client/img/_del-temp/mail-banner.jpg' %}" width="600" height="145" alt="" /></a></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="600" style="width: 600px; margin-bottom: 10px;">
<tr>
<td style="padding: 20px 0 0;"><a style="display: block; padding: 25px 30px; text-decoration: none; background: #ff6600; color: #ffffff; font-size: 20px; line-height: 26px;" href="#">Аналитика для профессионалов</a></td>
</tr>
<tr>
<td style="padding: 10px 30px 15px; background: #faf9f7;">
<table cellpadding="0" cellspacing="0" border="0" width="540">
<tr valign="top">
<td style="padding: 15px 15px 0 0; width: 76px;">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="background: #ffffff; padding: 0; width: 76px; height: 76px; vertical-align: middle; text-align: center;"><a href="#"><img style="width: 100%; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px;" alt="" src="{% static 'client/img/_del-temp/news-1.jpg' %}" /></a></td>
</tr>
</table>
</td>
<td style="padding: 15px 0 0;">
<h2 style="margin: 0 0 5px; font-family: Tahoma, Arial, sans-serif; font-size: 18px; line-height: 21px;"><a style="color: #464646; text-decoration: none;" href="#">Древние славянские практики для оздоровления души и тела презентуют на красноярской Ярмарке здоровья</a></h2>
<p style="margin: 0 0 7px; font-size: 13px; line-height: 17px;"><a style="color: #464646; text-decoration: none;" href="#">VII Международный форум «АтомЭко 2013» пройдет 30-31 октября в Москве под знаком нулевого ущерба для экологии. Главная тема VIIМеждународного Форума «АтомЭко 2013»: «Атомная энергетика – стратегия нулевого ущерба», где будут обсуждаться вопросы по обращению с радиоактивными отходами (РАО) и отработавшим <span style="text-decoration: underline; color: #ff6600;">...</span></a></p>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="600" style="width: 600px; border-bottom: 1px dotted #cccccc;">
<tr>
<td style="vertical-align: top; padding: 15px 0 10px;">
<div class="logo">
<a style="text-decoration: none; color: #a2a2a2; font-size: 12px;" href="#">
<img src="{% static 'client/img/mail-logo-2.jpg' %}" alt="Expomap.ru" />
</a>
</div>
</td>
<td style="vertical-align: top; padding: 25px 0 5px;">
<ul class="t-links" style="margin: 0 0 15px; padding: 0; list-style: none; text-align: right; font-size: 14px; line-height: 15px; font-weight: bold;">
<li style="display: inline-block;"><a style="text-decoration: none; color: #ff6600" href="#">СОБЫТИЯ</a></li>
<li style="display: inline-block; margin-left: 20px;"><a style="text-decoration: none; color: #ff6600" href="#">МЕСТА</a></li>
<li style="display: inline-block; margin-left: 20px;"><a style="text-decoration: none; color: #ff6600" href="#">УЧАСТНИКИ</a></li>
</ul>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="600" style="width: 600px; font-size: 12px; line-height: 15px;">
<tr>
<td style="vertical-align: top; padding: 15px 0 15px;">
Чтобы отписаться от этой рассылки, перейдите <a style="color: #ff6600;" href="#">по ссылке</a>
</td>
<td style="vertical-align: top; padding: 15px 0 15px; color: #a2a2a2; text-align: right;">
© 2018 — 2013 <a style="color: #a2a2a2; text-decoration: none;" href="#">Expomap.ru</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

@ -188,39 +188,7 @@
</div> </div>
</div> </div>
</div> </div>
{% comment %}
<div class="period_block">
<div class="container">
<h2>{% trans 'Регулярность получения писем' %}</h2>
<div class="columns">
<div class="column periodic">
<ul>
{% for field in form.periodic %}
<li>
<label>
{{ field.tag }}
<span class="radio">
{{ field.choice_label }}
</span>
</label>
</li>
{% endfor %}
</ul>
</div>
<div class="column mailing_day">
{% for field in form.periodic_day %}
<label>
{{ field.tag }}
<span class="radio">
{{ field.choice_label }}
</span>
</label>
{% endfor %}
</div>
</div>
</div>
</div>
{% endcomment %}
<div class="button_block"> <div class="button_block">
<div class="container"> <div class="container">
{% if not user.is_authenticated %} {% if not user.is_authenticated %}

@ -1,58 +0,0 @@
{% load i18n %}
<div id="pw-subscribe" class="popup-window pw-subscribe">
<header class="clearfix">
<div class="pw-title">{% trans 'Получать анонсы' %} </div>
<ul class="tabs">
<li class="active"><a class="icon-big-email" href="#">{% trans 'по e-mail' %}</a></li>
</ul>
</header>
<div class="pw-body clearfix">
<ul class="tabs-content">
<li class="active">
<form id="id_subscription_aside_form" class="pw-form simple-validate" action="/newsletters/subsribe/aside/" method="post">{% csrf_token %}
<div class="pwf-line mail">
<div class="pwf-field">{{ announce_subscribe.email }}</div>
<div class="pwf-msg"><a target="_blank" href="/newsletters/test-letter/">{% trans 'Пример рассылки' %}</a></div>
</div>
<div class="pwf-line country">
<div class="pwf-field">
{{ announce_subscribe.country }}
</div>
<div class="pwf-msg"></div>
</div>
<div class="pwf-line city">
<div class="pwf-field">
{{ announce_subscribe.city }}
</div>
<div class="pwf-msg"></div>
</div>
<div class="pwf-line subj">
<div class="pwf-field">
{{ announce_subscribe.theme }}
</div>
<div class="mf-msg"></div>
</div>
<div class="pwf-line subj">
<div class="pwf-field">
{{ announce_subscribe.periodic }}
</div>
<div class="mf-msg"></div>
</div>
<div class="pwf-buttons-line">
<button type="submit" class="icon-check">{% trans 'подписаться' %}</button>
</div>
</form>
</li>
</ul>
</div>
</div>
Loading…
Cancel
Save