exposition place fix

remotes/origin/HEAD
ya_dim4ik 9 years ago
parent 48cd5f341a
commit 1447424a74
  1. 2
      apps/accounts/views.py
  2. 3
      apps/place_exposition/models.py
  3. 10
      static/client/css/main.css
  4. 2
      static/client/css_min/main.min.css
  5. 3
      static/client/js/main.js
  6. 3
      static/client/js/vendor.js
  7. 2
      static/client/js_min/vendor.min.js
  8. 4
      static/mailing_settings/css/main.css
  9. 52
      static/mailing_settings/js/test_data.js
  10. 5
      templates/client/includes/exposition/expo_paid.html
  11. 7
      templates/client/includes/exposition/exposition_object.html
  12. 4
      templates/client/place/place_detail.html

@ -35,6 +35,8 @@ from .edit_forms import AvatarForm, NameForm, HomeForm, WorkForm, AboutCompanyFo
WebPageForm, SocialForm, AboutForm
# FIXME: сделать рефакторинг + если не подтверждена подписка,
# при заходе на стр настройки рассылки - 500
class SettingsView(CreateUpdateView):
"""
display template with user settings like:

@ -166,8 +166,7 @@ class PlaceExposition(TranslatableModel, ExpoMixin):
return self.catalog
def get_permanent_url(self):
url = '%s%s/'%(self.catalog, self.url)
return url
return reverse('place_detail', args=[self.url])
def get_logo(self):
return self.logo

@ -4030,6 +4030,10 @@ form.s-message {
float: right;
}
.m-article .expo-place-events .sect-title a.orange{
color: #ff6600;
}
.cl-item .cl-item-wrap>a {
color: #464646;
text-decoration: none
@ -5002,6 +5006,10 @@ dl.add-info dd a:hover {
}
.i-address .place_link {
color: #464646;
text-decoration: none;
}
.i-address .place_link:hover{
color: #ff6600;
}
.i-address header .address {
margin-right: 10px
@ -5015,7 +5023,7 @@ dl.add-info dd a:hover {
border-bottom: 1px dashed;
margin-left: 15px
}
.i-info .i-address.map-opened header a.toggle-map {
.i-info .i-address.map-opened .show-map a.toggle-map {
display: none
}
.i-info .i-address a.toggle-map:hover {

File diff suppressed because one or more lines are too long

@ -794,8 +794,9 @@ function placeInput(width){
mapInit();
$mapCanvas.data('init', true);
}
$tContainer.addClass('map-opened');
//$tContainer.addClass('map-opened');
});
$tContainer.addClass('map-opened');
} else {
$mapWrap
.stop(true, true)

@ -4473,8 +4473,9 @@ function placeInput(width){
mapInit();
$mapCanvas.data('init', true);
}
$tContainer.addClass('map-opened');
//$tContainer.addClass('map-opened');
});
$tContainer.addClass('map-opened');
} else {
$mapWrap
.stop(true, true)

File diff suppressed because one or more lines are too long

@ -604,6 +604,8 @@ h3{
padding: 0 0 0 14px;
color: #464646;
position: relative;
font-weight: normal;
-webkit-font-smoothing: antialiased;
}
.modal_checkboxes .trigger:hover{
@ -625,6 +627,8 @@ h3{
.modal_checkboxes .label{
padding-left: 14px;
font-weight: normal;
-webkit-font-smoothing: antialiased;
}
.buttons_block{

@ -0,0 +1,52 @@
var data = {
94: {
id: 94,
text: 'АПК и пищевая индустрия',
checked: true,
tags: [
{id: 1659, checked: false, text: 'Агробизнес'},
{id: 3904, checked: false, text: "Выпечка"},
{id: 3362, checked: false, text: "Животноводство"},
{id: 1612, checked: false, text: "Логистические системы в АПК"},
{id: 3897, checked: false, text: "Масла и жиры"},
{id: 1663, checked: false, text: "Мясная промышленность"},
{id: 1721, checked: false, text: "Отраслевая торговля"},
{id: 5299, checked: false, text: "Передовые технологии"},
{id: 1662, checked: false, text: "Пищевая промышленность"},
{id: 5399, checked: false, text: "Продовольственная безопасность"},
{
id: 2862,
checked: false,
text: "Сельскохозяйственное оборудование"
},
{id: 5282, checked: false, text: "Сельскохозяйственные культуры"},
{id: 2774, checked: false, text: "Соевые продукты"},
{id: 3900, checked: false, text: "Экологически чистые продукты"}
]
},
1: {
id: 1,
text: 'Авиакосмическая промышленность',
checked: false,
tags: [
{id: 1898, checked: false, text: "Авиакосмическая промышленность"},
{id: 181, checked: false, text: "Авиаперевозки"},
{id: 1032, checked: false, text: "Авиаперевозчики"},
{id: 2472, checked: false, text: "Авиационная безопасность"},
{id: 4936, checked: false, text: "Авиационная промышленность"},
]
},
2: {
id: 2,
text: 'Автомобили и мотоциклы',
checked: false,
tags: [
{id: 21, checked: false, text: "Автобусы"},
{id: 935, checked: false, text: "Автозаправочные станции"},
{id: 22, checked: false, text: "Автозапчасти"},
{id: 91, checked: false, text: "Автомеханика"},
{id: 637, checked: false, text: "Автомобили"},
{id: 1018, checked: false, text: "Автомобильная электроника"}
]
}
};

@ -69,10 +69,11 @@
{{ exposition.place.name }}
{% endif %}
</div>
&nbsp;&nbsp;&nbsp;&nbsp;
<div class="show-map"><a class="toggle-map" href="#">{% trans 'Раскрыть карту' %}</a></div>
{# <div class="show-map"><a class="toggle-map" href="#">{% trans 'Раскрыть карту' %}</a></div>#}
</header>
<div class="show-map"><a class="toggle-map" href="#">{% trans 'Раскрыть карту' %}</a></div>
<div class="i-map">
<div class="close-map"><a class="toggle-map" href="#">{% trans 'Скрыть карту' %}</a>
</div>

@ -63,15 +63,16 @@
<div class="address">
{{ exposition.place.country }}, {{ exposition.place.city }},
{% if exposition.place.web_page %}
<a href="{{ exposition.place.web_page }}" class="place_link">{{ exposition.place.name }}</a>
<a href="{{ exposition.place.get_permanent_url }}" class="place_link">{{ exposition.place.name }}</a>
{% else %}
{{ exposition.place.name }}
{% endif %}
</div>
&nbsp;&nbsp;&nbsp;&nbsp;
<div class="show-map"><a class="toggle-map" href="#">{% trans 'Раскрыть карту' %}</a></div>
{# <div class="show-map"><a class="toggle-map" href="#">{% trans 'Раскрыть карту' %}</a></div>#}
</header>
<div class="show-map"><a class="toggle-map" href="#">{% trans 'Раскрыть карту' %}</a></div>
<div class="i-map">
<div class="close-map">
<a class="toggle-map" href="#">{% trans 'Скрыть карту' %}</a>

@ -212,7 +212,9 @@
{% if object.events %}
<div class="i-events-list expo-place-events">
<h2 class="sect-title">
{% trans 'Список событий' %}
<a href="{% url 'place_exposition_list' object.url %}" class="orange">
{% trans 'События' %} {{ object.name|safe }}
</a>
<a href="{% url 'place_exposition_list' object.url %}" class="button">{% trans 'Все события' %}</a>
</h2>

Loading…
Cancel
Save