Merge branch 'develop' of git.general-servers.com:expomap/expomap into develop

remotes/origin/1203
Ivan Kovalkovskyi 11 years ago
commit 48ffa7fa35
  1. 14
      functions/form_check.py
  2. 6
      settings/templatetags/template_filters.py
  3. 4
      static/custom_js/main.js
  4. 8
      templates/client/includes/conference/default_description.html
  5. 13
      templates/client/includes/exposition/default_description.html
  6. 1
      templates/client/includes/exposition/exposition_object.html
  7. 16
      templates/client/includes/exposition/price.html
  8. 2
      templates/client/includes/header.html
  9. BIN
      templates/client/static_client/img/logo_beta.png

@ -15,12 +15,9 @@ def is_positive_integer(data,
else: else:
raise ValidationError(msg) raise ValidationError(msg)
from django.utils.encoding import smart_str, smart_unicode
from slugify import slugify import unicodedata
def translit_with_separator(string, separator='-'): def translit_with_separator(string, separator='-'):
#return slugify(string)
""" """
Trsanslit string and replace "bad" symbols for separator Trsanslit string and replace "bad" symbols for separator
@ -30,15 +27,13 @@ def translit_with_separator(string, separator='-'):
#make string unicode #make string unicode
string = string.strip() string = string.strip()
string = u'%s'%string string = smart_unicode(string)
#make string translit #make string translit
try: try:
st = pytils.translit.translify(string) st = pytils.translit.translify(string)
except ValueError: except ValueError:
# remove exception symbs(hack) string = unicodedata.normalize('NFKD', string).encode('ascii','ignore')
string = string.replace(u'\u200e', '')
string = string.replace(u'\u200b', '')
st = pytils.translit.translify(string) st = pytils.translit.translify(string)
#replace "bad" symbols for '-'symbol #replace "bad" symbols for '-'symbol
@ -54,7 +49,6 @@ def translit_with_separator(string, separator='-'):
return st.lower() return st.lower()
def is_latin_char(uchr): def is_latin_char(uchr):
latin_letters= {} latin_letters= {}
try: return latin_letters[uchr] try: return latin_letters[uchr]

@ -141,8 +141,10 @@ def timesince_exp(value, date=None):
""" """
delta = timedelta(days=28) delta = timedelta(days=28)
d = date -value d = date -value
if d>delta:
return True if d > delta:
if date.month== value.month:
return True
return False return False
@register.filter @register.filter

@ -88,7 +88,8 @@ function postTimetable(data, textStatus){
function postStat(data, textStatus){ function postStat(data, textStatus){
if(data.success){ if(data.success){
location.reload;
window.location.reload();
} }
else{ else{
$.each(data.errors, function(field_name, errors){ $.each(data.errors, function(field_name, errors){
@ -424,7 +425,6 @@ $(document).ready(function(){
$('#stat_form').on('submit', function(e){//submit(function(){ $('#stat_form').on('submit', function(e){//submit(function(){
e.preventDefault(); e.preventDefault();
var url = '/admin/ajax_post_stat/' + $('#obj_id').val() + '/'; var url = '/admin/ajax_post_stat/' + $('#obj_id').val() + '/';
console.log(url)
var formData = $(this).serialize(); var formData = $(this).serialize();
$.ajax({ $.ajax({

@ -1,7 +1,7 @@
{% load i18n %} {% load i18n %}
<div class="ied-text"> <div class="ied-text" style="text-align: justify">
{% blocktrans with name=conf.name%} {% blocktrans with name=conf.name%}
<p class="text-indent-1-5em">Конференция {{name}} проходит {% endblocktrans %}{% include 'client/includes/show_date_block.html' with obj=conf %} <p>Конференция {{name}} проходит {% endblocktrans %}{% include 'client/includes/show_date_block.html' with obj=conf %}
{% blocktrans with city=conf.name country=country.name name=conf.name id=conf.city.id code=request.LANGUAGE_CODE date1=conf.data_begin|date:'j' date2=conf.data_begin|date:'Y' date3=conf.data_begin|date:'n' date4=conf.data_end|date:'j' date5=conf.data_end|date:'Y' date6=conf.data_end|date:'n' %} {% blocktrans with city=conf.name country=country.name name=conf.name id=conf.city.id code=request.LANGUAGE_CODE date1=conf.data_begin|date:'j' date2=conf.data_begin|date:'Y' date3=conf.data_begin|date:'n' date4=conf.data_end|date:'j' date5=conf.data_end|date:'Y' date6=conf.data_end|date:'n' %}
в городе {{city}}, {{country}}. в городе {{city}}, {{country}}.
Посмотреть, как проехать в место проведения конференции, можно на сайте конгрессной площадки. Посмотреть, как проехать в место проведения конференции, можно на сайте конгрессной площадки.
@ -15,7 +15,7 @@
<p class="text-indent-1-5em">Если Вам требуется размещение, мы рекомендуем посмотреть отели и цены в период проведения конференции <a href="http://www.booking.com/searchresults.html?aid=333667&city={{ id }}&do_availability_check=on&label=conf_search&lang={{ code }}&checkin_monthday={{ date1 }}&checkin_year_month={{ date2 }}-{{ date3 }}&checkout_monthday={{ date4 }}&checkout_year_month={{ date5 }}-{{ date6 }}">здесь</a>. <p class="text-indent-1-5em">Если Вам требуется размещение, мы рекомендуем посмотреть отели и цены в период проведения конференции <a href="http://www.booking.com/searchresults.html?aid=333667&city={{ id }}&do_availability_check=on&label=conf_search&lang={{ code }}&checkin_monthday={{ date1 }}&checkin_year_month={{ date2 }}-{{ date3 }}&checkout_monthday={{ date4 }}&checkout_year_month={{ date5 }}-{{ date6 }}">здесь</a>.
Не забудьте проверить место и даты конференции на официальном сайте и в календаре организатора. Событие могут перенести, Не забудьте проверить место и даты конференции на официальном сайте и в календаре организатора. Событие могут перенести,
отменить, объединить с проектом схожей тематики. Expomap не несет ответственности за неточности отменить, объединить с проектом схожей тематики. Expomap не несет ответственности за неточности
предоставляемой информации. предоставляемой информации.</p>
Есть вопрос по участию в {{name}} ? Ответим по тел. <b>+7 (499) 999-12-07</b></p> Есть вопрос по участию в {{name}} ? Ответим по тел. <b>+7 (499) 999-12-07</b>
{% endblocktrans %} {% endblocktrans %}
</div> </div>

@ -1,12 +1,11 @@
{% load i18n %} {% load i18n %}
<div class="ied-text"> <div class="ied-text" style="text-align: justify">
{% blocktrans with name=expo.name %} {% blocktrans with name=expo.name %}
<p class="text-indent-1-5em">Выставка {{ name }} проводится{% endblocktrans %} <p>Выставка {{ name }} проводится{% endblocktrans %}
{% include 'client/includes/show_date_block.html' with obj=expo %} {% include 'client/includes/show_date_block.html' with obj=expo %}
{% blocktrans with city=expo.city.name country=expo.country.name %} в городе {{ city }}, {{ country }} {% blocktrans with city=expo.city.name country=expo.country.name %} в городе {{ city }}, {{ country }}.</p>{% endblocktrans %}
.{% endblocktrans %}
{% blocktrans with name=expo.name id=expo.city.id code=request.LANGUAGE_CODE date1=expo.data_begin|date:'j' date2=expo.data_begin|date:'Y' date3=expo.data_begin|date:'n' date4=expo.data_end|date:'j' date5=expo.data_end|date:'Y' date6=expo.data_end|date:'n' %} {% blocktrans with name=expo.name id=expo.city.id code=request.LANGUAGE_CODE date1=expo.data_begin|date:'j' date2=expo.data_begin|date:'Y' date3=expo.data_begin|date:'n' date4=expo.data_end|date:'j' date5=expo.data_end|date:'Y' date6=expo.data_end|date:'n' %}
Экспонируемые продукты и разделы выставки Вы можете посмотреть ниже, в блоке <p>Экспонируемые продукты и разделы выставки Вы можете посмотреть ниже, в блоке
<a href="#additional">«Дополнительная информация».</a> <a href="#additional">«Дополнительная информация».</a>
Полный список участников {{ name }} размещается на официальном сайте выставки и постоянно обновляется. Полный список участников {{ name }} размещается на официальном сайте выставки и постоянно обновляется.
Там же Вы сможете найти экспонентов предыдущего года. Деловая программа {{ name }} обычно публикуется ближе к Там же Вы сможете найти экспонентов предыдущего года. Деловая программа {{ name }} обычно публикуется ближе к
@ -28,7 +27,7 @@
{% blocktrans with name=expo.name %} {% blocktrans with name=expo.name %}
Не забудьте проверить место и даты выставки на официальном сайте и в календаре выставочного комплекса. Не забудьте проверить место и даты выставки на официальном сайте и в календаре выставочного комплекса.
Событие могут перенести, отменить, объединить с проектом схожей тематики. Событие могут перенести, отменить, объединить с проектом схожей тематики.
Expomap не несет ответственности за неточности предоставляемой информации. Expomap не несет ответственности за неточности предоставляемой информации.</p>
Есть вопрос о посещении или участии в {{ name }}? Ответим по тел. <b>+7 (499) 999-12-07</b></p> Есть вопрос о посещении или участии в {{ name }}? Ответим по тел. <b>+7 (499) 999-12-07</b>
{% endblocktrans %} {% endblocktrans %}
</div> </div>

@ -73,7 +73,6 @@
</div> </div>
</header> </header>
</div> </div>
\1
{% endif %} {% endif %}
<hr /> <hr />
<div class="i-buttons clearfix"> <div class="i-buttons clearfix">

@ -129,7 +129,7 @@
<li> <li>
<div class="prl-value">{{ exposition.price_day_bar }} {% if exposition.price_day_bar|isdigit %}{{ exposition.get_currency_html }}{% endif %}</div> <div class="prl-value">{{ exposition.price_day_bar }} {% if exposition.price_day_bar|isdigit %}{{ exposition.get_currency_html }}{% endif %}</div>
<div class="prl-descr"><span>на 1 день</span></div> <div class="prl-descr"><span>{% trans 'на 1 день' %}</span></div>
</li> </li>
{% endif %} {% endif %}
{% if exposition.price_all_bar %} {% if exposition.price_all_bar %}
@ -177,14 +177,14 @@
<div class="epr-subtitle">{% trans 'Стоимость аренды 1м²' %}</div> <div class="epr-subtitle">{% trans 'Стоимость аренды 1м²' %}</div>
{% if exposition.max_closed_equipped_area or exposition.max_closed_area or exposition.max_open_area %} {% if exposition.max_closed_equipped_area or exposition.max_closed_area or exposition.max_open_area or exposition.min_closed_area %}
<ul class="pr-list"> <ul class="pr-list">
{% if exposition.max_closed_equipped_area %} {% if exposition.max_closed_equipped_area or exposition.min_closed_equipped_area %}
<li> <li>
<div class="prl-value"> <div class="prl-value">
{% if exposition.min_closed_equipped_area %} {% if exposition.min_closed_equipped_area %}
{{ exposition.min_closed_equipped_area }}-{{ exposition.max_closed_equipped_area }} {{ exposition.get_currency_html }} {{ exposition.min_closed_equipped_area }}{% if exposition.min_closed_equipped_area %}-{{ exposition.max_closed_equipped_area }}{% endif %} {{ exposition.get_currency_html }}
{% else %} {% else %}
{{ exposition.max_closed_equipped_area }} {{ exposition.get_currency_html }} {{ exposition.max_closed_equipped_area }} {{ exposition.get_currency_html }}
{% endif %} {% endif %}
@ -193,11 +193,11 @@
</li> </li>
{% endif %} {% endif %}
{% if exposition.max_closed_area %} {% if exposition.max_closed_area or exposition.min_closed_area %}
<li> <li>
<div class="prl-value"> <div class="prl-value">
{% if exposition.min_closed_area %} {% if exposition.min_closed_area %}
{{ exposition.min_closed_area }}-{{ exposition.max_closed_area }} {{ exposition.get_currency_html }} {{ exposition.min_closed_area }}{% if exposition.max_closed_area %}-{{ exposition.max_closed_area }}{% endif %} {{ exposition.get_currency_html }}
{% else %} {% else %}
{{ exposition.max_closed_area }} {{ exposition.get_currency_html }} {{ exposition.max_closed_area }} {{ exposition.get_currency_html }}
{% endif %} {% endif %}
@ -206,11 +206,11 @@
</li> </li>
{% endif %} {% endif %}
{% if exposition.max_open_area %} {% if exposition.max_open_area or exposition.min_open_area %}
<li> <li>
<div class="prl-value"> <div class="prl-value">
{% if exposition.min_open_area %} {% if exposition.min_open_area %}
{{ exposition.min_open_area }}-{{ exposition.max_open_area }} {{ exposition.get_currency_html }} {{ exposition.min_open_area }}{% if exposition.max_open_area %}-{{ exposition.max_open_area }}{% endif %} {{ exposition.get_currency_html }}
{% else %} {% else %}
{{ exposition.max_open_area }} {{ exposition.get_currency_html }} {{ exposition.max_open_area }} {{ exposition.get_currency_html }}
{% endif %} {% endif %}

@ -5,7 +5,7 @@
<header class="layout"> <header class="layout">
<div class="header-wrap layout-wrap"> <div class="header-wrap layout-wrap">
<div class="logo beta"> <div class="logo beta">
<h2><a href="/"><strong>Expomap</strong> <b>{% trans 'Выставки, конференции, семинары' %}</b></a></h2> <h2><a href="/"><strong style="padding-top: 89px; width: 235px;">Expomap</strong> </a></h2>
</div> </div>
<div class="header-body mcl"> <div class="header-body mcl">

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Loading…
Cancel
Save