@ -1,10 +0,0 @@ |
|||||||
from django.conf.urls import patterns, url |
|
||||||
from admin import BlogCreate |
|
||||||
|
|
||||||
urlpatterns = patterns('', |
|
||||||
url(r'^add/$', BlogCreate.as_view()), |
|
||||||
#url(r'^delete/(?P<url>.*)/$', 'article_delete'), |
|
||||||
#url(r'^change/(.*)/$', 'article_change'), |
|
||||||
#url(r'^copy/(.*)/$', 'article_copy'), |
|
||||||
#url(r'^all/$', 'article_all'), |
|
||||||
) |
|
||||||
@ -1,10 +1,19 @@ |
|||||||
# -*- coding: utf-8 -*- |
# -*- coding: utf-8 -*- |
||||||
from django.conf.urls import patterns, url |
from django.conf.urls import patterns, url |
||||||
|
from admin import BlogList, BlogView, NewsList, NewsView |
||||||
|
|
||||||
urlpatterns = patterns('article.admin', |
urlpatterns = patterns('article.admin', |
||||||
|
|
||||||
url(r'^add/$', 'article_add'), |
url(r'^add/$', 'article_add'), |
||||||
url(r'^delete/(?P<url>.*)/$', 'article_delete'), |
url(r'^delete/(?P<url>.*)/$', 'article_delete'), |
||||||
url(r'^change/(.*)/$', 'article_change'), |
url(r'^change/(.*)/$', 'article_change'), |
||||||
url(r'^copy/(.*)/$', 'article_copy'), |
url(r'^copy/(.*)/$', 'article_copy'), |
||||||
url(r'^all/$', 'article_all'), |
url(r'^all/$', 'article_all'), |
||||||
|
url(r'^blog/all/$', BlogList.as_view()), |
||||||
|
url(r'^blog/$', BlogView.as_view()), |
||||||
|
url(r'^news/all/$', NewsList.as_view()), |
||||||
|
url(r'^news/$', NewsView.as_view()), |
||||||
|
|
||||||
|
url(r'^blog/(?P<slug>.*)/$', BlogView.as_view()), |
||||||
|
url(r'^news/(?P<slug>.*)/$', NewsView.as_view()), |
||||||
) |
) |
||||||
@ -0,0 +1,10 @@ |
|||||||
|
# -*- coding: utf-8 -*- |
||||||
|
from django.conf.urls import patterns, url |
||||||
|
from views import BlogList, NewsList, BlogDetail, NewsDetail |
||||||
|
|
||||||
|
urlpatterns = patterns('', |
||||||
|
url(r'blogs/$', BlogList.as_view()), |
||||||
|
url(r'news/$', NewsList.as_view()), |
||||||
|
url(r'blogs/(?P<slug>.*)$', BlogDetail.as_view()), |
||||||
|
url(r'news/(?P<slug>.*)$', NewsDetail.as_view()), |
||||||
|
) |
||||||
@ -0,0 +1,55 @@ |
|||||||
|
from django.views.generic import DetailView, ListView |
||||||
|
from django.http import HttpResponse |
||||||
|
from models import Article |
||||||
|
|
||||||
|
class NewsList(ListView): |
||||||
|
model = Article |
||||||
|
template_name = 'article/news_list.html' |
||||||
|
|
||||||
|
def get_queryset(self): |
||||||
|
if self.request.GET: |
||||||
|
qs = self.model.objects.news() |
||||||
|
themes = self.request.GET.getlist('theme') |
||||||
|
if themes: |
||||||
|
qs = qs.filter(theme__id__in=themes) |
||||||
|
|
||||||
|
tags = self.request.GET.getlist('tag') |
||||||
|
if tags: |
||||||
|
qs = qs.filter(tag__id__in=tags) |
||||||
|
|
||||||
|
return qs |
||||||
|
else: |
||||||
|
return self.model.objects.news() |
||||||
|
|
||||||
|
class NewsDetail(DetailView): |
||||||
|
model = Article |
||||||
|
slug_field = 'slug' |
||||||
|
template_name = 'article/news.html' |
||||||
|
|
||||||
|
|
||||||
|
class BlogList(ListView): |
||||||
|
model = Article |
||||||
|
template_name = 'article/blog_list.html' |
||||||
|
|
||||||
|
def get_queryset(self): |
||||||
|
if self.request.GET: |
||||||
|
qs = self.model.objects.blogs() |
||||||
|
|
||||||
|
themes = self.request.GET.getlist('theme') |
||||||
|
if themes: |
||||||
|
qs = qs.filter(theme__id__in=themes) |
||||||
|
|
||||||
|
tags = self.request.GET.getlist('tag') |
||||||
|
if tags: |
||||||
|
qs = qs.filter(tag__id__in=tags) |
||||||
|
|
||||||
|
return qs |
||||||
|
else: |
||||||
|
return self.model.objects.blogs() |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class BlogDetail(DetailView): |
||||||
|
model = Article |
||||||
|
slug_field = 'slug' |
||||||
|
template_name = 'article/article.html' |
||||||
@ -0,0 +1,37 @@ |
|||||||
|
def base_concrete_model(abstract, instance): |
||||||
|
""" |
||||||
|
Used in methods of abstract models to find the super-most concrete |
||||||
|
(non abstract) model in the inheritance chain that inherits from the |
||||||
|
given abstract model. This is so the methods in the abstract model can |
||||||
|
query data consistently across the correct concrete model. |
||||||
|
|
||||||
|
Consider the following:: |
||||||
|
|
||||||
|
class Abstract(models.Model) |
||||||
|
|
||||||
|
class Meta: |
||||||
|
abstract = True |
||||||
|
|
||||||
|
def concrete(self): |
||||||
|
return base_concrete_model(Abstract, self) |
||||||
|
|
||||||
|
class Super(Abstract): |
||||||
|
pass |
||||||
|
|
||||||
|
class Sub(Super): |
||||||
|
pass |
||||||
|
|
||||||
|
sub = Sub.objects.create() |
||||||
|
sub.concrete() # returns Super |
||||||
|
|
||||||
|
In actual Mezzanine usage, this allows methods in the ``Displayable`` and |
||||||
|
``Orderable`` abstract models to access the ``Page`` instance when |
||||||
|
instances of custom content types, (eg: models that inherit from ``Page``) |
||||||
|
need to query the ``Page`` model to determine correct values for ``slug`` |
||||||
|
and ``_order`` which are only relevant in the context of the ``Page`` |
||||||
|
model and not the model of the custom content type. |
||||||
|
""" |
||||||
|
for cls in reversed(instance.__class__.__mro__): |
||||||
|
if issubclass(cls, abstract) and not cls._meta.abstract: |
||||||
|
return cls |
||||||
|
return instance.__class__ |
||||||
@ -0,0 +1,37 @@ |
|||||||
|
import unicodedata, re |
||||||
|
|
||||||
|
from django.utils.encoding import smart_text |
||||||
|
from django.core.exceptions import ObjectDoesNotExist |
||||||
|
|
||||||
|
def unique_slug(queryset, slug_field, slug): |
||||||
|
""" |
||||||
|
Ensures a slug is unique for the given queryset, appending |
||||||
|
an integer to its end until the slug is unique. |
||||||
|
""" |
||||||
|
i = 0 |
||||||
|
while True: |
||||||
|
if i > 0: |
||||||
|
if i > 1: |
||||||
|
slug = slug.rsplit("-", 1)[0] |
||||||
|
slug = "%s-%s" % (slug, i) |
||||||
|
try: |
||||||
|
queryset.get(**{slug_field: slug}) |
||||||
|
except ObjectDoesNotExist: |
||||||
|
break |
||||||
|
i += 1 |
||||||
|
return slug |
||||||
|
|
||||||
|
def slugify(s): |
||||||
|
""" |
||||||
|
Replacement for Django's slugify which allows unicode chars in |
||||||
|
slugs, for URLs in Chinese, Russian, etc. |
||||||
|
Adopted from https://github.com/mozilla/unicode-slugify/ |
||||||
|
""" |
||||||
|
chars = [] |
||||||
|
for char in smart_text(s): |
||||||
|
cat = unicodedata.category(char)[0] |
||||||
|
if cat in "LN" or char in "-_~": |
||||||
|
chars.append(char) |
||||||
|
elif cat == "Z": |
||||||
|
chars.append(" ") |
||||||
|
return re.sub("[-\s]+", "-", "".join(chars).strip()).lower() |
||||||
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 964 B |
|
After Width: | Height: | Size: 964 B |
|
After Width: | Height: | Size: 966 B |
|
After Width: | Height: | Size: 987 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 68 KiB |
@ -0,0 +1,54 @@ |
|||||||
|
{% extends 'base.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 class='form-search'> |
||||||
|
{{ search_form.search_name }} |
||||||
|
<button type="submit" class="btn">Найти</button> |
||||||
|
</form> |
||||||
|
<table class="table table-hover"> |
||||||
|
<thead> |
||||||
|
<tr> |
||||||
|
|
||||||
|
<th>Заголовок</th> |
||||||
|
<th>Автор</th> |
||||||
|
<th> </th> |
||||||
|
</tr> |
||||||
|
</thead> |
||||||
|
<tbody> |
||||||
|
{% for item in object_list %} |
||||||
|
<tr> |
||||||
|
|
||||||
|
<td>{{ item.main_title }}</td> |
||||||
|
<td>{% ifnotequal item.author None %}{{ item.author }} {% endifnotequal %}</td> |
||||||
|
<td class="center sorting_1"> |
||||||
|
<a class="btn-small btn-info" href="{{ item.admin_url }}"> |
||||||
|
Изменить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
|
||||||
|
<td class="center sorting_1"> |
||||||
|
<a class="btn-small btn-inverse" href="/admin/article/copy/{{ item.slug|lower }}"> |
||||||
|
Копировать |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
|
||||||
|
<td> |
||||||
|
<a class="btn-small btn-danger delete" href="/admin/article/delete/{{ item.slug }}/"> |
||||||
|
Удалить |
||||||
|
</a> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
{% endfor %} |
||||||
|
</tbody> |
||||||
|
</table> |
||||||
|
<a class="btn btn-success" href="{% if blog_flag %}/admin/article/blog/{% else %}{% if news_flag %}/admin/article/news/{% endif %}{% endif %}"> |
||||||
|
<i class="icon-plus-sign icon-white"></i> Добавить |
||||||
|
{% if blog_flag %}статью{% else %}{% if news_flag %}новость{% endif %}{% endif %} |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{% endblock %} |
||||||
@ -0,0 +1,99 @@ |
|||||||
|
{% extends 'base.html' %} |
||||||
|
{% load static %} |
||||||
|
{# Displays article form #} |
||||||
|
|
||||||
|
{% block scripts %} |
||||||
|
|
||||||
|
<script src="{% static 'ckeditor/ckeditor/ckeditor.js' %}"></script> |
||||||
|
{# 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> |
||||||
|
{# ajax #} |
||||||
|
<script src="{% static 'custom_js/file_post_ajax.js' %}"></script> |
||||||
|
<script src="{% static 'custom_js/select_tag.js' %}"></script> |
||||||
|
|
||||||
|
{% endblock %} |
||||||
|
|
||||||
|
{% block body %} |
||||||
|
<form method="post" class="form-horizontal" name="form2" id="form2"enctype="multipart/form-data"> {% csrf_token %} |
||||||
|
<fieldset> |
||||||
|
<legend><i class="icon-edit"></i>{% if article %} Изменить {% else %} Добавить {% endif %}статью</legend> |
||||||
|
|
||||||
|
<div class="box span8"> |
||||||
|
<div class="box-header well"> |
||||||
|
<h2><i class="icon-pencil"></i> Основная информация</h2> |
||||||
|
</div> |
||||||
|
<div class="box-content"> |
||||||
|
|
||||||
|
{# main_title #} |
||||||
|
{% include 'admin/forms/multilang.html' with field='main_title' form=form languages=languages %} |
||||||
|
|
||||||
|
{# theme #} |
||||||
|
<div class="control-group {% if form.theme.errors %}error{% endif %}"> |
||||||
|
<label class="control-label"><b>{{ form.theme.label }}:</b></label> |
||||||
|
<div class="controls"> |
||||||
|
{{ form.theme }} |
||||||
|
<span class="help-inline">{{ form.theme.errors }}</span> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{# tag #} |
||||||
|
<div class="control-group {% if form.tag.errors %}error{% endif %}"> |
||||||
|
<label class="control-label">{{ form.tag.label }}:</label> |
||||||
|
<div class="controls"> |
||||||
|
{{ form.tag }} |
||||||
|
<span class="help-inline">{{ form.tag.errors }}</span> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{# exposition #} |
||||||
|
{% if form.exposition %} |
||||||
|
<div class="control-group {% if form.exposition.errors %}error{% endif %}"> |
||||||
|
<label class="control-label">{{ form.exposition.label }}:</label> |
||||||
|
<div class="controls"> |
||||||
|
{{ form.exposition }} |
||||||
|
<span class="help-inline">{{ form.exposition.errors }}</span> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{% endif %} |
||||||
|
{# conference #} |
||||||
|
{% if form.conference%} |
||||||
|
<div class="control-group {% if form.conference.errors %}error{% endif %}"> |
||||||
|
<label class="control-label">{{ form.conference.label }}:</label> |
||||||
|
<div class="controls"> |
||||||
|
{{ form.conference }} |
||||||
|
<span class="help-inline">{{ form.conference.errors }}</span> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{% endif %} |
||||||
|
{# logo #} |
||||||
|
<div class="control-group {% if form.logo.errors %}error{% endif %}"> |
||||||
|
<label class="control-label">{{ form.logo.label }}:</label> |
||||||
|
<div class="controls"> |
||||||
|
{{ form.logo }} |
||||||
|
{% if article.logo %} |
||||||
|
|
||||||
|
<img src="{{ article.logo.url }}"> |
||||||
|
{% endif %} |
||||||
|
<span class="help-inline">{{ form.logo.errors }}</span> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{# preview #} |
||||||
|
{% include 'admin/forms/multilang.html' with field='preview' form=form languages=languages %} |
||||||
|
{# description #} |
||||||
|
{% include 'admin/forms/multilang.html' with field='description' form=form languages=languages %} |
||||||
|
{# keywords #} |
||||||
|
{% include 'admin/forms/multilang.html' with field='keywords' form=form languages=languages %} |
||||||
|
{# title #} |
||||||
|
{% include 'admin/forms/multilang.html' with field='title' form=form languages=languages %} |
||||||
|
{# descriptions #} |
||||||
|
{% include 'admin/forms/multilang.html' with field='descriptions' form=form languages=languages %} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="controls"> |
||||||
|
|
||||||
|
<input class="btn btn-large btn-primary" type="submit" value="{% if article %}Изменить{% else %}Добавить{% endif %}"> |
||||||
|
<input class="btn btn-large" type="reset" value="Отмена"> |
||||||
|
</div> |
||||||
|
</fieldset> |
||||||
|
</form> |
||||||
|
{% endblock %} |
||||||
@ -0,0 +1,542 @@ |
|||||||
|
{% extends 'base_catalog.html' %} |
||||||
|
{% load static %} |
||||||
|
{% load i18n %} |
||||||
|
{% load template_filters %} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{% block bread_scrumbs %} |
||||||
|
<div class="bread-crumbs"> |
||||||
|
<a href="/">{% trans 'Главная страница' %}</a> |
||||||
|
<a href="/profile/">{% trans 'Личный кабинет' %}</a> |
||||||
|
<strong>{% trans 'Компания' %}</strong> |
||||||
|
</div> |
||||||
|
{% endblock %} |
||||||
|
|
||||||
|
{% block page_title %} |
||||||
|
{% endblock %} |
||||||
|
|
||||||
|
{% block content_list %} |
||||||
|
<form method="post" enctype="multipart/form-data" class="clearfix" action="#">{% csrf_token %} |
||||||
|
<div class="m-article"> |
||||||
|
<div class="item-wrap clearfix"> |
||||||
|
|
||||||
|
<aside> |
||||||
|
<div class="i-pict"> |
||||||
|
<a class="add_pic_block" title=""> |
||||||
|
<span></span> |
||||||
|
<i>Добавить лого</i> |
||||||
|
<b>+20</b> |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
<div class="i-rating" title="Рейтинг: 551">551</div> |
||||||
|
</aside> |
||||||
|
|
||||||
|
<div class="i-info"> |
||||||
|
<header> |
||||||
|
<div class="i-place p-editable add_link_text add_link_text_medium"> |
||||||
|
<div class="edit-wrap e-left"> |
||||||
|
<a class="e-btn" href="#" title="">Указать</a> |
||||||
|
<div class="add_link_text_text">свой город <b>+5</b></div> |
||||||
|
<div class="e-form"> |
||||||
|
|
||||||
|
|
||||||
|
<div class="ef-body"> |
||||||
|
|
||||||
|
<div class="epfl"> |
||||||
|
<label>{{ form.country.label }}</label> |
||||||
|
<div class="epf-field"> |
||||||
|
{{ form.country }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="epfl"> |
||||||
|
<label>{{ form.city.label }}</label> |
||||||
|
<div class="epf-field"> |
||||||
|
{{ form.city }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="ef-buttons"> |
||||||
|
<button class="lnk icon-save">Сохранить</button> |
||||||
|
</div> |
||||||
|
|
||||||
|
<a class="ef-close" href="#">закрыть</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="site_link"><a href="#" title="">expomap.ru/annapetrova</a></div> |
||||||
|
|
||||||
|
<div class="i-title p-editable p-editable"> |
||||||
|
Q.Art Media Solution |
||||||
|
|
||||||
|
<div class="edit-wrap"> |
||||||
|
<a class="e-btn" href="#">редактировать</a> |
||||||
|
<div class="e-form"> |
||||||
|
<form class="clearfix" action="#"> |
||||||
|
|
||||||
|
<div class="ef-body"> |
||||||
|
|
||||||
|
<div class="epfl"> |
||||||
|
<label>{{ form.name.label }}</label> |
||||||
|
<div class="epf-field"> |
||||||
|
{{ form.name }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="ef-buttons"> |
||||||
|
<button type="submit" class="lnk icon-save">Сохранить</button> |
||||||
|
</div> |
||||||
|
</form> |
||||||
|
|
||||||
|
<a class="ef-close" href="#">закрыть</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</header> |
||||||
|
|
||||||
|
|
||||||
|
<div class="i-descr p-editable add_link_text add_link_text_top"> |
||||||
|
|
||||||
|
<div class="edit-wrap"> |
||||||
|
<a class="e-btn" href="#" title="">Добавить</a> |
||||||
|
<div class="add_link_text_text">краткое описание компании <b>+20</b></div> |
||||||
|
|
||||||
|
<br> |
||||||
|
|
||||||
|
<div class="e-form"> |
||||||
|
|
||||||
|
<div class="ef-body"> |
||||||
|
|
||||||
|
<div class="epfl"> |
||||||
|
<label>{{ form.specialization.label }}</label> |
||||||
|
<div class="epf-field"> |
||||||
|
{{ form.specialization }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="ef-buttons"> |
||||||
|
<button type="submit" class="lnk icon-save">Сохранить</button> |
||||||
|
</div> |
||||||
|
|
||||||
|
<a class="ef-close" href="#">закрыть</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="i-area"><a href="#">Дизайн и брендинг, PR и консалтинг</a></div> |
||||||
|
|
||||||
|
<hr /> |
||||||
|
|
||||||
|
<div class="ic-links p-editable add_link_text add_link_text_medium"> |
||||||
|
|
||||||
|
<div class="edit-wrap"> |
||||||
|
<a class="e-btn" href="#" title="">Добавить</a> |
||||||
|
<div class="add_link_text_text">адрес компании <b>+15</b></div> |
||||||
|
<div class="e-form"> |
||||||
|
|
||||||
|
<div class="ef-body"> |
||||||
|
|
||||||
|
<div class="epfl"> |
||||||
|
<label>{{ form.address_inf.label }}</label> |
||||||
|
<div class="epf-field"> |
||||||
|
{{ form.address_inf }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="ef-buttons"> |
||||||
|
<button type="submit" class="lnk icon-save">Сохранить</button> |
||||||
|
</div> |
||||||
|
|
||||||
|
<a class="ef-close" href="#">закрыть</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
|
||||||
|
<hr /> |
||||||
|
|
||||||
|
<div class="add_link_teg"> |
||||||
|
{{ form.theme }}<br/> |
||||||
|
{{ form.tag }}<br/> |
||||||
|
<b>+5</b> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="clear"></div> |
||||||
|
|
||||||
|
<hr /> |
||||||
|
|
||||||
|
<div class="i-contacts clearfix"> |
||||||
|
<div class="ic-buttons ic-buttons_pos dd_width_4"> |
||||||
|
<a class="button icon-edit icb-edit-profile" href="#">редактировать профиль</a> |
||||||
|
<a class="button orange icon-edit icb-exit-edit" href="#">завершить редактирование</a> |
||||||
|
|
||||||
|
<div class="ic-buttons_text">Добавить профили в соц.сетях:</div> |
||||||
|
|
||||||
|
<div class="p-editable add_link_text add_link_text_medium soc-media-indent"> |
||||||
|
|
||||||
|
<div class="edit-wrap"> |
||||||
|
<a class="e-btn" href="#" title="">Добавить</a> |
||||||
|
|
||||||
|
<ul class="soc-media-buttons soc-media-buttons1"> |
||||||
|
<li><img src="img/soc-medias/icon-fb_hover.png" alt=""></li> |
||||||
|
<li><img src="img/soc-medias/icon-lin_hover.png" alt=""></li> |
||||||
|
<li><img src="img/soc-medias/sm-icon-vk_hover.png" alt=""></li> |
||||||
|
<li><img src="img/soc-medias/sm-icon-twit_hover.png" alt=""></li> |
||||||
|
</ul> |
||||||
|
|
||||||
|
<div class="add_link_text_text"><b>+5 за каждый</b></div> |
||||||
|
<div class="e-form"> |
||||||
|
|
||||||
|
|
||||||
|
<div class="ef-body"> |
||||||
|
|
||||||
|
<div class="epfl"> |
||||||
|
<label><img src="img/soc-medias/sm-icon-fb-w.png" title="Facebook" alt="Facebook" /> {{ form.facebook.label }}</label> |
||||||
|
<div class="epf-field"> |
||||||
|
{{ form.facebook }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="epfl"> |
||||||
|
<label><img src="img/soc-medias/sm-icon-lin-w.png" title="LinkedIn" alt="LinkedIn" /> {{ form.vk.label }}</label> |
||||||
|
<div class="epf-field"> |
||||||
|
{{ form.linkedin }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="epfl"> |
||||||
|
<label><img src="img/soc-medias/sm-icon-vk-w.png" title="В контакте" alt="В контакте" /> {{ form.vk.label }}</label> |
||||||
|
<div class="epf-field"> |
||||||
|
{{ form.vk }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="epfl"> |
||||||
|
<label><img src="img/soc-medias/sm-icon-twit-w.png" title="Twitter" alt="Twitter" /> {{ form.twitter.label }}</label> |
||||||
|
<div class="epf-field"> |
||||||
|
{{ form.twitter }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="ef-buttons"> |
||||||
|
<button type="submit" class="lnk icon-save">Сохранить</button> |
||||||
|
</div> |
||||||
|
|
||||||
|
|
||||||
|
<a class="ef-close" href="#">закрыть</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="ic-links ic-links_indent dd_width_5"> |
||||||
|
|
||||||
|
<div class="p-editable add_link_text add_link_text_medium"> |
||||||
|
<div class="edit-wrap"> |
||||||
|
<a class="e-btn" href="#" title="">Добавить</a> |
||||||
|
<div class="add_link_text_text">номер телефона <b>+15</b></div> |
||||||
|
<div class="e-form"> |
||||||
|
|
||||||
|
<div class="ef-body"> |
||||||
|
|
||||||
|
<div class="epfl"> |
||||||
|
<label>{{ form.phone.label }}</label> |
||||||
|
<div class="epf-field"> |
||||||
|
{{ form.phone }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="ef-buttons"> |
||||||
|
<button type="submit" class="lnk icon-save">Сохранить</button> |
||||||
|
</div> |
||||||
|
|
||||||
|
<a class="ef-close" href="#">закрыть</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="ic-mail add_indent"> |
||||||
|
<a class="icon-mail" href="mailto:info@qartmedia.ru">info@qartmedia.ru</a> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="ic-site p-editable add_link_text add_link_text_medium"> |
||||||
|
<div class="edit-wrap"> |
||||||
|
<a class="e-btn" href="#" title="">Добавить</a> |
||||||
|
<div class="add_link_text_text">сайт <b>+5</b></div> |
||||||
|
<div class="e-form"> |
||||||
|
|
||||||
|
<div class="ef-body"> |
||||||
|
|
||||||
|
<div class="epfl"> |
||||||
|
<label>{{ form.web_page.label }}</label> |
||||||
|
<div class="epf-field"> |
||||||
|
{{ form.web_page }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="ef-buttons"> |
||||||
|
<button type="submit" class="lnk icon-save">Сохранить</button> |
||||||
|
</div> |
||||||
|
|
||||||
|
<a class="ef-close" href="#">закрыть</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
|
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<hr /> |
||||||
|
|
||||||
|
<div class="i-additional"> |
||||||
|
<div class="ia-title">Дополнительная информация</div> |
||||||
|
|
||||||
|
<div class="ic-links p-editable add_link_text add_link_text_medium"> |
||||||
|
<div class="edit-wrap"> |
||||||
|
<a class="e-btn" href="#" title="">Добавить</a> |
||||||
|
<div class="add_link_text_text">год основания <b>+15</b></div> |
||||||
|
<div class="e-form"> |
||||||
|
|
||||||
|
<div class="ef-body"> |
||||||
|
|
||||||
|
<div class="epfl"> |
||||||
|
<label>{{ form.foundation.label }}</label> |
||||||
|
<div class="epf-field"> |
||||||
|
{{ form.foundation }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="ef-buttons"> |
||||||
|
<button type="submit" class="lnk icon-save">Сохранить</button> |
||||||
|
</div> |
||||||
|
|
||||||
|
<a class="ef-close" href="#">закрыть</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="ic-links p-editable add_link_text add_link_text_medium"> |
||||||
|
<div class="edit-wrap"> |
||||||
|
<a class="e-btn" href="#" title="">Добавить</a> |
||||||
|
<div class="add_link_text_text">к-во сотрудников <b>+15</b></div> |
||||||
|
<div class="e-form"> |
||||||
|
|
||||||
|
<div class="ef-body"> |
||||||
|
|
||||||
|
<div class="epfl"> |
||||||
|
<label>{{ form.staff_number.label }}</label> |
||||||
|
<div class="epf-field"> |
||||||
|
{{ form.staff_number }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="ef-buttons"> |
||||||
|
<button type="submit" class="lnk icon-save">Сохранить</button> |
||||||
|
</div> |
||||||
|
|
||||||
|
<a class="ef-close" href="#">закрыть</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="p-editable add_link_text add_link_text_medium"> |
||||||
|
<div class="edit-wrap"> |
||||||
|
<a class="e-btn" href="#" title="">Добавить</a> |
||||||
|
<div class="add_link_text_text">подробное описание компании<b>+15</b></div> |
||||||
|
<div class="e-form"> |
||||||
|
|
||||||
|
<div class="ef-body"> |
||||||
|
|
||||||
|
<div class="epfl"> |
||||||
|
<label>{{ form.description.label }}</label> |
||||||
|
<div class="epf-field"> |
||||||
|
{{ form.description }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="ef-buttons"> |
||||||
|
<button type="button" class="lnk icon-save">Сохранить</button> |
||||||
|
</div> |
||||||
|
|
||||||
|
<a class="ef-close" href="#">закрыть</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</form> |
||||||
|
|
||||||
|
{% endblock %} |
||||||
|
{% block style %} |
||||||
|
<link href="{% static 'js/select/select2.css' %}" rel="stylesheet"/> |
||||||
|
<style> |
||||||
|
.select2-container-multi .select2-choices { |
||||||
|
background-image: |
||||||
|
|
||||||
|
border:1px solid #bdbdbd; |
||||||
|
outline:none; |
||||||
|
background:#fff; |
||||||
|
padding:3px; |
||||||
|
font-family:'dindisplay_pro', sans-serif; |
||||||
|
font-size:15px; |
||||||
|
line-height:19px; |
||||||
|
-webkit-border-radius:3px; |
||||||
|
-moz-border-radius:3px; |
||||||
|
border-radius:3px; |
||||||
|
-webkit-box-shadow:inset 0 2px 2px -2px #aaa; |
||||||
|
-moz-box-shadow:inset 0 2px 2px -2px #aaa; |
||||||
|
box-shadow:inset 0 2px 2px -2px #aaa; |
||||||
|
-webkit-box-sizing:border-box; |
||||||
|
-moz-box-sizing:border-box; |
||||||
|
box-sizing:border-box; |
||||||
|
} |
||||||
|
|
||||||
|
/* |
||||||
|
{position:relative; |
||||||
|
border:1px solid #bdbdbd; |
||||||
|
outline:none; |
||||||
|
background:#fff; |
||||||
|
width:100%; |
||||||
|
padding:3px; |
||||||
|
font-family:'dindisplay_pro', sans-serif; |
||||||
|
font-size:15px; |
||||||
|
line-height:19px; |
||||||
|
-webkit-border-radius:3px; |
||||||
|
-moz-border-radius:3px; |
||||||
|
border-radius:3px; |
||||||
|
-webkit-box-shadow:inset 0 2px 2px -2px #aaa; |
||||||
|
-moz-box-shadow:inset 0 2px 2px -2px #aaa; |
||||||
|
box-shadow:inset 0 2px 2px -2px #aaa; |
||||||
|
-webkit-box-sizing:border-box; |
||||||
|
-moz-box-sizing:border-box; |
||||||
|
box-sizing:border-box;} |
||||||
|
*/ |
||||||
|
</style> |
||||||
|
{% endblock %} |
||||||
|
|
||||||
|
{% block scripts %} |
||||||
|
|
||||||
|
<script src="{% static 'js/select/select2.js' %}"></script> |
||||||
|
<script> |
||||||
|
|
||||||
|
$(document).ready(function(){ |
||||||
|
$('button .lnk .icon-save').on('click', function(e){ |
||||||
|
e.preventDefault(); |
||||||
|
console.log(123); |
||||||
|
}) |
||||||
|
$('#id_theme').select2({ |
||||||
|
width: 'element', |
||||||
|
placeholder: "Выберите ключевые тематики", |
||||||
|
//adaptContainerCssClass: 'test-container', |
||||||
|
//adaptDropdownCssClass: 'TEST-DROP' |
||||||
|
formatSelectionCssClass: function (data, container) { return "csb-selected show"; } |
||||||
|
//formatResultCssClass: function (data, container) { return "TEST"; }, |
||||||
|
//formatContainerCssClass: function (data, container) { return "CONT____"; }, |
||||||
|
//formatDropdownCssClass: function (data, container) { return "DROP"; } |
||||||
|
}); |
||||||
|
$('#id_tag').select2({ |
||||||
|
placeholder: "Выберите ключевые теги", |
||||||
|
width: 'element', |
||||||
|
multiple: true, |
||||||
|
ajax: { |
||||||
|
|
||||||
|
url: "/admin/theme/tag/search/", |
||||||
|
dataType: "json", |
||||||
|
quietMillis: 200, |
||||||
|
multiple: true, |
||||||
|
|
||||||
|
data: function(term, page, theme){ |
||||||
|
var theme = $('#id_theme').serialize(); |
||||||
|
return {term: term, |
||||||
|
page: page, |
||||||
|
theme: theme}; |
||||||
|
}, |
||||||
|
|
||||||
|
results: function (data) { |
||||||
|
var results = []; |
||||||
|
$.each(data, function(index, item){ |
||||||
|
results.push({ |
||||||
|
id: item.id, |
||||||
|
text: item.label |
||||||
|
}); |
||||||
|
}); |
||||||
|
return {results: results}; |
||||||
|
} |
||||||
|
}, |
||||||
|
initSelection : function(element, callback) { |
||||||
|
var data = []; |
||||||
|
$(element.val().split(",")).each(function(i) { |
||||||
|
var item = this.split(':'); |
||||||
|
data.push({ |
||||||
|
id: item[0], |
||||||
|
text: item[1] |
||||||
|
}); |
||||||
|
}); |
||||||
|
callback(data); |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
}); |
||||||
|
|
||||||
|
$('#id_country').select2({ |
||||||
|
placeholder: "Выберите страну", |
||||||
|
width: 'element' |
||||||
|
}); |
||||||
|
|
||||||
|
$('#id_city').select2({ |
||||||
|
placeholder: "Выберите город", |
||||||
|
width: 'element', |
||||||
|
ajax: { |
||||||
|
|
||||||
|
url: "/admin/city/search/", |
||||||
|
dataType: "json", |
||||||
|
quietMillis: 200, |
||||||
|
|
||||||
|
data: function(term, page, country){ |
||||||
|
var country = $('#id_country').val() |
||||||
|
return {term: term, |
||||||
|
page: page, |
||||||
|
country: country}; |
||||||
|
}, |
||||||
|
|
||||||
|
results: function (data) { |
||||||
|
var results = []; |
||||||
|
$.each(data, function(index, item){ |
||||||
|
results.push({ |
||||||
|
id: item.id, |
||||||
|
text: item.label |
||||||
|
}); |
||||||
|
}); |
||||||
|
return {results: results}; |
||||||
|
} |
||||||
|
}, |
||||||
|
initSelection : function(element, callback) { |
||||||
|
var id= $(element).val(); |
||||||
|
var text = $(element).attr('data-init-text'); |
||||||
|
callback({id: id, text:text}); |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
}); |
||||||
|
}); |
||||||
|
</script> |
||||||
|
{% endblock %} |
||||||
@ -0,0 +1,395 @@ |
|||||||
|
{% extends 'base_catalog.html' %} |
||||||
|
{% load static %} |
||||||
|
{% load i18n %} |
||||||
|
{% load template_filters %} |
||||||
|
|
||||||
|
|
||||||
|
{% block bread_scrumbs %} |
||||||
|
<div class="bread-crumbs"> |
||||||
|
<a href="/">{% trans 'Главная страница' %}</a> |
||||||
|
<strong>{% trans 'Личный кабинет' %}</strong> |
||||||
|
</div> |
||||||
|
{% endblock %} |
||||||
|
|
||||||
|
{% block page_title %} |
||||||
|
<div class="page-title"> |
||||||
|
<h1>{% trans 'Личный кабинет' %}</h1> |
||||||
|
</div> |
||||||
|
{% endblock %} |
||||||
|
|
||||||
|
{% block content_list %} |
||||||
|
<div class="m-article"> |
||||||
|
<div class="item-wrap clearfix"> |
||||||
|
<aside> |
||||||
|
<div class="i-pict"> |
||||||
|
<a class="add_pic_block" title=""> |
||||||
|
<span></span> |
||||||
|
<i>Добавить фото</i> |
||||||
|
<b>+20</b> |
||||||
|
<input type="file" class="input" value=""> |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
<div class="i-rating" title="Рейтинг: 551">551</div> |
||||||
|
<div class="reason_block"> |
||||||
|
<p>Заполните свой<br>профиль, чтобы<br>повысить рейтинг</p> |
||||||
|
<p>Чем выше<br>рейтинг —<br>тем больше<br>преимуществ!</p> |
||||||
|
</div> |
||||||
|
</aside> |
||||||
|
|
||||||
|
<div class="i-info"> |
||||||
|
<header> |
||||||
|
|
||||||
|
<div class="{% if home_form.instance.country and home_form.instance.city %} |
||||||
|
i-place p-editable |
||||||
|
{% else %} |
||||||
|
i-place p-editable add_link_text add_link_text_medium |
||||||
|
{% endif %}"> |
||||||
|
{% if home_form.instance.country %} |
||||||
|
<span> |
||||||
|
{% else %} |
||||||
|
<span style="display:none;"> |
||||||
|
{% endif %} |
||||||
|
<a href="#">{{ home_form.instance.country }}</a> |
||||||
|
</span> |
||||||
|
|
||||||
|
{% if home_form.instance.city %} |
||||||
|
<span> |
||||||
|
{% else %} |
||||||
|
<span style="display:none;"> |
||||||
|
{% endif %} |
||||||
|
, <a href="#">{{ home_form.instance.city }}</a> |
||||||
|
</span> |
||||||
|
|
||||||
|
<div class="edit-wrap e-left"> |
||||||
|
{% if home_form.instance.country and home_form.instance.city %} |
||||||
|
<a class="e-btn" href="#">{% trans 'редактировать' %}</a> |
||||||
|
{% else %} |
||||||
|
<a class="e-btn" href="#" title="">Указать</a> |
||||||
|
<div class="add_link_text_text">свой город <b>+5</b></div> |
||||||
|
{% endif %} |
||||||
|
|
||||||
|
<div class="e-form"> |
||||||
|
<form class="clearfix" id="home_form" action="/profile/update/home/" method="post">{% csrf_token %} |
||||||
|
|
||||||
|
<div class="ef-body"> |
||||||
|
|
||||||
|
<div class="epfl"> |
||||||
|
<label>Страна</label> |
||||||
|
<div class="epf-field"> |
||||||
|
{{ home_form.country }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="epfl"> |
||||||
|
<label>{% trans 'Город' %}</label> |
||||||
|
<div class="epf-field"> |
||||||
|
<select name="city"> |
||||||
|
|
||||||
|
</select> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="ef-buttons"> |
||||||
|
<button type="submit" class="lnk icon-save">Сохранить</button> |
||||||
|
</div> |
||||||
|
</form> |
||||||
|
|
||||||
|
<a class="ef-close" href="#">закрыть</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
<div class="site_link"><a href="{{ request.user.get_permanent_url }}" title="">{{ request.user.get_permanent_url }}</a></div> |
||||||
|
|
||||||
|
<div class="i-title p-editable p-editable"> |
||||||
|
{{ name_form.get_full_name }} |
||||||
|
|
||||||
|
<div class="edit-wrap"> |
||||||
|
<a class="e-btn" href="#">{% trans 'редактировать' %}</a> |
||||||
|
<div class="e-form"> |
||||||
|
<form class="clearfix" id="name_form" action="/profile/update/name/" |
||||||
|
method="post" method="post">{% csrf_token %} |
||||||
|
|
||||||
|
<div class="ef-body"> |
||||||
|
|
||||||
|
<div class="epfl"> |
||||||
|
<label>{{ name_form.first_name.label }}</label> |
||||||
|
<div class="epf-field"> |
||||||
|
{{ name_form.first_name }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="epfl"> |
||||||
|
<label>{{ name_form.last_name.label }}</label> |
||||||
|
<div class="epf-field"> |
||||||
|
{{ name_form.last_name }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="ef-buttons"> |
||||||
|
<button type="submit" class="lnk icon-save">{% trans 'Сохранить' %}</button> |
||||||
|
</div> |
||||||
|
</form> |
||||||
|
|
||||||
|
<a class="ef-close" href="#">{% trans 'закрыть' %}</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</header> |
||||||
|
{# position #} |
||||||
|
{% if work_form.position.value and work.form.work.value %}{% else %}{% endif %} |
||||||
|
<div class="{% if work_form.position.value and work.form.work.value %}i-position p-editable{% else %}i-descr p-editable add_link_text add_link_text_top{% endif %}"> |
||||||
|
{% if work_form.position.value and work.form.work.value %} |
||||||
|
<p> |
||||||
|
{{ work_form.position.value }} |
||||||
|
{% if work_form.work.value %} |
||||||
|
{% trans 'в' %} {{ work_form.work.value }} |
||||||
|
{% endif %} |
||||||
|
</p> |
||||||
|
{% endif %} |
||||||
|
<div class="edit-wrap"> |
||||||
|
{% if work_form.position.value and work.form.work.value %} |
||||||
|
<a class="e-btn" href="#">{% trans 'редактировать' %}</a> |
||||||
|
{% else %} |
||||||
|
<a class="e-btn" href="#" title="">Указать</a> |
||||||
|
<div class="add_link_text_text">свою должность и место работы <b>+10</b></div> |
||||||
|
{% endif %} |
||||||
|
|
||||||
|
|
||||||
|
<div class="e-form"> |
||||||
|
<form class="clearfix" id="work_form" action="/profile/update/work/" method="post">{% csrf_token %} |
||||||
|
|
||||||
|
<div class="ef-body"> |
||||||
|
|
||||||
|
<div class="epfl"> |
||||||
|
<label>{{ work_form.position.label }}</label> |
||||||
|
<div class="epf-field"> |
||||||
|
{{ work_form.position }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="epfl"> |
||||||
|
<label>{{ work_form.work.label }}</label> |
||||||
|
<div class="epf-field"> |
||||||
|
{{ work_form.work }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="add_company"><a href="/profile/company/" title="">{% if request.user.company %}Изменить{% else %}Добавить{% endif %} компанию</a></div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="ef-buttons"> |
||||||
|
<button type="submit" class="lnk icon-save">{% trans 'Сохранить' %}</button> |
||||||
|
</div> |
||||||
|
</form> |
||||||
|
|
||||||
|
<a class="ef-close" href="#">{% trans 'закрыть' %}</a> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="clear"></div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<hr /> |
||||||
|
<div class="i-contacts clearfix"> |
||||||
|
<div class="ic-buttons ic-buttons_pos dd_width_4"> |
||||||
|
<a class="button icon-edit icb-edit-profile" href="#">редактировать профиль</a> |
||||||
|
<a class="button orange icon-edit icb-exit-edit" href="#">завершить редактирование</a> |
||||||
|
|
||||||
|
<div class="ic-buttons_text">Добавить профили в соц.сетях:</div> |
||||||
|
|
||||||
|
<div class="p-editable add_link_text add_link_text_medium soc-media-indent"> |
||||||
|
|
||||||
|
<div class="edit-wrap"> |
||||||
|
<a class="e-btn" href="#" title="">Добавить</a> |
||||||
|
|
||||||
|
<ul class="soc-media-buttons soc-media-buttons1"> |
||||||
|
<li><img src="{% static 'client/img/soc-medias/sm-icon-fb.png' %}" title="Facebook" alt="Facebook" /></li> |
||||||
|
<li><img src="{% static 'client/img/soc-medias/sm-icon-lin.png' %}" title="LinkedIn" alt="LinkedIn" /></li> |
||||||
|
<li><img src="{% static 'client/img/soc-medias/sm-icon-vk.png' %}" title="В контакте" alt="В контакте" /></li> |
||||||
|
<li><img src="{% static 'client/img/soc-medias/sm-icon-twit.png' %}" title="Twitter" alt="Twitter" /></li> |
||||||
|
</ul> |
||||||
|
|
||||||
|
<div class="add_link_text_text"><b>+5 за каждый</b></div> |
||||||
|
<div class="e-form"> |
||||||
|
<form class="clearfix" action="#"> |
||||||
|
|
||||||
|
<div class="ef-body"> |
||||||
|
|
||||||
|
<div class="epfl"> |
||||||
|
<label><img src="{% static 'client/img/soc-medias/sm-icon-fb-w.png' %}" title="Facebook" alt="Facebook" /> {{ social_form.facebook.label }}</label> |
||||||
|
<div class="epf-field"> |
||||||
|
{{ social_form.facebook }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="epfl"> |
||||||
|
<label><img src="{% static 'client/img/soc-medias/sm-icon-lin-w.png' %}" title="LinkedIn" alt="LinkedIn" /> {{ social_form.linkedin.label }}</label> |
||||||
|
<div class="epf-field"> |
||||||
|
{{ social_form.linkedin }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="epfl"> |
||||||
|
<label><img src="{% static 'client/img/soc-medias/sm-icon-vk-w.png' %}" title="В контакте" alt="В контакте" /> {{ social_form.vk.label }}</label> |
||||||
|
<div class="epf-field"> |
||||||
|
{{ social_form.vk }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="epfl"> |
||||||
|
<label><img src="{% static 'client/img/soc-medias/sm-icon-twit-w.png' %}" title="Twitter" alt="Twitter" /> {{ social_form.twitter.label }}</label> |
||||||
|
<div class="epf-field"> |
||||||
|
{{ social_form.twitter }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="ef-buttons"> |
||||||
|
<button type="submit" class="lnk icon-save">{% trans 'Сохранить' %}</button> |
||||||
|
</div> |
||||||
|
</form> |
||||||
|
|
||||||
|
<a class="ef-close" href="#">{% trans 'закрыть' %}</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="{% if phone_form.phone.value %}ic-links{% else %}ic-links ic-links_indent dd_width_5{% endif %}"> |
||||||
|
|
||||||
|
<div class="{% if phone_form.phone.value %}ic-tel p-editable{% else %}p-editable add_link_text add_link_text_medium{% endif %}"> |
||||||
|
{% if phone_form.phone.value %} |
||||||
|
<span>{{ phone_form.phone.value|phone }}</span> |
||||||
|
{% endif %} |
||||||
|
|
||||||
|
<div class="edit-wrap"> |
||||||
|
{% if phone_form.phone.value %} |
||||||
|
<a class="e-btn" href="#">{% trans 'редактировать' %}</a> |
||||||
|
{% else %} |
||||||
|
<a class="e-btn" href="#" title="">Добавить</a> |
||||||
|
<div class="add_link_text_text">номер телефона <b>+15</b></div> |
||||||
|
{% endif %} |
||||||
|
|
||||||
|
<div class="e-form"> |
||||||
|
<form class="clearfix" id="phone_form" action="/profile/update/phone/" method="post">{% csrf_token %} |
||||||
|
<div class="ef-body"> |
||||||
|
|
||||||
|
<div class="epfl"> |
||||||
|
<label>{{ phone_form.phone.label }}</label> |
||||||
|
<div class="epf-field"> |
||||||
|
{{ phone_form.phone }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="ef-buttons"> |
||||||
|
<button type="submit" class="lnk icon-save">{% trans 'Сохранить' %}</button> |
||||||
|
</div> |
||||||
|
</form> |
||||||
|
<a class="ef-close" href="#">{% trans 'закрыть' %}</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="ic-mail add_indent"> |
||||||
|
<a class="icon-mail" href="mailto:info@qartmedia.ru">info@qartmedia.ru</a> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="{% if web_page_form.web_page.value %}ic-site p-editable{% else %}ic-site p-editable add_link_text add_link_text_medium{% endif %}"> |
||||||
|
{% if web_page_form.web_page.value %} |
||||||
|
<a class="icon-ext-link" href="{% if web_page_form.web_page.value %}{{ web_page_form.web_page.value }}{% else %}#{% endif %}" target="_blank"> |
||||||
|
{% if web_page_form.web_page.value %} |
||||||
|
{{ web_page_form.web_page.value }} |
||||||
|
{% endif %} |
||||||
|
</a> |
||||||
|
{% endif %} |
||||||
|
|
||||||
|
<div class="edit-wrap"> |
||||||
|
{% if web_page_form.web_page.value %} |
||||||
|
<a class="e-btn" href="#">{% trans 'редактировать' %}</a> |
||||||
|
{% else %} |
||||||
|
<a class="e-btn" href="#" title="">Добавить</a> |
||||||
|
<div class="add_link_text_text">сайт <b>+5</b></div> |
||||||
|
{% endif %} |
||||||
|
|
||||||
|
<div class="e-form"> |
||||||
|
<form class="clearfix" id="web_page_form" action="/profile/update/web-page/" method="post">{% csrf_token %} |
||||||
|
<div class="ef-body"> |
||||||
|
|
||||||
|
<div class="epfl"> |
||||||
|
<label>{{ web_page_form.web_page.label }}</label> |
||||||
|
<div class="epf-field"> |
||||||
|
{{ web_page_form.web_page }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="ef-buttons"> |
||||||
|
<button type="submit" class="lnk icon-save">{% trans 'Сохранить' %}</button> |
||||||
|
</div> |
||||||
|
</form> |
||||||
|
<a class="ef-close" href="#">{% trans 'закрыть' %}</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
|
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<hr /> |
||||||
|
<div class="{% if about_form.about.value %}i-additional{% else %}i-additional i-additional1{% endif %}"> |
||||||
|
{% if about_form.about.value %} |
||||||
|
<div class="ia-title">{% trans 'О себе:' %}</div> |
||||||
|
{% endif %} |
||||||
|
|
||||||
|
<div class="{% if about_form.about.value %}p-editable{% else %}p-editable add_link_text{% endif %}"> |
||||||
|
{% if about_form.about.value %} |
||||||
|
<p>{{ about_form.about.value }}</p> |
||||||
|
{% endif %} |
||||||
|
<div class="edit-wrap"> |
||||||
|
{% if about_form.about.value %} |
||||||
|
<a class="e-btn" href="#">{% trans 'редактировать' %}</a> |
||||||
|
{% else %} |
||||||
|
<a class="e-btn" href="#" title="">Добавить</a> |
||||||
|
<div class="add_link_text_text">информацию о себе <b>+10</b></div> |
||||||
|
{% endif %} |
||||||
|
|
||||||
|
|
||||||
|
<div class="e-form"> |
||||||
|
<form class="clearfix" id="about_form" action="/profile/update/about/" method="post">{% csrf_token %} |
||||||
|
<div class="ef-body"> |
||||||
|
|
||||||
|
<div class="epfl"> |
||||||
|
<label>{{ about_form.about.label }}</label> |
||||||
|
<div class="epf-field"> |
||||||
|
{{ about_form.about }} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="ef-buttons"> |
||||||
|
<button type="submit" class="lnk icon-save">Сохранить</button> |
||||||
|
</div> |
||||||
|
</form> |
||||||
|
<a class="ef-close" href="#">закрыть</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{% endblock %} |
||||||
|
|
||||||
|
{% block scripts %} |
||||||
|
<script src="{% static 'client/js/profile.js' %}"></script> |
||||||
|
{% endblock %} |
||||||
@ -0,0 +1,64 @@ |
|||||||
|
{% extends 'base_catalog.html' %} |
||||||
|
{% load static %} |
||||||
|
{% load i18n %} |
||||||
|
|
||||||
|
{% block bread_scrumbs %} |
||||||
|
<div class="bread-crumbs"> |
||||||
|
<a href="/">{% trans 'Главная страница' %}</a> |
||||||
|
<a href="/blogs/">{% trans 'Статьи' %}</a> |
||||||
|
<strong>{{ object.main_title }}</strong> |
||||||
|
</div> |
||||||
|
{% endblock %} |
||||||
|
|
||||||
|
{% block page_title %} |
||||||
|
{% endblock %} |
||||||
|
|
||||||
|
{% block content_list %} |
||||||
|
<div class="m-article cl-news blog_block"> |
||||||
|
<div class="blog_block_headline"> |
||||||
|
|
||||||
|
{% include 'includes/article/article_logo.html' with obj=object %} |
||||||
|
<h1>{{ object.main_title }}</h1> |
||||||
|
<strong><span>{{ object.publish_date }}</span><a class="profile_link" href="{{ object.author.get_permanent_url }}" title="">{{ object.author.get_full_name }}</a></strong> |
||||||
|
{{ object.description }} |
||||||
|
|
||||||
|
<div class="blog_avtor"> |
||||||
|
<table> |
||||||
|
<tr> |
||||||
|
<th>{% trans 'Автор' %}:</th> |
||||||
|
<td><a href="{{ object.author.get_permanent_url }}" title="">{% include 'includes/show_logo.html' with obj=object.author %}</a></td> |
||||||
|
<td> |
||||||
|
<h3><a href="{{ object.author.get_permanent_url }}" title="">{{ object.author.get_full_name }}</a></h3> |
||||||
|
<a href="#" title="" class="facebook">zherdneva</a> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
<div class="blog_avtor_right"> |
||||||
|
<img src="img/soc.png" class="soc_icons" alt=""> |
||||||
|
{% include 'includes/article_tags.html' with obj=object %} |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="clear"></div> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="rq-to-hide"> |
||||||
|
<div class="s-comments"> |
||||||
|
<div class="sect-title blog_link">{% trans 'Похожие статьи' %}<a class="button more" href="#">{% trans 'Все статьи' %}</a></div> |
||||||
|
<div class="cat-list sc-comments"> |
||||||
|
{% for blog in object.similars %} |
||||||
|
<div class="cl-item"> |
||||||
|
<div class="acticle_list"> |
||||||
|
<a href="{{ blog.get_permanent_url }}" title="">{% include 'includes/show_logo.html' with obj=blog %}</a> |
||||||
|
<h3><a href="{{ blog.get_permanent_url }}" title="">{{ blog.main_title }}</a></h3> |
||||||
|
<p>{{ blog.preview }}</p> |
||||||
|
<strong><span>{{ blog.publish_date }}</span><a href="{{ blog.author.get_permanent_url }}" title=""><i>Евгения Булавина</i></a></strong> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{% endfor %} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{% endblock %} |
||||||
@ -0,0 +1,115 @@ |
|||||||
|
{% extends 'base_catalog.html' %} |
||||||
|
{% load thumbnail %} |
||||||
|
{% load i18n %} |
||||||
|
{% load template_filters %} |
||||||
|
|
||||||
|
{% block bread_scrumbs %} |
||||||
|
<div class="bread-crumbs"> |
||||||
|
<a href="/">{% trans 'Главная страница' %}</a> |
||||||
|
<strong>{% trans 'Статьи' %}</strong> |
||||||
|
</div> |
||||||
|
{% endblock %} |
||||||
|
|
||||||
|
{% block page_title %} |
||||||
|
<div class="page-title"> |
||||||
|
<h1>{% trans 'Статьи' %}:</h1> |
||||||
|
</div> |
||||||
|
{% endblock %} |
||||||
|
|
||||||
|
{% block content_list %} |
||||||
|
<div class="set-sect p-form adm-form"> |
||||||
|
|
||||||
|
<form action="#"> |
||||||
|
<div class="adm-form-body"> |
||||||
|
|
||||||
|
<div class="mf-line mf-line1 s-subj-tag"> |
||||||
|
<div class="mf-field"> |
||||||
|
<label>Тематика:</label> |
||||||
|
<div class="c-select-box select" data-placeholder="Выберите тематику"> |
||||||
|
<div class="csb-selected-items"></div> |
||||||
|
<div class="csb-menu-wrap"> |
||||||
|
<div class="scroll-container csb-menu"> |
||||||
|
<div class="scroll-content clearfix"> |
||||||
|
<ul> |
||||||
|
<li><label><input type="checkbox" name="subj" value="1" />Бизнес, инвестиции, финансы</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="2" />Индустрия развлечений, шоу, СМИ</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="3" />Косметика и парфюмерия</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="4" />Маркетинг, реклама, PR</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="5" />Мебель, интерьер, декор</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="6" />Наука и инновации</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="7" />Анализ, измерение и контроль</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="8" />Здравоохранение</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="9" />Культура, искусство, церковь</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="10" />Менеджмент, HR</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="11" />Транспорт, склад, логистика</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="12" />Экология, очистка, утилизация</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="13" />Безопасность</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="14" />Городское хозяйство</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="15" />Гостиничное, ресторанное дело</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="16" />Нефть, газ, горное дело</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="17" />Строительство</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="18" />Телекоммуникации</label></li> |
||||||
|
</ul> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="mf-field"> |
||||||
|
<label>Теги:</label> |
||||||
|
<div class="c-select-box select" data-placeholder="Выберете ключевые теги"> |
||||||
|
<div class="csb-selected-items"></div> |
||||||
|
<div class="csb-menu-wrap"> |
||||||
|
<div class="scroll-container csb-menu"> |
||||||
|
<div class="scroll-content clearfix"> |
||||||
|
<ul> |
||||||
|
<li><label><input type="checkbox" name="subj" value="1" />Бизнес, инвестиции, финансы</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="2" />Индустрия развлечений, шоу, СМИ</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="3" />Косметика и парфюмерия</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="4" />Маркетинг, реклама, PR</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="5" />Мебель, интерьер, декор</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="6" />Наука и инновации</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="7" />Анализ, измерение и контроль</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="8" />Здравоохранение</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="9" />Культура, искусство, церковь</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="10" />Менеджмент, HR</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="11" />Транспорт, склад, логистика</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="12" />Экология, очистка, утилизация</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="13" />Безопасность</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="14" />Городское хозяйство</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="15" />Гостиничное, ресторанное дело</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="16" />Нефть, газ, горное дело</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="17" />Строительство</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="18" />Телекоммуникации</label></li> |
||||||
|
</ul> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
<div class="rq-to-hide"> |
||||||
|
<div class="s-comments"> |
||||||
|
<div class="cat-list sc-comments"> |
||||||
|
{% for blog in object_list %} |
||||||
|
<div class="cl-item"> |
||||||
|
<div class="acticle_list_big"> |
||||||
|
{% include 'includes/article/article_preview.html' with obj=blog %} |
||||||
|
|
||||||
|
<h3><a href="{{ blog.get_permanent_url }}" title="">{{ blog.main_title }}</a></h3> |
||||||
|
{{ blog.preview }} |
||||||
|
<strong><span>{{ blog.publish_date }}</span>{% include 'includes/article_tags.html' with obj=blog %}</strong> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{% endfor %} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{% endblock %} |
||||||
@ -0,0 +1,58 @@ |
|||||||
|
{% extends 'base_catalog.html' %} |
||||||
|
{% load static %} |
||||||
|
{% load i18n %} |
||||||
|
|
||||||
|
{% block bread_scrumbs %} |
||||||
|
<div class="bread-crumbs"> |
||||||
|
<a href="/">{% trans 'Главная страница' %}</a> |
||||||
|
<a href="/news/">{% trans 'Новости' %}</a> |
||||||
|
<strong>{{ object.main_title }}</strong> |
||||||
|
</div> |
||||||
|
{% endblock %} |
||||||
|
|
||||||
|
{% block page_title %} |
||||||
|
{% endblock %} |
||||||
|
|
||||||
|
{% block content_list %} |
||||||
|
<div class="m-article cl-news blog_block"> |
||||||
|
|
||||||
|
<div class="blog_block_headline"> |
||||||
|
{% include 'includes/show_logo.html' with obj=object %} |
||||||
|
<h1>{{ object.main_title }}</h1> |
||||||
|
<strong><span>{{ object.publish_date }}</span><a class="flag" href="{{ object.get_event.get_permanent_url }}" title="">{{ object.get_event.name }}</a></strong> |
||||||
|
<p>Смартфоны, планшеты, программные решения и аксессуары заполнили каждый свободный метр экспоцентра Барселоны в надежде стать лидером продаж в своем сегменте. За день до официального старта восьмой выставки-конгресса Mobile World Congress глава GSMA Джон Хоффман торжественно отметил новую точку отсчета в богатой истории мероприятия: два монумента, которые появились у входа в экспоцентр, кажется, навсегда закрепили за Барселоной статус столицы мобильной индустрии. </p> |
||||||
|
</div> |
||||||
|
{{ object.description }} |
||||||
|
|
||||||
|
<div class="blog_avtor"> |
||||||
|
<div class="blog_avtormidle"> |
||||||
|
<i>Источник: {{ object.author }}</i> |
||||||
|
{% include 'includes/article_tags.html' with obj=object %} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="blog_avtor"> |
||||||
|
<img src="img/soc.png" class="soc_icons" alt=""> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
<div class="rq-to-hide"> |
||||||
|
|
||||||
|
<div class="s-comments"> |
||||||
|
<div class="sect-title blog_link">Похожие новости<a class="button more" href="#">Все новости</a></div> |
||||||
|
<div class="cat-list sc-comments"> |
||||||
|
{% for news in object.similar %} |
||||||
|
<div class="cl-item"> |
||||||
|
<div class="acticle_list"> |
||||||
|
<a href="#" title=""><img src="img/pic2.jpg" class="pic" alt=""></a> |
||||||
|
<h3><a href="#" title="">Самое интересное на Baby Active' 2014</a></h3> |
||||||
|
<p>С 16 по 18 мая в Выставочном центре «АККО Интернешнл», на территории парка им. А.С. Пушкина, состоится Выставка- |
||||||
|
фестиваль семейного досуга Baby Active' 2014 («Активный ребенок»). </p> |
||||||
|
<strong><span>28 апреля 2014</span><a href="#" title=""><b>РИФ-2014</b></a></strong> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{% endfor %} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{% endblock %} |
||||||
@ -0,0 +1,112 @@ |
|||||||
|
{% extends 'base_catalog.html' %} |
||||||
|
{% load i18n %} |
||||||
|
{% load template_filters %} |
||||||
|
|
||||||
|
{% block bread_scrumbs %} |
||||||
|
<div class="bread-crumbs"> |
||||||
|
<a href="/">{% trans 'Главная страница' %}</a> |
||||||
|
<strong>{% trans 'Новости' %}</strong> |
||||||
|
</div> |
||||||
|
{% endblock %} |
||||||
|
|
||||||
|
{% block page_title %} |
||||||
|
<div class="page-title"> |
||||||
|
<h1>{% trans 'Новости' %}:</h1> |
||||||
|
</div> |
||||||
|
{% endblock %} |
||||||
|
|
||||||
|
{% block content_list %} |
||||||
|
<div class="set-sect p-form adm-form"> |
||||||
|
|
||||||
|
<form action="#"> |
||||||
|
<div class="adm-form-body"> |
||||||
|
|
||||||
|
<div class="mf-line mf-line1 s-subj-tag"> |
||||||
|
<div class="mf-field"> |
||||||
|
<label>Тематика:</label> |
||||||
|
<div class="c-select-box select" data-placeholder="Выберите тематику"> |
||||||
|
<div class="csb-selected-items"></div> |
||||||
|
<div class="csb-menu-wrap"> |
||||||
|
<div class="scroll-container csb-menu"> |
||||||
|
<div class="scroll-content clearfix"> |
||||||
|
<ul> |
||||||
|
<li><label><input type="checkbox" name="subj" value="1" />Бизнес, инвестиции, финансы</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="2" />Индустрия развлечений, шоу, СМИ</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="3" />Косметика и парфюмерия</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="4" />Маркетинг, реклама, PR</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="5" />Мебель, интерьер, декор</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="6" />Наука и инновации</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="7" />Анализ, измерение и контроль</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="8" />Здравоохранение</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="9" />Культура, искусство, церковь</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="10" />Менеджмент, HR</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="11" />Транспорт, склад, логистика</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="12" />Экология, очистка, утилизация</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="13" />Безопасность</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="14" />Городское хозяйство</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="15" />Гостиничное, ресторанное дело</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="16" />Нефть, газ, горное дело</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="17" />Строительство</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="18" />Телекоммуникации</label></li> |
||||||
|
</ul> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="mf-field"> |
||||||
|
<label>Теги:</label> |
||||||
|
<div class="c-select-box select" data-placeholder="Выберете ключевые теги"> |
||||||
|
<div class="csb-selected-items"></div> |
||||||
|
<div class="csb-menu-wrap"> |
||||||
|
<div class="scroll-container csb-menu"> |
||||||
|
<div class="scroll-content clearfix"> |
||||||
|
<ul> |
||||||
|
<li><label><input type="checkbox" name="subj" value="1" />Бизнес, инвестиции, финансы</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="2" />Индустрия развлечений, шоу, СМИ</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="3" />Косметика и парфюмерия</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="4" />Маркетинг, реклама, PR</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="5" />Мебель, интерьер, декор</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="6" />Наука и инновации</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="7" />Анализ, измерение и контроль</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="8" />Здравоохранение</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="9" />Культура, искусство, церковь</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="10" />Менеджмент, HR</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="11" />Транспорт, склад, логистика</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="12" />Экология, очистка, утилизация</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="13" />Безопасность</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="14" />Городское хозяйство</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="15" />Гостиничное, ресторанное дело</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="16" />Нефть, газ, горное дело</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="17" />Строительство</label></li> |
||||||
|
<li><label><input type="checkbox" name="subj" value="18" />Телекоммуникации</label></li> |
||||||
|
</ul> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
<div class="rq-to-hide"> |
||||||
|
<div class="cat-list sc-comments"> |
||||||
|
{% for news in object_list %} |
||||||
|
<div class="cl-item"> |
||||||
|
<div class="acticle_list"> |
||||||
|
<a href="{{ news.get_permanent_url }}" title=""> |
||||||
|
{% include 'includes/article/news_preview.html' with obj=news %}</a> |
||||||
|
<h3><a href="{{ news.get_permanent_url }}" title="">{{ news.main_title }}</a></h3> |
||||||
|
{{ news.preview }} |
||||||
|
<strong><span>{{ news.publish_date }}</span><a href="{{ news.get_event.get_permanent_url }}" title=""><b>{{ news.get_event }}</b></a></strong> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{% endfor %} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{% endblock %} |
||||||
@ -0,0 +1,10 @@ |
|||||||
|
{% load static %} |
||||||
|
{% load thumbnail %} |
||||||
|
|
||||||
|
{% if obj.logo %} |
||||||
|
{% thumbnail obj.logo "100x100" crop="center" as im %} |
||||||
|
<img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}" class="pic" alt=""> |
||||||
|
{% endthumbnail %} |
||||||
|
{% else %} |
||||||
|
<img src="{% static 'client/img/no-logo.png' %}" class="pic" alt="" /> |
||||||
|
{% endif %} |
||||||
@ -0,0 +1,10 @@ |
|||||||
|
{% load static %} |
||||||
|
{% load thumbnail %} |
||||||
|
|
||||||
|
{% if obj.logo %} |
||||||
|
{% thumbnail obj.logo "250x180" crop="center" as im %} |
||||||
|
<img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}" class="pic" alt=""> |
||||||
|
{% endthumbnail %} |
||||||
|
{% else %} |
||||||
|
<img src="{% static 'client/img/no-logo.png' %}" class="pic" alt="" /> |
||||||
|
{% endif %} |
||||||
@ -0,0 +1,10 @@ |
|||||||
|
{% load static %} |
||||||
|
{% load thumbnail %} |
||||||
|
|
||||||
|
{% if obj.logo %} |
||||||
|
{% thumbnail obj.logo "70x70" crop="center" as im %} |
||||||
|
<img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}" class="pic" alt=""> |
||||||
|
{% endthumbnail %} |
||||||
|
{% else %} |
||||||
|
<img src="{% static 'client/img/no-logo.png' %}" class="pic" alt="" /> |
||||||
|
{% endif %} |
||||||
@ -0,0 +1,4 @@ |
|||||||
|
<i class="icon"></i> |
||||||
|
{% for tag in obj.tag.all %} |
||||||
|
<a href="?tag={{ tag.id }}" title="">{{ tag.name }}</a>, |
||||||
|
{% endfor %} |
||||||