parent
2c28e0a4e9
commit
c4a9451564
55 changed files with 22392 additions and 21013 deletions
@ -1,11 +1,12 @@ |
|||||||
# -*- coding: utf-8 -*- |
# -*- coding: utf-8 -*- |
||||||
from django.conf.urls import patterns, url |
from django.conf.urls import patterns, url |
||||||
|
from admin import CityListView |
||||||
|
|
||||||
urlpatterns = patterns('city.admin', |
urlpatterns = patterns('city.admin', |
||||||
url(r'^add/$', 'city_add'), |
url(r'^add/$', 'city_add'), |
||||||
url(r'^delete/(?P<url>.*)/$', 'city_delete'), |
url(r'^delete/(?P<url>.*)/$', 'city_delete'), |
||||||
url(r'^change/(.*)/$', 'city_change'), |
url(r'^change/(.*)/$', 'city_change'), |
||||||
url(r'^all/$', 'city_all'), |
url(r'^all/$', CityListView.as_view()), |
||||||
url(r'^search/$', 'search_city'), |
url(r'^search/$', 'search_city'), |
||||||
|
|
||||||
) |
) |
||||||
@ -1,11 +1,12 @@ |
|||||||
# -*- coding: utf-8 -*- |
# -*- coding: utf-8 -*- |
||||||
from django.conf.urls import patterns, include, url |
from django.conf.urls import patterns, include, url |
||||||
|
from admin import ExpositionListView |
||||||
|
|
||||||
urlpatterns = patterns('exposition.admin', |
urlpatterns = patterns('exposition.admin', |
||||||
url(r'^add.*/$', 'exposition_add'), |
url(r'^add.*/$', 'exposition_add'), |
||||||
url(r'^delete/(?P<url>.*)/$', 'exposition_delete'), |
url(r'^delete/(?P<url>.*)/$', 'exposition_delete'), |
||||||
url(r'^change/(?P<url>.*)/$', 'exposition_change'), |
url(r'^change/(?P<url>.*)/$', 'exposition_change'), |
||||||
url(r'^all/$', 'exposition_all'), |
url(r'^all/$', ExpositionListView.as_view()), |
||||||
url(r'^switch/(?P<url>.*)/(?P<action>.*)$', 'exposition_switch'), |
url(r'^switch/(?P<url>.*)/(?P<action>.*)$', 'exposition_switch'), |
||||||
url(r'^copy/(?P<url>.*)$', 'exposition_copy'), |
url(r'^copy/(?P<url>.*)$', 'exposition_copy'), |
||||||
) |
) |
||||||
|
|||||||
@ -0,0 +1,69 @@ |
|||||||
|
{% extends 'admin_list.html' %} |
||||||
|
|
||||||
|
{% block body %} |
||||||
|
|
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Фильтры</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
<form> |
||||||
|
{{ form }} |
||||||
|
|
||||||
|
<button type="submit" class="btn">Найти</button> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Список пользователей</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
<table class="table table-hover"> |
||||||
|
<thead> |
||||||
|
<tr> |
||||||
|
<th>id</th> |
||||||
|
<th>Email</th> |
||||||
|
<th>Полное имя</th> |
||||||
|
<th>Админ</th> |
||||||
|
<th>Переводчик</th> |
||||||
|
<th> </th> |
||||||
|
</tr> |
||||||
|
</thead> |
||||||
|
<tbody> |
||||||
|
{% for item in object_list %} |
||||||
|
|
||||||
|
<tr> |
||||||
|
<td>{{ item.id }}</td> |
||||||
|
<td>{{ item.email }}</td> |
||||||
|
<td>{{ item.get_full_name }}</td> |
||||||
|
{% if item.is_admin %} |
||||||
|
<td>Да</td> |
||||||
|
{% else %} |
||||||
|
<td> </td> |
||||||
|
{% endif %} |
||||||
|
|
||||||
|
{% if item.is_translator %} |
||||||
|
<td>Да</td> |
||||||
|
{% else %} |
||||||
|
<td> </td> |
||||||
|
{% endif %} |
||||||
|
<td class="center sorting_1"> |
||||||
|
<a class="btn btn-info" href="/admin/accounts/change/{% if item.url %}{{ item.url }}{% else %}{{ item.id }}{% endif %}"> |
||||||
|
<i class="icon-edit icon-white"></i> Изменить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
|
||||||
|
{% endfor %} |
||||||
|
</tbody> |
||||||
|
</table> |
||||||
|
|
||||||
|
</div> |
||||||
|
{# pagination #} |
||||||
|
{% include 'admin/includes/admin_pagination.html' with page_obj=object_list %} |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
{% endblock %} |
||||||
@ -0,0 +1,10 @@ |
|||||||
|
{% extends 'base.html' %} |
||||||
|
{% load static %} |
||||||
|
|
||||||
|
{% block scripts %} |
||||||
|
{# selects #} |
||||||
|
<link href="{% static 'js/select/select2.css' %}" rel="stylesheet"/> |
||||||
|
<script src="{% static 'js/select/select2.js' %}"></script> |
||||||
|
<script src="{% static 'custom_js/make_select.js' %}"></script> |
||||||
|
|
||||||
|
{% endblock %} |
||||||
@ -0,0 +1,56 @@ |
|||||||
|
{% extends 'admin_list.html' %} |
||||||
|
|
||||||
|
{% block body %} |
||||||
|
|
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Фильтры</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
<form> |
||||||
|
{{ form }} |
||||||
|
|
||||||
|
<button type="submit" class="btn">Найти</button> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Список городов</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
<table class="table table-hover"> |
||||||
|
<thead> |
||||||
|
<tr> |
||||||
|
<th>Город</th> |
||||||
|
<th>Страна</th> |
||||||
|
<th> </th> |
||||||
|
</tr> |
||||||
|
</thead> |
||||||
|
<tbody> |
||||||
|
{% for item in object_list %} |
||||||
|
<tr> |
||||||
|
<td>{{ item.name }}</td> |
||||||
|
<td>{% ifnotequal item.country.name None %}{{ item.country }} {% endifnotequal %}</td> |
||||||
|
<td class="center sorting_1"> |
||||||
|
<a class="btn btn-info" href="/admin/city/change/{{ item.url|lower }}"> |
||||||
|
<i class="icon-edit icon-white"></i> Изменить |
||||||
|
</a> |
||||||
|
<a class="btn btn-danger delete" href="/admin/city/delete/{{ item.url }}/"> |
||||||
|
<i class="icon-trash icon-white"></i> Удалить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
{% endfor %} |
||||||
|
</tbody> |
||||||
|
</table> |
||||||
|
<a class="btn btn-success" href="/admin/city/add"><i class="icon-plus-sign icon-white"></i> Добавить город</a> |
||||||
|
</div> |
||||||
|
|
||||||
|
{% include 'admin/includes/admin_pagination.html' with page_obj=object_list %} |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
{% endblock %} |
||||||
@ -0,0 +1,62 @@ |
|||||||
|
{% extends 'admin_list.html' %} |
||||||
|
|
||||||
|
{% block body %} |
||||||
|
|
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Фильтры</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
<form> |
||||||
|
{{ form }} |
||||||
|
|
||||||
|
<button type="submit" class="btn">Найти</button> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Список компаний</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
|
||||||
|
<table class="table table-hover"> |
||||||
|
<thead> |
||||||
|
<tr> |
||||||
|
<th>id</th> |
||||||
|
<th>Компания</th> |
||||||
|
|
||||||
|
<th> </th> |
||||||
|
</tr> |
||||||
|
</thead> |
||||||
|
<tbody> |
||||||
|
{% for item in object_list %} |
||||||
|
<tr> |
||||||
|
<td>{{ item.id }}</td> |
||||||
|
<td>{{ item.name }}</td> |
||||||
|
|
||||||
|
<td class="center sorting_1"> |
||||||
|
<a class="btn btn-info" href="/admin/company/change/{% if item.url %}{{ item.url }}{% else %}{{ item.id }}{% endif %}"> |
||||||
|
<i class="icon-edit icon-white"></i> Изменить |
||||||
|
</a> |
||||||
|
|
||||||
|
<a class="btn btn-danger" href="/admin/company/delete/{{ item.id }}"> |
||||||
|
<i class="icon-trash icon-white"></i> Удалить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
{% endfor %} |
||||||
|
</tbody> |
||||||
|
</table> |
||||||
|
<a class="btn btn-success" href="/admin/company/add"><i class="icon-plus-sign icon-white"></i> Добавить компанию</a> |
||||||
|
|
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
{# pagination #} |
||||||
|
{% include 'admin/includes/admin_pagination.html' with page_obj=object_list %} |
||||||
|
</div> |
||||||
|
|
||||||
|
|
||||||
|
{% endblock %} |
||||||
@ -0,0 +1,86 @@ |
|||||||
|
{% extends 'admin_list.html' %} |
||||||
|
|
||||||
|
{% load static %} |
||||||
|
{% block scripts %} |
||||||
|
|
||||||
|
<script src="{% static 'custom_js/event_switcher.js' %}"></script> |
||||||
|
|
||||||
|
{% endblock %} |
||||||
|
|
||||||
|
{% block body %} |
||||||
|
|
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Фильтры</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
<form> |
||||||
|
{{ form }} |
||||||
|
|
||||||
|
<button type="submit" class="btn">Найти</button> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Список конференций</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
|
||||||
|
<table class="table table-hover"> |
||||||
|
<thead> |
||||||
|
<tr> |
||||||
|
<th>Название</th> |
||||||
|
<th>Дата начала</th> |
||||||
|
<th> </th> |
||||||
|
</tr> |
||||||
|
</thead> |
||||||
|
<tbody> |
||||||
|
{% for item in object_list %} |
||||||
|
|
||||||
|
<tr> |
||||||
|
<td>{{ item.name }}</td> |
||||||
|
<td>{{ item.data_begin }}</td> |
||||||
|
|
||||||
|
<td> |
||||||
|
<a class="btn-small btn-warning off" style="{% if item.is_published %}{% else %}display: none;{% endif %}" |
||||||
|
href="/admin/conference/switch/{{ item.url }}/off"> |
||||||
|
Отключить |
||||||
|
</a> |
||||||
|
<a class="btn-small btn-success on" style="{% if item.is_published %}display: none;{% else %}{% endif %}" |
||||||
|
href="/admin/conference/switch/{{ item.url }}/on"> |
||||||
|
Включить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
|
||||||
|
<td class="center sorting_1"> |
||||||
|
<a class="btn-small btn-info" href="/admin/conference/change/{{ item.url|lower }}"> |
||||||
|
Изменить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
|
||||||
|
<td> |
||||||
|
<a class="btn-small btn-inverse" href="/admin/conference/copy/{{ item.url|lower }}"> |
||||||
|
Копировать |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
|
||||||
|
<td> |
||||||
|
<a class="btn btn-danger" href="/admin/conference/delete/{{ item.url|lower }}"> |
||||||
|
<i class="icon-trash icon-white"></i> Удалить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
|
||||||
|
</tr> |
||||||
|
|
||||||
|
{% endfor %} |
||||||
|
</tbody> |
||||||
|
</table> |
||||||
|
<a class="btn btn-success" href="/admin/conference/add"><i class="icon-plus-sign icon-white"></i> Добавить конференцию</a> |
||||||
|
</div> |
||||||
|
{# pagination #} |
||||||
|
{% include 'admin/includes/admin_pagination.html' with page_obj=object_list %} |
||||||
|
</div> |
||||||
|
{% endblock %} |
||||||
@ -0,0 +1,57 @@ |
|||||||
|
{% extends 'admin_list.html' %} |
||||||
|
|
||||||
|
{% block body %} |
||||||
|
|
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Фильтры</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
<form> |
||||||
|
{{ form }} |
||||||
|
|
||||||
|
<button type="submit" class="btn">Найти</button> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Список стран</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
<table class="table table-hover"> |
||||||
|
<thead> |
||||||
|
<tr> |
||||||
|
<th>id</th> |
||||||
|
<th>Страна</th> |
||||||
|
<th>Столица</th> |
||||||
|
<th> </th> |
||||||
|
</tr> |
||||||
|
</thead> |
||||||
|
<tbody> |
||||||
|
{% for item in object_list %} |
||||||
|
<tr> |
||||||
|
<td>{{ item.id }}</td> |
||||||
|
<td>{{ item.name }}</td> |
||||||
|
<td>{% ifnotequal item.capital None %}{{ item.capital }} {% endifnotequal %}</td> |
||||||
|
<td class="center sorting_1"> |
||||||
|
<a class="btn btn-info" href="/admin/country/change/{{ item.url|lower }}"> |
||||||
|
<i class="icon-edit icon-white"></i> Изменить |
||||||
|
</a> |
||||||
|
<a class="btn btn-danger delete" href="/admin/country/delete/{{ item.url }}/"> |
||||||
|
<i class="icon-trash icon-white"></i> Удалить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
|
||||||
|
</tr> |
||||||
|
{% endfor %} |
||||||
|
</tbody> |
||||||
|
</table> |
||||||
|
<a class="btn btn-success" href="/admin/country/add"><i class="icon-plus-sign icon-white"></i> Добавить страну</a> |
||||||
|
|
||||||
|
</div> |
||||||
|
{% include 'admin/includes/admin_pagination.html' with page_obj=object_list %} |
||||||
|
</div> |
||||||
|
{% endblock %} |
||||||
@ -0,0 +1,81 @@ |
|||||||
|
{% extends 'admin_list.html' %} |
||||||
|
|
||||||
|
{% block styles %} |
||||||
|
|
||||||
|
td a{ |
||||||
|
float:left; |
||||||
|
margin: 0 10px 10px 0 |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
{% endblock %} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{% block body %} |
||||||
|
|
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Фильтры</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
<form> |
||||||
|
{{ form }} |
||||||
|
|
||||||
|
<button type="submit" class="btn">Найти</button> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Список выставок</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
|
||||||
|
<table class="table table-hover"> |
||||||
|
<thead> |
||||||
|
<tr> |
||||||
|
<th>Название</th> |
||||||
|
<th>Дата начала</th> |
||||||
|
<th> </th> |
||||||
|
</tr> |
||||||
|
</thead> |
||||||
|
<tbody> |
||||||
|
{% for item in object_list %} |
||||||
|
|
||||||
|
<tr> |
||||||
|
<td>{{ item.name }}</td> |
||||||
|
<td>{{ item.data_begin }}</td> |
||||||
|
<td style="width: 200px; height:100px;"> |
||||||
|
<a class="btn-small btn-warning off" style="{% if item.is_published %}{% else %}display: none;{% endif %}" |
||||||
|
href="/admin/exposition/switch/{{ item.url }}/off"> |
||||||
|
Отключить |
||||||
|
</a> |
||||||
|
<a class="btn-small btn-success on" style="{% if item.is_published %}display: none;{% else %}{% endif %}" |
||||||
|
href="/admin/exposition/switch/{{ item.url }}/on"> |
||||||
|
Включить |
||||||
|
</a> |
||||||
|
<a class="btn-small btn-info" href="/admin/exposition/change/{{ item.url|lower }}"> |
||||||
|
Изменить |
||||||
|
</a> |
||||||
|
<a class="btn-small btn-inverse" href="/admin/exposition/copy/{{ item.url }}" id="copy"> |
||||||
|
Копировать |
||||||
|
</a> |
||||||
|
<a class="btn-small btn-danger" href="/admin/exposition/delete/{{ item.url|lower }}"> |
||||||
|
Удалить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
|
||||||
|
|
||||||
|
</tr> |
||||||
|
|
||||||
|
{% endfor %} |
||||||
|
</tbody> |
||||||
|
</table> |
||||||
|
<a class="btn btn-success" href="/admin/exposition/add"><i class="icon-plus-sign icon-white"></i> Добавить выставку</a> |
||||||
|
</div> |
||||||
|
{# pagination #} |
||||||
|
{% include 'admin/includes/admin_pagination.html' with page_obj=object_list %} |
||||||
|
</div> |
||||||
|
{% endblock %} |
||||||
@ -0,0 +1,58 @@ |
|||||||
|
{% extends 'admin_list.html' %} |
||||||
|
|
||||||
|
{% block body %} |
||||||
|
|
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Фильтры</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
<form> |
||||||
|
{{ form }} |
||||||
|
|
||||||
|
<button type="submit" class="btn">Найти</button> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Список организаторов</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
|
||||||
|
<table class="table table-hover"> |
||||||
|
<thead> |
||||||
|
<tr> |
||||||
|
<th>id</th> |
||||||
|
<th>Организатор</th> |
||||||
|
<th> </th> |
||||||
|
</tr> |
||||||
|
</thead> |
||||||
|
<tbody> |
||||||
|
{% for item in object_list %} |
||||||
|
<tr> |
||||||
|
<td>{{ item.id }}</td> |
||||||
|
<td>{{ item.name }}</td> |
||||||
|
<td class="center sorting_1"> |
||||||
|
<a class="btn btn-info" href="/admin/organiser/change/{{ item.id }}"> |
||||||
|
<i class="icon-edit icon-white"></i> Изменить |
||||||
|
</a> |
||||||
|
|
||||||
|
<a class="btn btn-danger" href="/admin/organiser/delete/{{ item.id }}"> |
||||||
|
<i class="icon-trash icon-white"></i> Удалить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
{% endfor %} |
||||||
|
</tbody> |
||||||
|
</table> |
||||||
|
<a class="btn btn-success" href="/admin/organiser/add"><i class="icon-plus-sign icon-white"></i> Добавить организатора</a> |
||||||
|
</div> |
||||||
|
{# pagination #} |
||||||
|
{% include 'admin/includes/admin_pagination.html' with page_obj=object_list %} |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
{% endblock %} |
||||||
@ -0,0 +1,65 @@ |
|||||||
|
{% extends 'admin_list.html' %} |
||||||
|
|
||||||
|
{% block body %} |
||||||
|
|
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Фильтры</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
<form> |
||||||
|
{{ form }} |
||||||
|
|
||||||
|
<button type="submit" class="btn">Найти</button> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Места проведения конференций</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
|
||||||
|
<table class="table table-hover"> |
||||||
|
<thead> |
||||||
|
<tr> |
||||||
|
<th>Название</th> |
||||||
|
<th>Страна</th> |
||||||
|
<th>Город</th> |
||||||
|
<th> </th> |
||||||
|
</tr> |
||||||
|
</thead> |
||||||
|
<tbody> |
||||||
|
{% for item in object_list %} |
||||||
|
<tr> |
||||||
|
<td>{{ item.name }}</td> |
||||||
|
<td>{% ifnotequal item.country None %}{{ item.country }} {% endifnotequal %}</td> |
||||||
|
<td>{% ifnotequal item.city None %}{{ item.city }} {% endifnotequal %}</td> |
||||||
|
<td class="center sorting_1"> |
||||||
|
<a class="btn-small btn-info" href="/admin/place_conference/change/{{ item.url|lower }}"> |
||||||
|
Изменить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
<td class="center sorting_1"> |
||||||
|
<a class="btn-small btn-inverse" href="/admin/place_conference/copy/{{ item.url|lower }}"> |
||||||
|
Копировать |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
<td> |
||||||
|
<a class="btn-small btn-danger" href="/admin/place_conference/delete/{{ item.url|lower }}"> |
||||||
|
Удалить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
{% endfor %} |
||||||
|
</tbody> |
||||||
|
</table> |
||||||
|
<a class="btn btn-success" href="/admin/place_conference/add"><i class="icon-plus-sign icon-white"></i> Добавить конферец зал</a> |
||||||
|
</div> |
||||||
|
{# pagination #} |
||||||
|
{% include 'admin/includes/admin_pagination.html' with page_obj=object_list %} |
||||||
|
</div> |
||||||
|
|
||||||
|
{% endblock %} |
||||||
@ -0,0 +1,66 @@ |
|||||||
|
{% extends 'admin_list.html' %} |
||||||
|
|
||||||
|
{% block body %} |
||||||
|
|
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Фильтры</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
<form> |
||||||
|
{{ form }} |
||||||
|
|
||||||
|
<button type="submit" class="btn">Найти</button> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Места проведения выставок</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
<table class="table table-hover"> |
||||||
|
<thead> |
||||||
|
<tr> |
||||||
|
<th>Название</th> |
||||||
|
<th>Страна</th> |
||||||
|
<th>Город</th> |
||||||
|
<th> </th> |
||||||
|
</tr> |
||||||
|
</thead> |
||||||
|
<tbody> |
||||||
|
{% for item in object_list %} |
||||||
|
<tr> |
||||||
|
<td>{{ item.name }}</td> |
||||||
|
<td>{% ifnotequal item.country None %}{{ item.country }} {% endifnotequal %}</td> |
||||||
|
<td>{% ifnotequal item.city None %}{{ item.city }} {% endifnotequal %}</td> |
||||||
|
<td class="center sorting_1"> |
||||||
|
<a class="btn-small btn-info" href="/admin/place_exposition/change/{{ item.url|lower }}"> |
||||||
|
Изменить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
<td class="center sorting_1"> |
||||||
|
<a class="btn-small btn-inverse" href="/admin/place_exposition/copy/{{ item.url|lower }}"> |
||||||
|
Копировать |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
|
||||||
|
<td> |
||||||
|
<a class="btn-small btn-danger" href="/admin/place_exposition/delete/{{ item.url|lower }}"> |
||||||
|
Удалить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
{% endfor %} |
||||||
|
</tbody> |
||||||
|
</table> |
||||||
|
<a class="btn btn-success" href="/admin/place_exposition/add"><i class="icon-plus-sign icon-white"></i> Добавить выставочный центр</a> |
||||||
|
</div> |
||||||
|
{# pagination #} |
||||||
|
{% include 'admin/includes/admin_pagination.html' with page_obj=object_list %} |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
{% endblock %} |
||||||
@ -0,0 +1,87 @@ |
|||||||
|
{% extends 'admin_list.html' %} |
||||||
|
|
||||||
|
{% load static %} |
||||||
|
{% block scripts %} |
||||||
|
|
||||||
|
<script src="{% static 'custom_js/event_switcher.js' %}"></script> |
||||||
|
|
||||||
|
{% endblock %} |
||||||
|
|
||||||
|
{% block body %} |
||||||
|
|
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Фильтры</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
<form> |
||||||
|
{{ form }} |
||||||
|
|
||||||
|
<button type="submit" class="btn">Найти</button> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Список семинаров</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
|
||||||
|
<table class="table table-hover"> |
||||||
|
<thead> |
||||||
|
<tr> |
||||||
|
<th>Название</th> |
||||||
|
<th>Дата начала</th> |
||||||
|
<th> </th> |
||||||
|
</tr> |
||||||
|
</thead> |
||||||
|
<tbody> |
||||||
|
{% for item in object_list %} |
||||||
|
|
||||||
|
<tr> |
||||||
|
<td>{{ item.name }}</td> |
||||||
|
<td>{{ item.data_begin }}</td> |
||||||
|
|
||||||
|
<td> |
||||||
|
<a class="btn-small btn-warning off" style="{% if item.is_published %}{% else %}display: none;{% endif %}" |
||||||
|
href="/admin/seminar/switch/{{ item.url }}/off"> |
||||||
|
Отключить |
||||||
|
</a> |
||||||
|
<a class="btn-small btn-success on" style="{% if item.is_published %}display: none;{% else %}{% endif %}" |
||||||
|
href="/admin/seminar/switch/{{ item.url }}/on"> |
||||||
|
Включить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
|
||||||
|
<td class="center sorting_1"> |
||||||
|
<a class="btn-small btn-info" href="/admin/seminar/change/{{ item.url|lower }}"> |
||||||
|
Изменить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
|
||||||
|
<td> |
||||||
|
<a class="btn-small btn-inverse" href="/admin/seminar/copy/{{ item.url|lower }}"> |
||||||
|
Удалить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
|
||||||
|
<td> |
||||||
|
<a class="btn-small btn-danger" href="/admin/seminar/delete/{{ item.url|lower }}"> |
||||||
|
Удалить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
|
||||||
|
</tr> |
||||||
|
|
||||||
|
{% endfor %} |
||||||
|
</tbody> |
||||||
|
</table> |
||||||
|
<a class="btn btn-success" href="/admin/seminar/add"><i class="icon-plus-sign icon-white"></i> Добавить семинар</a> |
||||||
|
</div> |
||||||
|
{# pagination #} |
||||||
|
{% include 'admin/includes/admin_pagination.html' with page_obj=object_list %} |
||||||
|
</div> |
||||||
|
|
||||||
|
{% endblock %} |
||||||
@ -0,0 +1,70 @@ |
|||||||
|
{% extends 'admin_list.html' %} |
||||||
|
|
||||||
|
{% block body %} |
||||||
|
|
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Фильтры</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
<form> |
||||||
|
{{ form }} |
||||||
|
|
||||||
|
<button type="submit" class="btn">Найти</button> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Список тегов</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
|
||||||
|
<table class="table table-hover"> |
||||||
|
<thead> |
||||||
|
<tr> |
||||||
|
<th>id</th> |
||||||
|
<th>Название</th> |
||||||
|
<th>Тема</th> |
||||||
|
<th> </th> |
||||||
|
</tr> |
||||||
|
</thead> |
||||||
|
<tbody> |
||||||
|
{% for item in object_list %} |
||||||
|
|
||||||
|
<tr> |
||||||
|
<td>{{ item.id }}</td> |
||||||
|
<td>{{ item.name }}</td> |
||||||
|
<td>{{ item.theme }}</td> |
||||||
|
|
||||||
|
<td class="center sorting_1"> |
||||||
|
<a class="btn-small btn-info" href="/admin/theme/tag/change/{{ item.id }}"> |
||||||
|
Изменить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
|
||||||
|
<td class="center sorting_1"> |
||||||
|
<a class="btn-small btn-inverse" href="/admin/theme/tag/copy/{{ item.id }}"> |
||||||
|
Копировать |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
|
||||||
|
<td> |
||||||
|
<a class="btn-small btn-danger delete" href="/admin/theme/tag/delete/{{ item.id }}/"> |
||||||
|
Удалить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
|
||||||
|
</tr> |
||||||
|
|
||||||
|
{% endfor %} |
||||||
|
</tbody> |
||||||
|
</table> |
||||||
|
<a class="btn btn-success" href="/admin/theme/tag/add"><i class="icon-plus-sign icon-white"></i> Добавить тег</a> |
||||||
|
</div> |
||||||
|
{# pagination #} |
||||||
|
{% include 'admin/includes/admin_pagination.html' with page_obj=object_list %} |
||||||
|
</div> |
||||||
|
{% endblock %} |
||||||
@ -0,0 +1,66 @@ |
|||||||
|
{% extends 'admin_list.html' %} |
||||||
|
|
||||||
|
{% block body %} |
||||||
|
|
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Фильтры</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
<form> |
||||||
|
{{ form }} |
||||||
|
|
||||||
|
<button type="submit" class="btn">Найти</button> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Список тем</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
<table class="table table-hover"> |
||||||
|
<thead> |
||||||
|
<tr> |
||||||
|
<th>id</th> |
||||||
|
<th>Название</th> |
||||||
|
<th> </th> |
||||||
|
</tr> |
||||||
|
</thead> |
||||||
|
<tbody> |
||||||
|
{% for item in object_list %} |
||||||
|
|
||||||
|
<tr> |
||||||
|
<td>{{ item.id }}</td> |
||||||
|
<td>{{ item.name }}</td> |
||||||
|
<td class="center sorting_1"> |
||||||
|
<a class="btn-small btn-info" href="/admin/theme/theme/change/{{ item.id }}"> |
||||||
|
Изменить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
|
||||||
|
<td> |
||||||
|
<a class="btn-small btn-inverse" href="/admin/theme/theme/copy/{{ item.id }}/"> |
||||||
|
Копировать |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
|
||||||
|
<td> |
||||||
|
<a class="btn-small btn-danger delete" href="/admin/theme/theme/delete/{{ item.id }}/"> |
||||||
|
Удалить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
|
||||||
|
</tr> |
||||||
|
|
||||||
|
{% endfor %} |
||||||
|
</tbody> |
||||||
|
</table> |
||||||
|
<a class="btn btn-success" href="/admin/theme/theme/add"><i class="icon-plus-sign icon-white"></i> Добавить тематику</a> |
||||||
|
</div> |
||||||
|
{# pagination #} |
||||||
|
{% include 'admin/includes/admin_pagination.html' with page_obj=object_list %} |
||||||
|
</div> |
||||||
|
{% endblock %} |
||||||
@ -0,0 +1,64 @@ |
|||||||
|
{% extends 'admin_list.html' %} |
||||||
|
|
||||||
|
{% block body %} |
||||||
|
|
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Фильтры</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
<form> |
||||||
|
{{ form }} |
||||||
|
|
||||||
|
<button type="submit" class="btn">Найти</button> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Список переводчиков</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
|
||||||
|
<table class="table table-hover"> |
||||||
|
<thead> |
||||||
|
<tr> |
||||||
|
<th>id</th> |
||||||
|
<th>Пользователь</th> |
||||||
|
<th>Страна</th> |
||||||
|
<th> </th> |
||||||
|
</tr> |
||||||
|
</thead> |
||||||
|
<tbody> |
||||||
|
{% for item in object_list %} |
||||||
|
|
||||||
|
<tr> |
||||||
|
<td>{{ item.id }}</td> |
||||||
|
{% for u in item.user.all %} |
||||||
|
<td>{{ u }}</td> |
||||||
|
<td>{{ u.country }}</td> |
||||||
|
{% endfor %} |
||||||
|
|
||||||
|
<td class="center sorting_1"> |
||||||
|
<a class="btn btn-info" href="/admin/translator/change/{{ item.id }}"> |
||||||
|
<i class="icon-edit icon-white"></i> Изменить |
||||||
|
</a> |
||||||
|
|
||||||
|
<a class="btn btn-danger delete" href="/admin/translator/delete/{{ item.id }}/"> |
||||||
|
<i class="icon-trash icon-white"></i> Удалить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
|
||||||
|
</tr> |
||||||
|
|
||||||
|
{% endfor %} |
||||||
|
</tbody> |
||||||
|
</table> |
||||||
|
<a class="btn btn-success" href="/admin/translator/add"><i class="icon-plus-sign icon-white"></i> Добавить перводчика</a> |
||||||
|
</div> |
||||||
|
{# pagination #} |
||||||
|
{% include 'admin/includes/admin_pagination.html' with page_obj=object_list %} |
||||||
|
</div> |
||||||
|
{% endblock %} |
||||||
@ -0,0 +1,89 @@ |
|||||||
|
{% extends 'admin_list.html' %} |
||||||
|
|
||||||
|
{% load static %} |
||||||
|
|
||||||
|
{% block scripts %} |
||||||
|
|
||||||
|
<script src="{% static 'custom_js/event_switcher.js' %}"></script> |
||||||
|
|
||||||
|
{% endblock %} |
||||||
|
|
||||||
|
{% block body %} |
||||||
|
|
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Фильтры</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
<form> |
||||||
|
{{ form }} |
||||||
|
|
||||||
|
<button type="submit" class="btn">Найти</button> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="box span8"> |
||||||
|
|
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-arrow-down"></i>Список вебинаров</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
|
||||||
|
<table class="table table-hover"> |
||||||
|
<thead> |
||||||
|
<tr> |
||||||
|
<th>Название</th> |
||||||
|
<th>Дата</th> |
||||||
|
<th> </th> |
||||||
|
</tr> |
||||||
|
</thead> |
||||||
|
<tbody> |
||||||
|
{% for item in object_list %} |
||||||
|
|
||||||
|
<tr> |
||||||
|
<td>{{ item.name }}</td> |
||||||
|
<td>{{ item.data_begin }}</td> |
||||||
|
|
||||||
|
<td> |
||||||
|
<a class="btn-small btn-warning off" style="{% if item.is_published %}{% else %}display: none;{% endif %}" |
||||||
|
href="/admin/webinar/switch/{{ item.url }}/off"> |
||||||
|
Отключить |
||||||
|
</a> |
||||||
|
<a class="btn-small btn-success on" style="{% if item.is_published %}display: none;{% else %}{% endif %}" |
||||||
|
href="/admin/webinar/switch/{{ item.url }}/on"> |
||||||
|
Включить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
|
||||||
|
<td class="center sorting_1"> |
||||||
|
<a class="btn-small btn-info" href="/admin/webinar/change/{{ item.url|lower }}"> |
||||||
|
Изменить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
|
||||||
|
<td> |
||||||
|
<a class="btn-small btn-inverse" href="/admin/webinar/copy/{{ item.url|lower }}"> |
||||||
|
Копировать |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
|
||||||
|
<td> |
||||||
|
<a class="btn-small btn-danger" href="/admin/webinar/delete/{{ item.url|lower }}"> |
||||||
|
Удалить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
|
||||||
|
</tr> |
||||||
|
|
||||||
|
{% endfor %} |
||||||
|
</tbody> |
||||||
|
</table> |
||||||
|
<a class="btn btn-success" href="/admin/webinar/add"><i class="icon-plus-sign icon-white"></i> Добавить вебинар</a> |
||||||
|
</div> |
||||||
|
{# pagination #} |
||||||
|
{% include 'admin/includes/admin_pagination.html' with page_obj=object_list %} |
||||||
|
</div> |
||||||
|
|
||||||
|
{% endblock %} |
||||||
@ -1,61 +1,37 @@ |
|||||||
{% load i18n %} |
|
||||||
{% load static %} |
{% load static %} |
||||||
|
{% load i18n %} |
||||||
<div id="pw-gallery" class="popup-gallery-container"> |
<div id="pw-gallery" class="popup-gallery-container"> |
||||||
<div class="pg-container-wrap"> |
<!--<div class="pg-container-wrap">--> |
||||||
<div class="popup-gallery-outer"> |
<!--<div class="popup-gallery-outer">--> |
||||||
<div class="popup-gallery"> |
<div class="popup-gallery"> |
||||||
<a class="pg-close"></a> |
<a class="pg-close"></a> |
||||||
<div class="pg-wrap clearfix"> |
<div class="pg-wrap clearfix"> |
||||||
<div class="pg-photos"> |
<div class="pg-photos"> |
||||||
|
<img src="/media/photologue/cache/ADNEC-Marina-View-1-with-helipad_display.jpg" alt=""/> |
||||||
<img src="{{ photo.get_display_url}}" alt="{{ photo.title }}" class="photoTag" |
<!--/media/photologue/cache/ADNEC-Marina-View-1-with-helipad_display.jpg--> |
||||||
data-user-id="25" data-image-id="150" data-album-id="150"/> |
<!--TODO: тут должна грузится картинка--> |
||||||
|
|
||||||
</div> |
</div> |
||||||
<div class="pg-info"> |
<div class="pg-info pg-only-text"> |
||||||
<div class="pgi-wrap scroll-container"> |
<div class="pgi-wrap scroll-container"> |
||||||
<div class="pg-photo-info"> |
<div class="pg-photo-info"> |
||||||
|
|
||||||
<div class="pg-photo-title">{{ photo.title }}</div> |
<div class="pg-photo-title">{{ photo.title }}Лазерный период: основные моменты</div> |
||||||
<div class="pg-photo-text"></div> |
<div class="pg-photo-text"> |
||||||
<hr /> |
Проекция абсолютной угловой скорости на оси системы координат xyz последовательно переворачивает поплавковый угол крена. Непосредственно из законов сохранения следует, что точность курса опасна. Подвес, согласно третьему закону Ньютона, представляет собой гироскопический маятник, что явно следует из прецессионных уравнений движения. |
||||||
<div class="pg-photo-descr"> |
|
||||||
<h3>{% trans 'На фотографии отмечены' %}:</h3> |
|
||||||
</div> |
</div> |
||||||
<hr /> |
<hr /> |
||||||
|
|
||||||
</div> |
</div> |
||||||
<div class="pg-comments"> |
|
||||||
<div class="pgc-title">{% trans 'Коментарии' %}:</div> |
|
||||||
<div class="pgc-body"> |
|
||||||
<ul> |
|
||||||
|
|
||||||
</ul> |
|
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
{% if user.is_authenticated %} |
|
||||||
<form class="pgc-form"> |
|
||||||
<hr /> |
|
||||||
<div class="pgc-field"> |
|
||||||
<label for="comment">{% trans 'Оставьте свой комментарий' %}:</label> |
|
||||||
<textarea name="comment" id="comment" cols="30" rows="10"></textarea> |
|
||||||
</div> |
|
||||||
<div class="pgc-buttons"> |
|
||||||
<button type="submit" class="icon-check">ок</button> |
|
||||||
<a class="button blue icon-tag addTag" id="externalLink" href="#">{% trans 'отметить человека' %}</a> |
|
||||||
</div> |
|
||||||
</form> |
|
||||||
{% endif %} |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<div class="pg-photos-controls"> |
<div class="pg-photos-controls"> |
||||||
<a class="pgpc-prev" href="#"><</a> |
<a class="pgpc-prev" href="#"><</a> |
||||||
<a class="pgpc-next" href="#">></a> |
<a class="pgpc-next" href="#">></a> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
</div> |
<!--</div>--> |
||||||
</div> |
<!--</div>--> |
||||||
</div> |
</div> |
||||||
|
|
||||||
|
|||||||
@ -0,0 +1,149 @@ |
|||||||
|
var EXPO = EXPO || {}; //isolated namespace
|
||||||
|
//общий для всех страниц модуль Функционал общий для всех страниц
|
||||||
|
// module requires JQuery library
|
||||||
|
EXPO.placePhoto = (function() { |
||||||
|
// variables
|
||||||
|
var that = {}; |
||||||
|
that.settings = { |
||||||
|
|
||||||
|
}; //default module setting
|
||||||
|
that.lang ={}; |
||||||
|
//dependences
|
||||||
|
|
||||||
|
//private
|
||||||
|
// constructor for popup window on gallery page
|
||||||
|
var ModalBox = function(){ |
||||||
|
// object properties
|
||||||
|
this.rawData; |
||||||
|
this.currentId; |
||||||
|
// привязка к html данным шаблона формы
|
||||||
|
this.control; |
||||||
|
}; |
||||||
|
//methods for ModalBox object
|
||||||
|
ModalBox.prototype = { |
||||||
|
//some kind of 'protected' methods
|
||||||
|
_getAjax: function () { |
||||||
|
|
||||||
|
}, |
||||||
|
_renderSlide: function () { |
||||||
|
|
||||||
|
}, |
||||||
|
_getId: function () { |
||||||
|
|
||||||
|
}, |
||||||
|
//public methods
|
||||||
|
close: function () { |
||||||
|
|
||||||
|
}, |
||||||
|
open: function () { |
||||||
|
|
||||||
|
}, |
||||||
|
nextSlide:function () { |
||||||
|
|
||||||
|
}, |
||||||
|
prevSlide: function () { |
||||||
|
|
||||||
|
}, |
||||||
|
// method to get sliderPopup visible and pass to modalBox first initial id and make some init routine
|
||||||
|
show: function () { |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
}; |
||||||
|
// methods
|
||||||
|
//инициализация общих свойств
|
||||||
|
that.init = function(options) { |
||||||
|
// settings extending
|
||||||
|
$.extend(this.lang, options.lang); |
||||||
|
options.lang = null; |
||||||
|
$.extend(this.settings, options); |
||||||
|
// begin of initialization
|
||||||
|
var self = this; |
||||||
|
$(function () { |
||||||
|
$('a.open-photo').on('click', function () { |
||||||
|
var $popupGallery = $('#pw-gallery'); |
||||||
|
// configure image
|
||||||
|
var $img = $(this).find('img').clone(); |
||||||
|
$img.addClass('photoTag'); |
||||||
|
|
||||||
|
$img_block = $popupGallery.find('.pg-photos'); |
||||||
|
$img_block.html($img); |
||||||
|
|
||||||
|
// add id for image description
|
||||||
|
var id = 'imgid'+$img.attr('data-image-id') |
||||||
|
$popupGallery.find('.pg-photo-descr').attr('id', id); |
||||||
|
$popupGallery.find('.pg-photo-descr ul').remove(); |
||||||
|
|
||||||
|
$popupGallery.find('.pg-photo-title').html($img.attr('data-image-name')) |
||||||
|
$popupGallery.find('.pg-photo-text').html($img.attr('data-image-description')) |
||||||
|
// end configure image
|
||||||
|
|
||||||
|
// Список людей для автокомплита:
|
||||||
|
|
||||||
|
$.getJSON('/accounts/get-tag-users/',function(json){ |
||||||
|
window.photoTagData = json; |
||||||
|
}); |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// отметки
|
||||||
|
$('.photoTag').photoTag({ |
||||||
|
externalAddTagLinks: { |
||||||
|
bind: true, |
||||||
|
selector: ".addTag" |
||||||
|
}, |
||||||
|
requestTagsUrl: '/photo/existing-tags/', |
||||||
|
deleteTagsUrl: '/photo/delete-tag/', |
||||||
|
addTagUrl: '/photo/add-tag/', |
||||||
|
parametersForNewTag: { |
||||||
|
name: { |
||||||
|
parameterKey: 'name', |
||||||
|
isAutocomplete: true, |
||||||
|
label: 'Введите имя:' |
||||||
|
} |
||||||
|
} |
||||||
|
}); |
||||||
|
// ---------------------------------------
|
||||||
|
|
||||||
|
var $popupOuter = $('div.popup-gallery-outer', $popupGallery); |
||||||
|
var $closePopup = $('a.pg-close', $popupGallery); |
||||||
|
var $prevSlide = $('a.pgpc-prev', $popupGallery); |
||||||
|
var $nextSlide = $('a.pgpc-next', $popupGallery); |
||||||
|
|
||||||
|
|
||||||
|
function closeGallery() { |
||||||
|
$popupGallery.fadeOut(300, function () { |
||||||
|
$body.removeClass('no-scroll'); |
||||||
|
}); |
||||||
|
return false; |
||||||
|
} |
||||||
|
|
||||||
|
$closePopup.on('click', closeGallery); |
||||||
|
$popupOuter.on('click', function (event) { |
||||||
|
var targetObj = $(event.target); |
||||||
|
if (targetObj.parents().filter('.popup-gallery').length < 1) { |
||||||
|
closeGallery() |
||||||
|
} |
||||||
|
}); |
||||||
|
|
||||||
|
$prevSlide.on('click', function () { |
||||||
|
return false; |
||||||
|
}); |
||||||
|
|
||||||
|
$nextSlide.on('click', function () { |
||||||
|
return false; |
||||||
|
}); |
||||||
|
|
||||||
|
$body.addClass('no-scroll'); |
||||||
|
$popupGallery.fadeIn(300); |
||||||
|
|
||||||
|
return false; |
||||||
|
}); |
||||||
|
|
||||||
|
}); |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}; |
||||||
|
return that; |
||||||
|
}()); |
||||||
Loading…
Reference in new issue