diff --git a/core/simple_views.py b/core/simple_views.py index 45cb457b..5f556f4a 100644 --- a/core/simple_views.py +++ b/core/simple_views.py @@ -19,14 +19,16 @@ def send_to_organiser(request): email = request.POST.get('email', '') company = request.POST.get('company', '') office = request.POST.get('office', '') + phone = request.POST.get('phone', '') title = request.POST.get('type', '') text = u"""Имя: %s; Фамилия:%s; Email: %s; + Телефон: %s; компния:%s; - должность: %s"""%(fname, lname, email, company, office) + должность: %s"""%(fname, lname, email, phone, company, office) msg = EmailMessage(title, text, settings.DEFAULT_FROM_EMAIL, [mail_send]) msg.content_subtype = "html" msg.send() diff --git a/settings/templatetags/template_filters.py b/settings/templatetags/template_filters.py index 10c11444..fd8050ca 100644 --- a/settings/templatetags/template_filters.py +++ b/settings/templatetags/template_filters.py @@ -156,6 +156,10 @@ def timetable_by_day(qs, day): def random_social(value): return bool(random.getrandbits(1)) +@register.filter +def random3(value): + return random.randrange(0,3) + @register.filter def fourth(value): # return almost in 75% cases True in 25% False diff --git a/templates/client/includes/banners/under_search.html b/templates/client/includes/banners/under_search.html index 695169b6..66f5e45c 100644 --- a/templates/client/includes/banners/under_search.html +++ b/templates/client/includes/banners/under_search.html @@ -1,9 +1,22 @@ {% load static %} {% load template_filters %} +
+ {% if False|random3 == 1 %} + + {% else %} + {% if False|random3 == 2 %} + + {% else %} + + {% endif %} + {% endif %} + + {% comment %} {% if False|fourth %} {% else %} {% endif %} + {% endcomment %}
\ No newline at end of file diff --git a/templates/client/index.html b/templates/client/index.html index 04cfcfd2..b01123ab 100644 --- a/templates/client/index.html +++ b/templates/client/index.html @@ -58,10 +58,14 @@
{% block menu_banner %} - {% if False|fourth %} - + {% if False|random3 == 1 %} + {% else %} - + {% if False|random3 == 2 %} + + {% else %} + + {% endif %} {% endif %} {% endblock %}
diff --git a/templates/client/static_client/img/partners/expomap-seminars-01.jpg b/templates/client/static_client/img/partners/expomap-seminars-01.jpg new file mode 100644 index 00000000..82b41d92 Binary files /dev/null and b/templates/client/static_client/img/partners/expomap-seminars-01.jpg differ diff --git a/templates/client/static_client/img/partners/expomap-seminars-02.gif b/templates/client/static_client/img/partners/expomap-seminars-02.gif new file mode 100644 index 00000000..eec115c4 Binary files /dev/null and b/templates/client/static_client/img/partners/expomap-seminars-02.gif differ diff --git a/templates/client/static_client/img/partners/expomap-seminars-03.gif b/templates/client/static_client/img/partners/expomap-seminars-03.gif new file mode 100644 index 00000000..d1f4ca6d Binary files /dev/null and b/templates/client/static_client/img/partners/expomap-seminars-03.gif differ