remotes/origin/1203
Назар Котюк 11 years ago
commit 4956b69b8c
  1. 3
      conference/urls.py
  2. 8
      conference/views.py
  3. 3
      exposition/urls.py
  4. 9
      exposition/views.py
  5. 9
      service/admin_urls.py
  6. 7
      service/urls.py
  7. 31
      service/views.py
  8. 4
      settings/old_urls.py
  9. 12
      settings/redirect_views.py
  10. 6
      templates/client/service/remotely.html
  11. 26
      templates/client/service/thank_u_page.html
  12. 78
      templates/client/simple_pages/about.html
  13. 51
      templates/client/static_client/css/main.css
  14. 2
      templates/client/static_client/css_min/main.min.css
  15. 0
      templates/client/static_client/img/team/pic1.jpg
  16. 0
      templates/client/static_client/img/team/pic2.jpg
  17. 0
      templates/client/static_client/img/team/pic3.jpg
  18. 0
      templates/client/static_client/img/team/pic4.jpg
  19. 0
      templates/client/static_client/img/team/pic5.jpg
  20. 0
      templates/client/static_client/img/team/pic6.jpg

@ -2,7 +2,7 @@
from django.conf.urls import patterns, include, url
from views import ConferenceDetail, ConferenceList, ConferenceByCity, ConferenceByCountry, ConferenceByTheme,\
ConferenceCountryCatalog, ConferenceCityCatalog, ConferenceTagCatalog, ConferenceThemeCatalog, ConferenceMembers,\
ConferenceVisitors, ConferenceServiceView
ConferenceVisitors, ConferenceServiceView, ConferenceThankView
from exposition.views import ExpositionSearchView
urlpatterns = patterns('',
@ -53,6 +53,7 @@ urlpatterns = patterns('',
url(r'conference/(?P<slug>.*)/visitors/$', ConferenceVisitors.as_view()),
url(r'conference/(?P<slug>.*)/members/page/(?P<page>\d+)/$', ConferenceMembers.as_view()),
url(r'conference/(?P<slug>.*)/members/$', ConferenceMembers.as_view()),
url(r'^conference/(?P<slug>.*)/service/thanks/', ConferenceThankView.as_view()),
url(r'conference/(?P<slug>.*)/service/(?P<service_url>.*)/', ConferenceServiceView.as_view()),
# conf list

@ -271,6 +271,12 @@ class ConferenceMembers(MetadataMixin, ListView):
from service.models import Service
from service.views import order_forms
class ConferenceThankView(MetadataMixin, DetailView):
model = Conference
slug_field = 'url'
template_name = 'client/service/thank_u_page.html'
class ConferenceServiceView(FormMixin, DetailView):
model = Conference
slug_field = 'url'
@ -310,7 +316,7 @@ class ConferenceServiceView(FormMixin, DetailView):
order.conference = self.object
order.save()
messages.success(self.request, _(u'Ваш запрос был успешно отправлен'))
return HttpResponseRedirect(self.success_url)
return HttpResponseRedirect(self.object.get_permanent_url()+'service/thanks/')
def get_initial(self):
"""

@ -7,7 +7,7 @@ from views import ExpositionStatistic, ExpositionPrice,\
from django.views.decorators.cache import cache_page
from views import ExpositionServiceView
from views import ExpoCountryCatalog, ExpoCityCatalog, ExpoThemeCatalog, ExpoTagCatalog, ExpoList, ExpoDetail,\
ExpoVisitors, ExpoMembers
ExpoVisitors, ExpoMembers, ExpositionThankView
urlpatterns = patterns('',
@ -70,6 +70,7 @@ urlpatterns = patterns('',
url(r'^expo/(?P<slug>.*)/visitors/$', ExpoVisitors.as_view(), {'meta_id':64}),
url(r'^expo/(?P<slug>.*)/members/page/(?P<page>\d+)/$', ExpoMembers.as_view(), {'meta_id':63}),
url(r'^expo/(?P<slug>.*)/members/$', ExpoMembers.as_view(), {'meta_id':63}),
url(r'^expo/(?P<slug>.*)/service/thanks/', ExpositionThankView.as_view()),
url(r'^expo/(?P<slug>.*)/service/(?P<service_url>.*)/', ExpositionServiceView.as_view()),
# expo list
url(r'^expo/(?P<year>\d+)/(?P<month>.*)/page/(?P<page>\d+)/$', ExpoList.as_view(), {'meta_id':4}),

@ -165,6 +165,12 @@ class ExpositionStatistic(MetadataMixin, DetailView):
template_name = 'client/exposition/statistic.html'
from django.views.generic.edit import FormMixin, ModelFormMixin
class ExpositionThankView(MetadataMixin, DetailView):
model = Exposition
slug_field = 'url'
template_name = 'client/service/thank_u_page.html'
class ExpositionServiceView(MetadataMixin, FormMixin, DetailView):
model = Exposition
slug_field = 'url'
@ -209,8 +215,7 @@ class ExpositionServiceView(MetadataMixin, FormMixin, DetailView):
order = form.save(commit=False)
order.exposition = self.object
order.save()
messages.success(self.request, _(u'Ваш запрос был успешно отправлен'))
return HttpResponseRedirect(self.success_url)
return HttpResponseRedirect(self.object.get_permanent_url()+'service/thanks/')
def get_initial(self):
"""

@ -1,11 +1,20 @@
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, include, url
from views import CallBackListView, VisitListView, TranslationListView, AdvertisingListView, \
ParticipationListView, RemoteListView,TicketsListView
urlpatterns = patterns('service.admin',
url(r'^add.*/$', 'service_add'),
url(r'^delete/(?P<url>.*)/$', 'service_delete'),
url(r'^change/(?P<url>.*)/$', 'service_change'),
url(r'^all/$', 'service_all'),
url(r'order/callback/$', CallBackListView.as_view()),
url(r'order/visit/$', VisitListView.as_view()),
url(r'order/translation/$', TranslationListView.as_view()),
url(r'order/advertising/$', AdvertisingListView.as_view()),
url(r'order/participation/$', ParticipationListView.as_view()),
url(r'order/remote/$', RemoteListView.as_view()),
url(r'order/tickets/$', TicketsListView.as_view()),
#ajax
url(r'^get_city/$', 'get_city'),
#url(r'^get_country/$', 'get_country'),

@ -5,13 +5,6 @@ from views import ServiceView, CallBackListView, VisitListView, TranslationListV
urlpatterns = patterns('',
url(r'service/thanks/$', Thanks.as_view()),
url(r'service/order/callback/$', CallBackListView.as_view()),
url(r'service/order/visit/$', VisitListView.as_view()),
url(r'service/order/translation/$', TranslationListView.as_view()),
url(r'service/order/advertising/$', AdvertisingListView.as_view()),
url(r'service/order/participation/$', ParticipationListView.as_view()),
url(r'service/order/remote/$', RemoteListView.as_view()),
url(r'service/order/tickets/$', TicketsListView.as_view()),
url(r'service/com_rek/$', 'service.views.advertise'),
url(r'service/(?P<url>.*)/$', ServiceView.as_view()),

@ -7,6 +7,7 @@ from haystack.query import EmptySearchQuerySet
from django.shortcuts import get_object_or_404
from django.http import Http404
import json
from django.http import HttpResponseRedirect, HttpResponse
#from functions.search_forms import CompanySearchForm
from order_forms import TranslationForm, CatalogForm, VisitForm, RemoteForm, ParticipationForm, TicketsForm,\
@ -19,19 +20,31 @@ order_forms = {'translator': TranslationForm, 'catalog': CatalogForm, 'participa
class ServiceView(FormView):
success_url = '/service/thanks/'
def dispatch(self, request, *args, **kwargs):
service_url = self.kwargs.get('url')
service = get_object_or_404(Service, url=service_url)
self.service = service
self.template_name = service.template
service_form = order_forms.get(service_url)
self.form_class = service_form
return super(ServiceView, self).dispatch(request, *args, **kwargs)
def get_form_class(self):
def post(self, request, *args, **kwargs):
url = self.kwargs.get('url')
form = order_forms.get(url)
if form:
return form
#service_form = order_forms.get(url)
#self.form_class = service_form
form = self.form_class(request.POST)
if form.is_valid():
return self.form_valid(form)
else:
raise Http404
return self.form_invalid(form)
def form_valid(self, form):
order = form.save(commit=False)
order.save()
#messages.success(self.request, _(u'Ваш запрос был успешно отправлен'))
return HttpResponseRedirect(self.success_url)
def get_template_names(self):
url = self.kwargs.get('url')
service = get_object_or_404(Service, url=url)
return service.template
def advertise(request):

@ -52,6 +52,7 @@ urlpatterns = patterns('',
url(r'^catalog/city/(?P<city>.*)/year-(?P<year>\d+)/month-(?P<month>.*)/$', old_redirect, {'redirect_url': '/expo/city/{city}/{year}/{month}'}),
url(r'^catalog/city-(?P<city>.*)/year-(?P<year>\d+)/$', old_redirect, {'redirect_url': '/expo/city/{city}/{year}'}),
url(r'^catalog/city/(?P<city>.*)/year-(?P<year>\d+)/$', old_redirect, {'redirect_url': '/expo/city/{city}/{year}'}),
url(r'^catalog/city-(?P<city>.*)/page/(?P<page>\d+)/$', old_redirect, {'redirect_url': '/expo/city/{city}/page/{page}/'}),
url(r'^catalog/city-(?P<city>.*)/$', old_redirect, {'redirect_url': '/expo/city/{city}/'}),
# country
url(r'^catalog/country-(?P<country>)/theme-(?P<theme>.*)/year-(?P<year>\d+)/month-(?P<month>.*)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/country/{country}/{year}/'}),
@ -61,8 +62,9 @@ urlpatterns = patterns('',
url(r'^catalog/country/(?P<country>.*)/year-(?P<year>\d+)/month-(?P<month>.*)/$', old_redirect, {'redirect_url': '/expo/country/{country}/{year}/{month}/'}),
url(r'^catalog/country-(?P<country>.*)/year-(?P<year>\d+)/$', old_redirect, {'redirect_url': '/expo/country/{country}/{year}/'}),
url(r'^catalog/country/(?P<country>.*)/year-(?P<year>\d+)/$', old_redirect, {'redirect_url': '/expo/country/{country}/{year}/'}),
url(r'^catalog/country/(?P<country>.*)/$', old_redirect, {'redirect_url': '/expo/country/{country}/'}),
url(r'^catalog/country/(?P<country>.*)/page/(?P<page>\d+)/$', old_redirect, {'redirect_url': '/expo/country/{country}/page/{page}/'}),
url(r'^catalog/country-(?P<country>.*)/$', old_redirect, {'redirect_url': '/expo/country/{country}/'}),
url(r'^catalog/country/page/(?P<page>\d+)/$', old_redirect, {'redirect_url': '/expo/country/page/{page}/'}),
url(r'^catalog/country/$', old_redirect, {'redirect_url': '/expo/country/'}),
# theme
url(r'^catalog/theme-(?P<theme>.*)/year-(?P<year>\d+)/month-(?P<month>.*)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/{year}/{month}/'}),

@ -50,12 +50,16 @@ class EventRedirect(object):
obj = Exposition.objects.get(old_url=value)
except Exposition.DoesNotExist:
obj = Exposition.objects.safe_get(url=value)
except Exposition.MultipleObjectsReturned:
obj = Exposition.objects.filter(old_url=value)[0]
if not obj:
try:
obj = Conference.objects.get(old_url=value)
except Conference.DoesNotExist:
obj = Conference.objects.safe_get(url=value)
except Conference.MultipleObjectsReturned:
obj = Conference.objects.filter(old=value)[0]
if obj:
return {'event_url': obj.url, 'event_catalog': obj.catalog}
else:
@ -71,9 +75,15 @@ class UserRedirect(object):
obj = get_object_or_404(User, url=value)
return {key: obj.url}
class PageRedirect(object):
def get_object_url(self,key, value):
return {key: value}
old_params = {'city': CityRedirect, 'country': CountryRedirect, 'theme': ThemeRedirect, 'tag': TagRedirect,
'event': EventRedirect, 'company': Company, 'article': ArticleRedirect, 'user': UserRedirect}
'event': EventRedirect, 'company': Company, 'article': ArticleRedirect, 'user': UserRedirect,
'page': PageRedirect}
def old_redirect(request, *args, **kwargs):
redirect = kwargs.get('redirect_url')

@ -167,7 +167,11 @@
<div class="rq-order-button">
<div class="rqob-wrap">
<div class="rqob-price">{% trans 'Стоимость базового пакета услуги 400 €' %}</div>
{% if object and object.country_id in sng_countries %}
<div class="rqob-price">{% trans 'Стоимость базового пакета услуги 10 000 р.' %}</div>
{% else %}
<div class="rqob-price">{% trans 'Стоимость базового пакета услуги 400 €' %}</div>
{% endif %}
<div class="rqob-button">
<a class="ob-text" href="#">{% trans 'отправить запрос' %}</a>
</div>

@ -20,7 +20,8 @@
<p>Также Вы можете позвонить нам для ускорения процесса, если Ваш запрос является срочным.</p>
</article>
<div class="clearfix"></div>
{% comment %}
{% if object %}
<h3>Что дальше Вы хотите делать?</h3>
<div class="help-block">
<div class="item">
@ -28,11 +29,14 @@
<div class="icon list">&nbsp;</div>
</div>
<div class="desc">
{% with theme=object.theme.all.0 %}
<p>
Перейти к списку выставок по тематике <a href="#">«Ювелирное дело, антиквариат»</a>
Перейти к списку выставок по тематике <a href="{{ object.catalog }}theme/{{ theme.url }}/">«{{ theme.name }}»</a>
</p>
{% endwith %}
</div>
</div>
{% comment %}
<div class="item">
<div class="figure">
<div class="icon mail">&nbsp;</div>
@ -43,17 +47,31 @@
</p>
</div>
</div>
{% endcomment %}
<div class="item">
<div class="figure">
<div class="icon zoom">&nbsp;</div>
</div>
<div class="desc">
Вернуться к просмотру выставки <a href="#">«Сувенирная ярмарка 2013/2014»</a>
Вернуться к просмотру выставки <a href="{{ object.get_permanent_url }}">«{{ object.name }}»</a>
</div>
</div>
<div class="item">
<div class="figure">
<div class="icon list">&nbsp;</div>
</div>
<div class="desc">
{% with city=object.city %}
<p>
Перейти к списку ближайших выставок в городе <a href="{{ object.catalog }}city/{{ city.url }}/">«{{ city.name }}»</a>
</p>
{% endwith %}
</div>
</div>
<div class="clearfix"></div>
{% endcomment %}
</div>
{% endif %}
</div>
</div>

@ -81,29 +81,81 @@
<ul class="team_list">
<li>
<div class="team_list_bg">
<img src="{% static 'client/img/pic1.jpg' %}" class="pic" alt="">
<img src="{% static 'client/img/team/pic1.jpg' %}" class="pic">
<h4>{% trans 'Евгения' %}<br>{% trans 'Мануковская' %}</h4>
{% trans '<strong>руководитель,<br>сооснователь </strong>' %}
<p>{% trans 'Консультируем Вас<br>по вопросам их<br>правильного подбора' %}</p>
<a href="#" title=""></a>
<strong>{% trans 'руководитель,сооснователь ' %}</strong>
<p>{% trans 'Даже самое лучшее<br/> может стать еще лучше' %}</p>
{% comment %} <a href="#" title=""></a> {% endcomment %}
</div>
</li>
<li>
<div class="team_list_bg">
<img src="{% static 'client/img/pic2.jpg' %}" class="pic" alt="">
<h4>{% trans 'Валерия<br>Селезнвая' %}</h4>
<img src="{% static 'client/img/team/pic4.jpg' %}" class="pic">
<h4>{% trans 'Ольга<br>Мусатова' %}</h4>
<strong>{% trans 'ведущий консультант' %}</strong>
<p>{% trans 'Главное внимание главным вещам' %}</p>
{% comment %} <a href="#" title=""></a> {% endcomment %}
</div>
</li>
<li>
<div class="team_list_bg">
<span class="stub"><img src="{% static 'client/img/no-logo.png' %}" class="pic"></span>
<h4>{% trans 'Руслан<br>Шапилов' %}</h4>
<strong>{% trans 'ведущий консультант' %}</strong>
<p>{% trans 'Развиваться и получать удовольствие от жизни' %}</p>
{% comment %} <a href="#" title=""></a> {% endcomment %}
</div>
</li>
<li>
<div class="team_list_bg">
<img src="{% static 'client/img/team/pic6.jpg' %}" class="pic">
<h4>{% trans 'Евгения<br>Булавина' %}</h4>
<strong>{% trans 'ведущий консультант' %}</strong>
<p>{% trans 'Жить в настоящем - единственная возможность жить' %}</p>
{% comment %} <a href="#" title=""></a> {% endcomment %}
</div>
</li>
<li>
<div class="team_list_bg">
<img src="{% static 'client/img/team/pic2.jpg' %}" class="pic">
<h4>{% trans 'Валерия<br>Селезнева' %}</h4>
<strong>{% trans 'шеф-редактор' %}</strong>
<p>{% trans 'Устраняем языковые<br>барьеры' %}</p>
<a href="#" title=""></a>
<p>{% trans 'Делай - где-то звякнет' %}</p>
{% comment %} <a href="#" title=""></a> {% endcomment %}
</div>
</li>
<li>
<div class="team_list_bg">
<img src="{% static 'client/img/pic3.jpg' %}" class="pic" alt="">
<h4>{% trans 'Светлана<br>Мурадяня' %}</h4>
<strong>{% trans 'ведущий контент-<br>менеджер' %}</strong>
<p>{% trans 'Освещаем деловые события<br>со всего мира' %}</p>
<a href="#" title=""></a>
<img src="{% static 'client/img/team/pic3.jpg' %}" class="pic">
<h4>{% trans 'Светлана<br>Мурадян' %}</h4>
<strong>{% trans 'журналист' %}</strong>
<p>{% trans 'Кто верит в свою удачу, удачлив' %}</p>
{% comment %} <a href="#" title=""></a> {% endcomment %}
</div>
</li>
<li>
<div class="team_list_bg">
<span class="stub"><img src="{% static 'client/img/no-logo.png' %}" class="pic" alt=""></span>
<h4>{% trans 'Олег<br>Петров' %}</h4>
<strong>{% trans 'контент-менеджер' %}</strong>
<p>{% trans 'Побеждает тот, кто побеждает себя' %}</p>
{% comment %} <a href="#" title=""></a> {% endcomment %}
</div>
</li>
<li>
<div class="team_list_bg">
<span class="stub"><img src="{% static 'client/img/no-logo.png' %}" class="pic" alt=""></span>
<h4>{% trans 'Виктор<br>Трифонов' %}</h4>
<strong>{% trans 'контент-менеджер' %}</strong>
<p>{% trans 'Каждый день становиться чуть лучше' %}</p>
{% comment %} <a href="#" title=""></a> {% endcomment %}
</div>
</li>

@ -11488,10 +11488,29 @@ hr + .rq-note {
}
.team_list { width: 100%; float: left; margin: 0 0 0 0; padding: 0 0 0 0; list-style-type: none;}
.team_list li { float: left; width: 33%; font-size: 11px; position: relative; line-height: 1.25;}
.team_list li {
display: inline-block;
vertical-align: middle;
width: 33%;
font-size: 11px;
position: relative;
line-height: 1.25;
margin-bottom: 2em;
}
.team_list li.delimiter { width: 100%; height: 25px;}
.team_list li .team_list_bg { position: relative; float: left; padding: 0 0 0 104px;}
.team_list li .team_list_bg .pic { display: block; position: absolute; left: 0; top: 0; width: 89px; height: 89px; border-radius: 4px;}
.team_list li .team_list_bg .pic {
display: block;
position: absolute;
left: 0;
top: 50%;
margin-top: -45px;
width: 89px;
height: 89px;
border-radius: 4px;
}
.team_list li p { padding: 0 0 0 0; margin: 0 0 0 0; color: #a6a6a5;}
.team_list li strong { display: block; font-weight: normal; color: #464646; font-size: 13px; padding: 0 0 5px 0;}
.team_list li h4 { font-size: 21px; font-weight: 500; color: #ff6600; padding: 3px 0 3px 0; margin: 0 0 0 0; line-height: 1.0;}
@ -12245,6 +12264,15 @@ hr + .rq-note {
.orange-text{
color: #ff6600;
}
/* заглушка для картинок no-logo.png */
.stub{
text-align: center;
background: #fff;
box-shadow: inset 0 1px 0 #e8e8e7;
border-radius: 4px;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
@ -13351,6 +13379,25 @@ hr + .rq-note {
.about-page .tabs-opening{
margin-bottom: 20px;
}
.team_list .stub{
display: block;
position: absolute;
left: 0;
top: 50%;
margin-top: -40px;
width: 89px;
height: 89px;
text-align: center;
padding-top: 15px;
}
.team_list li .team_list_bg .stub img{
display: inline;
position: relative;
top: 0;
margin-top: 0;
width: auto;
height: auto;
}
/************************\
# callback modal window

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Loading…
Cancel
Save