parent
898b0b7a9a
commit
00d4420bc8
22 changed files with 122 additions and 1882 deletions
@ -1 +0,0 @@ |
|||||||
__author__ = 'root' |
|
||||||
@ -1 +0,0 @@ |
|||||||
__author__ = 'root' |
|
||||||
@ -1,82 +0,0 @@ |
|||||||
import os |
|
||||||
import MySQLdb |
|
||||||
from MySQLdb.cursors import DictCursor |
|
||||||
from django.core.management.base import BaseCommand |
|
||||||
from accounts.models import User |
|
||||||
|
|
||||||
def create_new_user(data): |
|
||||||
email = data['email'] |
|
||||||
firstname = data['firstname'] |
|
||||||
lastname = data['lastname'] |
|
||||||
position = data['position'] |
|
||||||
web_page = data['web_page'] |
|
||||||
fb = data['fb'] |
|
||||||
li = data['li'] |
|
||||||
sk = data['sk'] |
|
||||||
about = data['about'] |
|
||||||
password = data['password'] |
|
||||||
url = data['url'] |
|
||||||
if not url: |
|
||||||
url = str(data['id']) |
|
||||||
|
|
||||||
user = User(username=email, first_name=firstname, last_name=lastname, email=email, |
|
||||||
is_staff=False, is_active=True, is_superuser=False, password=password, position=position, url=url) |
|
||||||
|
|
||||||
try: |
|
||||||
user.save() |
|
||||||
except: |
|
||||||
return |
|
||||||
profile = user.profile |
|
||||||
|
|
||||||
profile.web_page = web_page |
|
||||||
profile.facebook = fb |
|
||||||
profile.linkedin = li |
|
||||||
profile.skype = sk |
|
||||||
profile.about = about |
|
||||||
try: |
|
||||||
profile.save() |
|
||||||
except: |
|
||||||
pass |
|
||||||
|
|
||||||
return |
|
||||||
|
|
||||||
|
|
||||||
class Command(BaseCommand): |
|
||||||
def handle(self, *args, **options): |
|
||||||
db = MySQLdb.connect(host="localhost", |
|
||||||
user="expomap", |
|
||||||
passwd="7FbLtAGjse", |
|
||||||
db="old_db", |
|
||||||
charset='utf8', |
|
||||||
cursorclass=DictCursor) |
|
||||||
cursor = db.cursor() |
|
||||||
sql = """ |
|
||||||
SELECT customers_id as id, customers_email_address as email, customers_password as password, customers_firstname as firstname , |
|
||||||
customers_lastname as lastname , customers_telephone as phone, customers_job as `position`, customers_web as web_page, |
|
||||||
customers_facebook as fb, customers_linkedin as li, customers_skype as sk, customers_about as about, |
|
||||||
url |
|
||||||
FROM `customers` |
|
||||||
where customers_email_address!='' |
|
||||||
|
|
||||||
""" |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cursor.execute(sql) |
|
||||||
result = cursor.fetchall() |
|
||||||
|
|
||||||
#user.password = result[0]['customers_password'] |
|
||||||
|
|
||||||
for res in result: |
|
||||||
email = res['email'] |
|
||||||
print(email) |
|
||||||
try: |
|
||||||
user = User.objects.get(username=email) |
|
||||||
except User.DoesNotExist: |
|
||||||
user = None |
|
||||||
create_new_user(res) |
|
||||||
if user: |
|
||||||
password = res['password'] |
|
||||||
user.password = password |
|
||||||
user.save() |
|
||||||
@ -1,21 +0,0 @@ |
|||||||
from haystack import indexes |
|
||||||
from models import User |
|
||||||
|
|
||||||
""" |
|
||||||
class UserIndex(indexes.SearchIndex, indexes.Indexable): |
|
||||||
text = indexes.CharField(document=True, use_template=True) |
|
||||||
# first_name = indexes.CharField(model_attr='first_name') |
|
||||||
# last_name = indexes.CharField(model_attr='last_name') |
|
||||||
email = indexes.NgramField(model_attr='email') |
|
||||||
#email = indexes.CharField(model_attr='email') |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def get_model(self): |
|
||||||
return User |
|
||||||
|
|
||||||
|
|
||||||
def index_queryset(self, using=None): |
|
||||||
|
|
||||||
return self.get_model().objects.filter(is_active=True) |
|
||||||
""" |
|
||||||
@ -1,16 +1,11 @@ |
|||||||
from django.conf.urls import patterns, url |
from django.conf.urls import patterns, url |
||||||
from django.contrib.auth.decorators import login_required |
from views import UserView, UserExpositionsView, UserConferenceView |
||||||
from views import SettingsView, ProfileView, CalendarView, UserView, UserExpositionsView, UserConferenceView, UserSeminarView |
|
||||||
|
|
||||||
urlpatterns = patterns('', |
urlpatterns = patterns('', |
||||||
url(r'^(?P<url>.*)/expositions/(?P<page>\d+)/$', UserExpositionsView.as_view(), {'meta_id': 72}), |
url(r'^(?P<url>.*)/expositions/(?P<page>\d+)/$', UserExpositionsView.as_view(), {'meta_id': 72}), |
||||||
url(r'^(?P<url>.*)/expositions/$', UserExpositionsView.as_view(), {'meta_id': 72}), |
url(r'^(?P<url>.*)/expositions/$', UserExpositionsView.as_view(), {'meta_id': 72}), |
||||||
url(r'^(?P<url>.*)/seminars/(?P<page>\d+)/$', UserSeminarView.as_view()), |
|
||||||
url(r'^(?P<url>.*)/seminars/$', UserSeminarView.as_view()), |
|
||||||
url(r'^(?P<url>.*)/conferences/(?P<page>\d+)/$', UserConferenceView.as_view(), {'meta_id': 73}), |
url(r'^(?P<url>.*)/conferences/(?P<page>\d+)/$', UserConferenceView.as_view(), {'meta_id': 73}), |
||||||
url(r'^(?P<url>.*)/conferences/$', UserConferenceView.as_view(), {'meta_id': 73}), |
url(r'^(?P<url>.*)/conferences/$', UserConferenceView.as_view(), {'meta_id': 73}), |
||||||
url(r'^(?P<url>.*)/events/(?P<page>\d+)/$', UserView.as_view()), |
|
||||||
url(r'^(?P<url>.*)/events/$', UserView.as_view()), |
|
||||||
url(r'^(?P<url>.*)/$', UserView.as_view(), {'meta_id': 71}), |
url(r'^(?P<url>.*)/$', UserView.as_view(), {'meta_id': 71}), |
||||||
) |
) |
||||||
|
|
||||||
|
|||||||
@ -1 +0,0 @@ |
|||||||
|
|
||||||
@ -1 +0,0 @@ |
|||||||
|
|
||||||
@ -1,97 +0,0 @@ |
|||||||
from django.core.management.base import BaseCommand, CommandError |
|
||||||
from company.models import Company |
|
||||||
from theme.models import Theme, Tag |
|
||||||
from accounts.models import User |
|
||||||
from functions.form_check import translit_with_separator |
|
||||||
import datetime |
|
||||||
|
|
||||||
import MySQLdb |
|
||||||
from MySQLdb.cursors import DictCursor |
|
||||||
|
|
||||||
def convert_to_int(st): |
|
||||||
if not st: |
|
||||||
return None |
|
||||||
deduct = ('-','(',')','.',' ') |
|
||||||
for elem in deduct: |
|
||||||
st = st.replace(elem, '') |
|
||||||
if st.isdigit(): |
|
||||||
return int(st) |
|
||||||
else: |
|
||||||
return None |
|
||||||
|
|
||||||
class Command(BaseCommand): |
|
||||||
def handle(self, *args, **options): |
|
||||||
db = MySQLdb.connect(host="localhost", |
|
||||||
user="root", |
|
||||||
passwd="qazedc", |
|
||||||
db="expomap_ru", |
|
||||||
charset='utf8', |
|
||||||
cursorclass=DictCursor) |
|
||||||
|
|
||||||
cursor = db.cursor() |
|
||||||
sql = "select * from customers_company" |
|
||||||
cursor.execute(sql) |
|
||||||
|
|
||||||
res = cursor.fetchall() |
|
||||||
|
|
||||||
|
|
||||||
for c in res: |
|
||||||
|
|
||||||
phone = convert_to_int(c.get('phone')) |
|
||||||
fax = convert_to_int(c.get('fax')) |
|
||||||
url = c['url'] |
|
||||||
if not url: |
|
||||||
url = translit_with_separator(c.get('title')) |
|
||||||
|
|
||||||
|
|
||||||
company = Company(id=c['company_id'], url=url, phone=phone, fax=fax, |
|
||||||
email=c.get('email'), web_page=c.get('website'), twitter=c.get('twitter', '')) |
|
||||||
|
|
||||||
company.translate('ru') |
|
||||||
company.name = c.get('title') |
|
||||||
company.specialization = c.get('specialize') |
|
||||||
company.description = c.get('about') |
|
||||||
company.address_inf = c.get('adress') |
|
||||||
user = User.objects.safe_get(id=user_id) |
|
||||||
company.creator = user |
|
||||||
print('not_saved: %s'%c['title']) |
|
||||||
company.save() |
|
||||||
user_id = c['customers_id'] |
|
||||||
print('saved: %s'%str(company)) |
|
||||||
|
|
||||||
if user: |
|
||||||
user.company = company |
|
||||||
if not user.last_login: |
|
||||||
now = datetime.datetime.now() |
|
||||||
user.last_login = now |
|
||||||
|
|
||||||
user.save() |
|
||||||
|
|
||||||
theme = None |
|
||||||
theme_id = c.get('otrasly') |
|
||||||
if theme_id: |
|
||||||
try: |
|
||||||
theme = Theme.objects.get(id=theme_id) |
|
||||||
except Theme.DoesNotExist: |
|
||||||
continue |
|
||||||
company.theme.add(theme) |
|
||||||
|
|
||||||
if not theme: |
|
||||||
continue |
|
||||||
|
|
||||||
tags = c.get('tags') |
|
||||||
if tags: |
|
||||||
tags = tags.split(',') |
|
||||||
if tags: |
|
||||||
for tag_id in tags: |
|
||||||
try: |
|
||||||
tag = Tag.objects.get(id=tag_id) |
|
||||||
except Tag.DoesNotExist: |
|
||||||
continue |
|
||||||
if tag.theme == theme: |
|
||||||
company.tag.add(tag) |
|
||||||
else: |
|
||||||
continue |
|
||||||
|
|
||||||
#print(str(type(res[0]['phone']))) |
|
||||||
print('success') |
|
||||||
@ -1,77 +0,0 @@ |
|||||||
from django.core.management.base import BaseCommand, CommandError |
|
||||||
from company.models import Company |
|
||||||
from theme.models import Theme, Tag |
|
||||||
from accounts.models import User |
|
||||||
from functions.form_check import translit_with_separator |
|
||||||
import datetime |
|
||||||
|
|
||||||
import MySQLdb |
|
||||||
from MySQLdb.cursors import DictCursor |
|
||||||
|
|
||||||
def convert_to_int(st): |
|
||||||
if not st: |
|
||||||
return None |
|
||||||
deduct = ('-','(',')','.',' ') |
|
||||||
for elem in deduct: |
|
||||||
st = st.replace(elem, '') |
|
||||||
if st.isdigit(): |
|
||||||
return int(st) |
|
||||||
else: |
|
||||||
return None |
|
||||||
|
|
||||||
class Command(BaseCommand): |
|
||||||
def handle(self, *args, **options): |
|
||||||
db = MySQLdb.connect(host="localhost", |
|
||||||
user="root", |
|
||||||
passwd="qazedc", |
|
||||||
db="expomap_ru", |
|
||||||
charset='utf8', |
|
||||||
cursorclass=DictCursor) |
|
||||||
|
|
||||||
cursor = db.cursor() |
|
||||||
sql = "select * from customers_company WHere otrasly>0" |
|
||||||
cursor.execute(sql) |
|
||||||
|
|
||||||
res = cursor.fetchall() |
|
||||||
print(len(res)) |
|
||||||
|
|
||||||
for c in res: |
|
||||||
id = c['company_id'] |
|
||||||
company = Company.objects.safe_get(id=id) |
|
||||||
if not company: |
|
||||||
continue |
|
||||||
|
|
||||||
theme_id = c.get('otrasly') |
|
||||||
tags = c.get('tags') |
|
||||||
|
|
||||||
|
|
||||||
if theme_id: |
|
||||||
try: |
|
||||||
theme = Theme.objects.get(id=theme_id) |
|
||||||
except Theme.DoesNotExist: |
|
||||||
continue |
|
||||||
print(theme) |
|
||||||
print(company) |
|
||||||
company.theme.add(theme) |
|
||||||
print('add %s theme to %s company'%(str(theme), str(company))) |
|
||||||
print('123') |
|
||||||
if not theme: |
|
||||||
continue |
|
||||||
|
|
||||||
|
|
||||||
tags = c.get('tags') |
|
||||||
if tags: |
|
||||||
tags = tags.split(',') |
|
||||||
if tags: |
|
||||||
for tag_id in tags: |
|
||||||
try: |
|
||||||
tag = Tag.objects.get(id=tag_id) |
|
||||||
except Tag.DoesNotExist: |
|
||||||
continue |
|
||||||
if tag.theme == theme: |
|
||||||
company.tag.add(tag) |
|
||||||
print('add %s tag to %s company'%(str(tag), str(company))) |
|
||||||
else: |
|
||||||
continue |
|
||||||
|
|
||||||
|
|
||||||
@ -1,481 +0,0 @@ |
|||||||
{% extends 'base_catalog.html' %} |
|
||||||
{% load static %} |
|
||||||
{% load i18n %} |
|
||||||
{% load template_filters %} |
|
||||||
{% block style %} |
|
||||||
<link rel="stylesheet" href="{% static 'client/css/select2.css' %}"> |
|
||||||
<style> |
|
||||||
.add_link_teg .tag-select{float: left;margin: 0 13px 0 0;min-height: 36px;} |
|
||||||
</style> |
|
||||||
{% endblock %} |
|
||||||
{% 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 %} |
|
||||||
<div class="m-article"> |
|
||||||
<div class="item-wrap clearfix"> |
|
||||||
|
|
||||||
<aside> |
|
||||||
<div class="i-pict"> |
|
||||||
<a class="add_pic_block" title=""> |
|
||||||
<span></span> |
|
||||||
<i>{% trans 'Добавить лого' %}</i> |
|
||||||
<b>+20</b> |
|
||||||
</a> |
|
||||||
</div> |
|
||||||
<div class="i-rating" title="Рейтинг: 551">551</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 and home_form.instance.city %} |
|
||||||
<span> |
|
||||||
{% else %} |
|
||||||
<span style="display:none;"> |
|
||||||
{% endif %} |
|
||||||
<a href="#" id="static-home-country">{{ home_form.instance.country }}</a> |
|
||||||
</span> |
|
||||||
{% if home_form.instance.country and home_form.instance.city %} |
|
||||||
<span> |
|
||||||
{% else %} |
|
||||||
<span style="display:none;"> |
|
||||||
{% endif %} |
|
||||||
, <a href="#" id="static-home-city">{{ 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="">{% trans 'Указать' %}</a> |
|
||||||
<div class="add_link_text_text">{% trans 'свой город' %}<b>+5</b></div> |
|
||||||
{% endif %} |
|
||||||
<form class="clearfix update-profile-form" id="home_form" action="/company/update/home/" method="post">{% csrf_token %} |
|
||||||
<div class="e-form"> |
|
||||||
<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"> |
|
||||||
{{ home_form.city }} |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<div class="ef-buttons"> |
|
||||||
<button type="submit" class="lnk icon-save">{% trans 'Сохранить' %}</button> |
|
||||||
</div> |
|
||||||
<a class="ef-close" href="#">{% trans 'закрыть' %}</a> |
|
||||||
</div> |
|
||||||
</form> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<div class="site_link"> |
|
||||||
<a href="{{ request.user.company.get_permanent_url }}" title=""> |
|
||||||
{{ request.user.company.get_permanent_url }} |
|
||||||
</a> |
|
||||||
</div> |
|
||||||
<div class="i-title p-editable p-editable"> |
|
||||||
<span id="static-name-value">{{ name_form.name.value }}</span> |
|
||||||
<div class="edit-wrap"> |
|
||||||
<a class="e-btn" href="#">{% trans 'редактировать' %}</a> |
|
||||||
<div class="e-form"> |
|
||||||
<form class="clearfix update-profile-form" id="name_form" action="/company/update/name/" method="post">{% csrf_token %} |
|
||||||
<div class="ef-body"> |
|
||||||
<div class="epfl"> |
|
||||||
<label>{{ name_form.name.label }}</label> |
|
||||||
<div class="epf-field"> |
|
||||||
{{ name_form.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> |
|
||||||
<div class="{% if spec_form.specialization.value %}i-position p-editable{% else %}i-descr p-editable add_link_text add_link_text_top{% endif %}"> |
|
||||||
{% if spec_form.specialization.value %} |
|
||||||
<span id="static-spec-value">{{ spec_form.specialization.value }}</span> |
|
||||||
{% endif %} |
|
||||||
<div class="edit-wrap"> |
|
||||||
{% if spec_form.specialization.value %} |
|
||||||
<a class="e-btn" href="#">{% trans 'редактировать' %}</a> |
|
||||||
{% else %} |
|
||||||
<a class="e-btn" href="#" title="">{% trans 'Добавить' %}</a> |
|
||||||
<div class="add_link_text_text">{% trans 'краткое описание компании' %} <b>+20</b></div> |
|
||||||
{% endif %} |
|
||||||
<div class="e-form"> |
|
||||||
<form class="clearfix update-profile-form" id="spec_form" action="/company/update/specialization/" method="post">{% csrf_token %} |
|
||||||
<div class="ef-body"> |
|
||||||
|
|
||||||
<div class="epf-field"> |
|
||||||
<label>{{ spec_form.specialization.label }}</label> |
|
||||||
<div class="epf-field"> |
|
||||||
{{ spec_form.specialization }} |
|
||||||
</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="i-area" id="theme-inf" data-theme="{% for th in request.user.company.theme.all %}{{ th.id }},{% endfor %}"> |
|
||||||
{% for th in request.user.company.theme.all %} |
|
||||||
<a href="/members/theme-{{ th.url }}">{{ th.name }}</a>{% ifnotequal forloop.counter request.user.company.theme.all|length %},{% endifnotequal %} |
|
||||||
{% endfor %} |
|
||||||
</div> |
|
||||||
<hr /> |
|
||||||
<div class="{% if address_form.address_inf.value %}ic-tel p-editable{% else %}p-editable add_link_text add_link_text_medium{% endif %}"> |
|
||||||
{% if address_form.address_inf.value %} |
|
||||||
<span id="static-address-value">{{ address_form.address_inf.value }}</span> |
|
||||||
{% endif %} |
|
||||||
<div class="edit-wrap"> |
|
||||||
{% if address_form.address_inf.value %} |
|
||||||
<a class="e-btn" href="#">{% trans 'редактировать' %}</a> |
|
||||||
{% else %} |
|
||||||
<a class="e-btn" href="#" title="">{% trans 'Добавить' %}</a> |
|
||||||
<div class="add_link_text_text">{% trans 'адрес компании' %} <b>+15</b></div> |
|
||||||
{% endif %} |
|
||||||
<div class="e-form"> |
|
||||||
<form class="clearfix update-profile-form" id="address_form" action="/company/update/address/" method="post">{% csrf_token %} |
|
||||||
<div class="ef-body"> |
|
||||||
<div class="epf-field"> |
|
||||||
<label>{{ address_form.address_inf.label }}</label> |
|
||||||
{{ address_form.address_inf }} |
|
||||||
</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> |
|
||||||
<hr /> |
|
||||||
<div class="add_link_teg"> |
|
||||||
<div class="tag-select">{{ tag_form.tag }}</div> |
|
||||||
<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="#">{% trans 'редактировать профиль' %}</a> |
|
||||||
<a class="button orange icon-edit icb-exit-edit" href="#">{% trans 'завершить редактирование' %}</a> |
|
||||||
<div class="ic-buttons_text">{% trans 'Добавить профили в соц.сетях' %}:</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="">{% trans 'Добавить' %}</a> |
|
||||||
<ul class="soc-media-buttons soc-media-buttons1"> |
|
||||||
<li> |
|
||||||
{% if social_form.facebook.value %} |
|
||||||
<a href="{{ social_form.facebook.value }}" target="_blank"> |
|
||||||
<img id="img-facebook" src="{% static 'client/img/soc-medias/sm-icon-fb.png' %}" title="Facebook" alt="Facebook" /> |
|
||||||
</a> |
|
||||||
{% else %} |
|
||||||
<img id="img-facebook" src="{% static 'client/img/soc-medias/icon-fb_hover.png' %}" title="Facebook" alt="Facebook" /> |
|
||||||
{% endif %} |
|
||||||
</li> |
|
||||||
<li> |
|
||||||
{% if social_form.linkedin.value %} |
|
||||||
<a href="{{ social_form.linkedin.value }}" target="_blank"> |
|
||||||
<img id="img-linkedin" src="{% static 'client/img/soc-medias/sm-icon-lin.png' %}" title="LinkedIn" alt="LinkedIn" /> |
|
||||||
</a> |
|
||||||
{% else %} |
|
||||||
<img id="img-linkedin" src="{% static 'client/img/soc-medias/icon-lin_hover.png' %}" title="LinkedIn" alt="LinkedIn" /> |
|
||||||
{% endif %} |
|
||||||
<li> |
|
||||||
{% if social_form.vk.value %} |
|
||||||
<a href="{{ social_form.vk.value }}" target="_blank"> |
|
||||||
<img id="img-vk" src="{% static 'client/img/soc-medias/sm-icon-vk.png' %}" title="В контакте" alt="В контакте" /> |
|
||||||
</a> |
|
||||||
{% else %} |
|
||||||
<img id="img-vk" src="{% static 'client/img/soc-medias/sm-icon-vk_hover.png' %}" title="В контакте" alt="В контакте" /> |
|
||||||
{% endif %} |
|
||||||
</li> |
|
||||||
<li> |
|
||||||
{% if social_form.twitter.value %} |
|
||||||
<a href="{{ social_form.twitter.value }}" target="_blank"> |
|
||||||
<img id="img-twitter" src="{% static 'client/img/soc-medias/sm-icon-twit.png' %}" title="Twitter" alt="Twitter" /> |
|
||||||
</a> |
|
||||||
{% else %} |
|
||||||
<img id="img-twitter" src="{% static 'client/img/soc-medias/sm-icon-twit_hover.png' %}" title="Twitter" alt="Twitter" /> |
|
||||||
{% endif %} |
|
||||||
</li> |
|
||||||
</ul> |
|
||||||
<div class="add_link_text_text"><b>+5 {% trans 'за каждый' %}</b></div> |
|
||||||
<div class="e-form"> |
|
||||||
<form class="clearfix update-profile-form" id="social_form" action="/company/update/social/" method="post">{% csrf_token %} |
|
||||||
<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="ic-links ic-links_indent dd_width_5"> |
|
||||||
<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 id="static-phone-value">{{ 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="">{% trans 'Добавить' %}</a> |
|
||||||
<div class="add_link_text_text">{% trans 'номер телефона' %} <b>+15</b></div> |
|
||||||
{% endif %} |
|
||||||
<div class="e-form"> |
|
||||||
<form class="clearfix update-profile-form" id="phone_form" action="/company/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="{% if email_form.email.value %}ic-tel p-editable{% else %}p-editable add_link_text add_link_text_medium{% endif %}"> |
|
||||||
{% if email_form.email.value %} |
|
||||||
<div class="ic-mail add_indent "> |
|
||||||
<a id="static-email-value" class="icon-mail" href="mailto:{{ email_form.email.value }}">{{ email_form.email.value }}</a> |
|
||||||
</div> |
|
||||||
{% endif %} |
|
||||||
<div class="edit-wrap"> |
|
||||||
{% if email_form.email.value %} |
|
||||||
<a class="e-btn" href="#">{% trans 'редактировать' %}</a> |
|
||||||
{% else %} |
|
||||||
<a class="e-btn" href="#" title="">{% trans 'Добавить' %}</a> |
|
||||||
<div class="add_link_text_text">email <b>+15</b></div> |
|
||||||
{% endif %} |
|
||||||
<div class="e-form"> |
|
||||||
<form class="clearfix update-profile-form" id="email_form" action="/company/update/email/" method="post">{% csrf_token %} |
|
||||||
<div class="ef-body"> |
|
||||||
|
|
||||||
<div class="epfl"> |
|
||||||
<label>{{ email_form.email.label }}</label> |
|
||||||
<div class="epf-field"> |
|
||||||
{{ email_form.email }} |
|
||||||
</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="{% 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 id="static-web-page-value" 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="">{% trans 'Добавить' %}</a> |
|
||||||
<div class="add_link_text_text">{% trans сайт' %} <b>+5</b></div> |
|
||||||
{% endif %} |
|
||||||
<div class="e-form"> |
|
||||||
<form class="clearfix update-profile-form" id="web_page_form" action="/company/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="i-additional"> |
|
||||||
<div class="ia-title">{% trans 'Дополнительная информация' %}</div> |
|
||||||
<div class="p-editable {% if found_form.foundation.value %}ic-tel ic-links {% else %}add_link_text add_link_text_medium{% endif %}"> |
|
||||||
<p id="static-found-value" style="{% if found_form.foundation.value == '' or found_form.foundation.value == None %}display:none;{% endif %}">{% trans 'Год основания' %}: <span>{{ found_form.foundation.value }}</span></p> |
|
||||||
<div class="edit-wrap"> |
|
||||||
<a class="e-btn" href="#" >{% trans 'редактировать' %}</a> |
|
||||||
<div id="static-foundation" style="{% if found_form.foundation.value %} display:none;{% endif %}"> |
|
||||||
<a class="e-btn" href="#" title="">{% trans 'Добавить' %}</a> |
|
||||||
<div class="add_link_text_text">{% trans 'год основания' %} <b>+15</b></div> |
|
||||||
</div> |
|
||||||
<div class="e-form"> |
|
||||||
<form class="clearfix update-profile-form" id="found_form" action="/company/update/foundation/" method="post">{% csrf_token %} |
|
||||||
<div class="ef-body"> |
|
||||||
<div class="epfl"> |
|
||||||
<label>{{ found_form.foundation.label }}</label> |
|
||||||
<div class="epf-field"> |
|
||||||
{{ found_form.foundation }} |
|
||||||
</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="p-editable {% if staff_form.staff_number.value %}ic-tel ic-links {% else %}add_link_text add_link_text_medium{% endif %}"> |
|
||||||
<p id="static-staff_number-value" style="{% if staff_form.staff_number.value == '' or staff_form.staff_number.value == None %}display:none;{% endif %}">{% trans 'к-во сотрудников' %}: <span id="static-staff-value">{{ staff_form.staff_number.value }}</span></p> |
|
||||||
<div class="edit-wrap"> |
|
||||||
<a class="e-btn" href="#">{% trans 'редактировать' %}</a> |
|
||||||
<div id="static-staff_number" style="{% if staff_form.staff_number.value %} display:none;{% endif %}"> |
|
||||||
<a class="e-btn" href="#" title="">{% trans 'Добавить' %}</a> |
|
||||||
<div class="add_link_text_text">{% trans 'к-во сотрудников' %} <b>+15</b></div> |
|
||||||
</div> |
|
||||||
<div class="e-form"> |
|
||||||
<form class="clearfix update-profile-form" id="staff_form" action="/company/update/staff/" method="post">{% csrf_token %} |
|
||||||
<div class="ef-body"> |
|
||||||
<div class="epfl"> |
|
||||||
<label>{{ staff_form.staff_number.label }}</label> |
|
||||||
<div class="epf-field"> |
|
||||||
{{ staff_form.staff_number }} |
|
||||||
</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="p-editable {% if description_form.description.value %}ic-tel {% else %}add_link_text add_link_text_medium{% endif %}"> |
|
||||||
<span id="static-description-value" style="{% if description_form.description.value == '' or description_form.description.value == None %}display:none;{% endif %}">{{ description_form.description.value }}</span> |
|
||||||
<div class="edit-wrap"> |
|
||||||
<a class="e-btn" href="#">{% trans 'редактировать' %}</a> |
|
||||||
<div id="static-description" style="{% if description_form.description.value %} display:none;{% endif %}"> |
|
||||||
<a class="e-btn" href="#" title="">{% trans 'Добавить' %}</a> |
|
||||||
<div class="add_link_text_text">{% trans 'подробное описание компании' %}<b>+15</b></div> |
|
||||||
</div> |
|
||||||
<div class="e-form"> |
|
||||||
<form class="clearfix update-profile-form" id="description_form" action="/company/update/description/" method="post">{% csrf_token %} |
|
||||||
<div class="ef-body"> |
|
||||||
|
|
||||||
<div class="epfl"> |
|
||||||
<label>{{ description_form.description.label }}</label> |
|
||||||
<div class="epf-field"> |
|
||||||
{{ description_form.description }} |
|
||||||
</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> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
{% endblock %} |
|
||||||
{% block pre_scripts %} |
|
||||||
<script src="{% static 'client/js/plugins/select2.min.js' %}"></script> |
|
||||||
<script src="{% static 'client/js/plugins/select2_locale_ru.js' %}"></script> |
|
||||||
{% endblock %} |
|
||||||
{% block scripts %} |
|
||||||
<script src="{% static 'client/js/plugins/inputmask/jquery.inputmask.js' %}"></script> |
|
||||||
<script src="{% static 'client/js/plugins/inputmask/jquery.bind-first-0.2.3.min.js' %}"></script> |
|
||||||
<script src="{% static 'client/js/plugins/inputmask/jquery.inputmask-multi.js' %}"></script> |
|
||||||
{% if request.GET.debug == '1' %} |
|
||||||
<script src="{% static 'client/js/_modules/page.company.js' %}"></script> |
|
||||||
{% else %} |
|
||||||
<script src="{% static 'client/js_min/_modules/page.company.min.js' %}"></script> |
|
||||||
{% endif %}<script> |
|
||||||
EXPO.company.init({ |
|
||||||
updateFormClass:'update-profile-form', |
|
||||||
selectBox:[ |
|
||||||
{id:'id_country'}, |
|
||||||
{id:'id_city', |
|
||||||
placeHolder:"{% trans 'Поиск города' %}", |
|
||||||
path:'http://{{ request.get_host }}/city/get-city/' |
|
||||||
}, |
|
||||||
{id:'id_tag', |
|
||||||
placeholder:"{% trans 'Выберите ключевые теги' %}", |
|
||||||
path:'http://{{ request.get_host }}/theme/get-tag/' |
|
||||||
} |
|
||||||
], |
|
||||||
phoneBox: 'id_phone', |
|
||||||
lang:{ |
|
||||||
workIn:"{% trans 'в' %}" |
|
||||||
} |
|
||||||
|
|
||||||
}); |
|
||||||
</script> |
|
||||||
{% endblock %} |
|
||||||
@ -1,436 +0,0 @@ |
|||||||
{% extends 'base_catalog.html' %} |
|
||||||
{% load static %} |
|
||||||
{% load i18n %} |
|
||||||
{% load template_filters %} |
|
||||||
{% load thumbnail %} |
|
||||||
{% block style %} |
|
||||||
<link rel="stylesheet" href="{% static 'client/css/select2.css' %}"> |
|
||||||
{% if not company_form %} |
|
||||||
<style> |
|
||||||
.add_company a:before { content:'';background: none; display: inline-block !important;} |
|
||||||
.add_company a:hover:before {background: none !important;} |
|
||||||
</style> |
|
||||||
{% endif %} |
|
||||||
{% endblock %} |
|
||||||
{% block bread_scrumbs %} |
|
||||||
<div class="bread-crumbs"> |
|
||||||
<a href="/">{% trans 'Главная страница' %}</a> |
|
||||||
<strong>{% trans 'Личный кабинет' %}</strong> |
|
||||||
</div> |
|
||||||
{% endblock %} |
|
||||||
{% block page_title %} |
|
||||||
{% endblock %} |
|
||||||
{% block content_list %} |
|
||||||
<div class="m-article"> |
|
||||||
<div class="item-wrap clearfix"> |
|
||||||
<aside> |
|
||||||
<div class="i-pict p-editable"> |
|
||||||
<form class="clearfix update-profile-form" enctype="multipart/form-data" id="avatar_form" action="/profile/update/avatar/" method="post">{% csrf_token %} |
|
||||||
{% if request.user.profile.avatar %} |
|
||||||
<a class="pic_block" style="padding-top: 0;" title="" id="pick-block"> |
|
||||||
{% thumbnail request.user.profile.avatar "100x100" crop="center" as im %} |
|
||||||
<img clas="user-avatar" src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}"> |
|
||||||
{% endthumbnail %} |
|
||||||
{% else %} |
|
||||||
<a class="add_pic_block" title="" id="pick-block"> |
|
||||||
<p class="add-wrapper"> |
|
||||||
<span></span> |
|
||||||
<i>Добавить фото</i> |
|
||||||
<b>+20</b> |
|
||||||
</p> |
|
||||||
{% endif %} |
|
||||||
{{ avatar_form.avatar }} |
|
||||||
</a> |
|
||||||
<span class="pic-edit-photo-wrap"><a href="javascript:void(0);" id="pic-edit-photo" class="pic-edit-photo" {% if not request.user.profile.avatar %}style="display:none;"{% endif %}>Изменить фото</a></span> |
|
||||||
</form> |
|
||||||
</div> |
|
||||||
<div class="i-rating" title="Рейтинг: 551">551</div> |
|
||||||
<div class="reason_block"> |
|
||||||
{% blocktrans %} |
|
||||||
<p>Заполните свой<br>профиль, чтобы<br>повысить рейтинг</p> |
|
||||||
<p>Чем выше<br>рейтинг —<br>тем больше<br>преимуществ!</p> |
|
||||||
{% endblocktrans %} |
|
||||||
</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 and home_form.instance.city %} |
|
||||||
<span> |
|
||||||
{% else %} |
|
||||||
<span style="display:none;"> |
|
||||||
{% endif %} |
|
||||||
<a href="#" id="static-home-country">{{ home_form.instance.country }}</a> |
|
||||||
</span> |
|
||||||
|
|
||||||
{% if home_form.instance.country and home_form.instance.city %} |
|
||||||
<span> |
|
||||||
{% else %} |
|
||||||
<span style="display:none;"> |
|
||||||
{% endif %} |
|
||||||
, <a href="#" id="static-home-city">{{ 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 update-profile-form" id="home_form" action="/profile/update/home/" method="post">{% csrf_token %} |
|
||||||
|
|
||||||
<div class="ef-body"> |
|
||||||
|
|
||||||
<div class="epfl"> |
|
||||||
<label>{% trans 'Страна' %}</label> |
|
||||||
<div class="epf-field"> |
|
||||||
{{ home_form.country }} |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
|
|
||||||
<div class="epfl"> |
|
||||||
<label>{% trans 'Город' %}</label> |
|
||||||
<div class="epf-field"> |
|
||||||
{{ home_form.city }} |
|
||||||
</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="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"> |
|
||||||
<span id="static-name-value"> |
|
||||||
{{ name_form.get_full_name }} |
|
||||||
</span> |
|
||||||
<div class="edit-wrap"> |
|
||||||
<a class="e-btn" href="#">{% trans 'редактировать' %}</a> |
|
||||||
<div class="e-form"> |
|
||||||
<form class="clearfix update-profile-form" 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 #} |
|
||||||
<div class="{% if work_form.position.value and work_form.company.value %}p-editable{% else %}i-descr p-editable add_link_text add_link_text_top{% endif %}"> |
|
||||||
{% if work_form.position.value and work_form.company.value %} |
|
||||||
<p id="static-work-value"> |
|
||||||
{{ work_form.position.value }} |
|
||||||
{% if work_form.company.value %} |
|
||||||
{% trans 'в' %} <a href="{{ request.user.company.get_permanent_url }}">"{{ request.user.company.name }}"</a> |
|
||||||
{% endif %} |
|
||||||
</p> |
|
||||||
{% endif %} |
|
||||||
<div class="edit-wrap"> |
|
||||||
{% if work_form.position.value and work_form.company.value %} |
|
||||||
<a class="e-btn" href="/profile/company/">{% trans 'редактировать' %}</a> |
|
||||||
{% else %} |
|
||||||
<a class="e-btn" href="#" title="">{% trans 'Указать' %}</a> |
|
||||||
<div class="add_link_text_text">{% trans 'свою должность и место работы' %} <b>+10</b></div> |
|
||||||
{% endif %} |
|
||||||
<div class="e-form"> |
|
||||||
<form class="clearfix update-profile-form" 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.company.label }}</label> |
|
||||||
<div class="epf-field"> |
|
||||||
{{ work_form.company }} |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<div class="add_company"><a id="add-comp-btn" class="pw-open" href="{% if not company_form %}/profile/company/{% else %}#pw-company{% endif %}" title="">{% if not company_form %}Изменить{% 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="#">{% trans 'редактировать профиль' %}</a> |
|
||||||
<a class="button orange icon-edit icb-exit-edit" href="#">{% trans 'завершить редактирование' %}</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="">{% trans 'Добавить' %}</a> |
|
||||||
|
|
||||||
<ul class="soc-media-buttons soc-media-buttons1"> |
|
||||||
<li> |
|
||||||
{% if social_form.facebook.value %} |
|
||||||
<a href="{{ social_form.facebook.value }}" target="_blank"> |
|
||||||
<img id="img-facebook" src="{% static 'client/img/soc-medias/sm-icon-fb.png' %}" title="Facebook" alt="Facebook" /> |
|
||||||
</a> |
|
||||||
{% else %} |
|
||||||
<img id="img-facebook" src="{% static 'client/img/soc-medias/sm-icon-fb_hover.png' %}" title="Facebook" alt="Facebook" /> |
|
||||||
{% endif %} |
|
||||||
</li> |
|
||||||
<li> |
|
||||||
{% if social_form.linkedin.value %} |
|
||||||
<a href="{{ social_form.linkedin.value }}" target="_blank"> |
|
||||||
<img id="img-linkedin" src="{% static 'client/img/soc-medias/sm-icon-lin.png' %}" title="LinkedIn" alt="LinkedIn" /> |
|
||||||
</a> |
|
||||||
{% else %} |
|
||||||
<img id="img-linkedin" src="{% static 'client/img/soc-medias/sm-icon-lin_hover.png' %}" title="LinkedIn" alt="LinkedIn" /> |
|
||||||
{% endif %} |
|
||||||
|
|
||||||
<li> |
|
||||||
{% if social_form.vk.value %} |
|
||||||
<a href="{{ social_form.vk.value }}" target="_blank"> |
|
||||||
<img id="img-vk" src="{% static 'client/img/soc-medias/sm-icon-vk.png' %}" title="В контакте" alt="В контакте" /> |
|
||||||
</a> |
|
||||||
{% else %} |
|
||||||
<img id="img-vk" src="{% static 'client/img/soc-medias/sm-icon-vk_hover.png' %}" title="В контакте" alt="В контакте" /> |
|
||||||
{% endif %} |
|
||||||
</li> |
|
||||||
|
|
||||||
<li> |
|
||||||
{% if social_form.twitter.value %} |
|
||||||
<a href="{{ social_form.twitter.value }}" target="_blank"> |
|
||||||
<img id="img-twitter" src="{% static 'client/img/soc-medias/sm-icon-twit.png' %}" title="Twitter" alt="Twitter" /> |
|
||||||
</a> |
|
||||||
{% else %} |
|
||||||
<img id="img-twitter" src="{% static 'client/img/soc-medias/sm-icon-twit_hover.png' %}" title="Twitter" alt="Twitter" /> |
|
||||||
{% endif %} |
|
||||||
</li></li> |
|
||||||
</ul> |
|
||||||
<div class="add_link_text_text"><b>+5 {% trans 'за каждый' %}</b></div> |
|
||||||
<div class="e-form"> |
|
||||||
<form class="clearfix update-profile-form" id="social_form" action="/profile/update/social/">{% csrf_token %} |
|
||||||
<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="ic-links ic-links_indent dd_width_5"> |
|
||||||
<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 id="static-phone-value">{{ 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="">{% trans 'Добавить' %}</a> |
|
||||||
<div class="add_link_text_text">{% trans 'номер телефона' %} <b>+15</b></div> |
|
||||||
{% endif %} |
|
||||||
|
|
||||||
<div class="e-form"> |
|
||||||
<form class="clearfix update-profile-form" 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:{{ request.user.email }}">{{ request.user.email }}</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" id="static-web-page-value" 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="">{% trans 'Добавить' %}</a> |
|
||||||
<div class="add_link_text_text">{% trans 'сайт' %} <b>+5</b></div> |
|
||||||
{% endif %} |
|
||||||
<div class="e-form"> |
|
||||||
<form class="clearfix update-profile-form" 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 id="static-about-value">{{ 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="">{% trans 'Добавить' %}</a> |
|
||||||
<div class="add_link_text_text">{% trans 'информацию о себе' %} <b>+10</b></div> |
|
||||||
{% endif %} |
|
||||||
<div class="e-form"> |
|
||||||
<form class="clearfix update-profile-form" 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">{% trans 'Сохранить' %}</button> |
|
||||||
</div> |
|
||||||
</form> |
|
||||||
<a class="ef-close" href="#">{% trans 'закрыть' %}</a> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
{% block scripts %} |
|
||||||
<script src="{% static 'client/js/plugins/inputmask/jquery.inputmask.js' %}"></script> |
|
||||||
<script src="{% static 'client/js/plugins/inputmask/jquery.bind-first-0.2.3.min.js' %}"></script> |
|
||||||
<script src="{% static 'client/js/plugins/inputmask/jquery.inputmask-multi.js' %}"></script> |
|
||||||
{% if request.GET.debug == '1' %} |
|
||||||
<script src="{% static 'client/js/_modules/page.profile.js' %}"></script> |
|
||||||
{% else %} |
|
||||||
<script src="{% static 'client/js_min/_modules/page.profile.min.js' %}"></script> |
|
||||||
{% endif %} |
|
||||||
<script> |
|
||||||
EXPO.profile.init({ |
|
||||||
updateFormClass:'update-profile-form', |
|
||||||
selectBox:[ |
|
||||||
{id:'id_country'}, |
|
||||||
{id:'id_theme', |
|
||||||
placeHolder:"{% trans 'Выберите тематику компании' %}" |
|
||||||
}, |
|
||||||
{id:'id_city', |
|
||||||
placeholder:"{% trans 'Искать город' %}", |
|
||||||
path:'http://{{ request.get_host }}/city/get-city/' |
|
||||||
}, |
|
||||||
{id:'id_company', |
|
||||||
placeholder:"{% trans 'Искать компанию' %}", |
|
||||||
path:'http://{{ request.get_host }}/company/get-company/' |
|
||||||
} |
|
||||||
], |
|
||||||
phoneBox: 'id_phone', |
|
||||||
lang:{ |
|
||||||
workIn:"{% trans 'в' %}" |
|
||||||
} |
|
||||||
}); |
|
||||||
</script> |
|
||||||
{% endblock %} |
|
||||||
</div> |
|
||||||
{% endblock %} |
|
||||||
{% block popup %} |
|
||||||
{% if company_form %} |
|
||||||
{% include 'popups/create_company.html' with form=company_form %} |
|
||||||
{% endif %} |
|
||||||
{% endblock %} |
|
||||||
|
|
||||||
{% block pre_scripts %} |
|
||||||
<script src="{% static 'client/js/plugins/select2.min.js' %}"></script> |
|
||||||
<script src="{% static 'client/js/plugins/select2_locale_ru.js' %}"></script> |
|
||||||
{% endblock %} |
|
||||||
|
|
||||||
|
|
||||||
@ -1,366 +0,0 @@ |
|||||||
{% 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"> |
|
||||||
{# avatar #} |
|
||||||
<aside> |
|
||||||
<div class="i-pict p-editable"> |
|
||||||
{% if request.user.profile.avatar %} |
|
||||||
<img src="{{ request.user.profile.avatar.url }}" alt="" /> |
|
||||||
{% endif %} |
|
||||||
<div class="edit-wrap"> |
|
||||||
<a class="e-btn" href="#">{% trans 'редактировать' %}</a> |
|
||||||
<div class="e-form"> |
|
||||||
<form class="clearfix update-profile-form" enctype="multipart/form-data" id="avatar_form"action="/profile/update/avatar/" method="post">{% csrf_token %} |
|
||||||
<div class="ef-body"> |
|
||||||
<div class="epfl"> |
|
||||||
<label>{{ avatar_form.avatar.label }}</label> |
|
||||||
<div class="epf-field"> |
|
||||||
<div class="input-file clearfix"> |
|
||||||
<div class="button icon-clip">{% trans 'выберите файл' %}</div> |
|
||||||
<div class="file-text placehlder">{% trans 'Файл не выбран' %}</div> |
|
||||||
<div class="if-field-wrap"><input id="id_avatar" type="file" name="avatar" /></div> |
|
||||||
</div> |
|
||||||
</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> |
|
||||||
</aside> |
|
||||||
{# END avatar #} |
|
||||||
<div class="i-info"> |
|
||||||
<header> |
|
||||||
{# country and city #} |
|
||||||
<div class="i-place p-editable"> |
|
||||||
{% 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"> |
|
||||||
<a class="e-btn" href="#">{% trans 'редактировать' %}</a> |
|
||||||
<div class="e-form"> |
|
||||||
<form class="clearfix update-profile-form" id="home_form" action="/profile/update/home/" method="post">{% csrf_token %} |
|
||||||
<div class="ef-body"> |
|
||||||
<div class="epfl"> |
|
||||||
<label>{{ home_form.country.label }}</label> |
|
||||||
<div class="epf-field"> |
|
||||||
{{ home_form.country }} |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<div class="epfl"> |
|
||||||
<label>{% trans 'Город' %}</label> |
|
||||||
<div class="epf-field"> |
|
||||||
<select name="city" style="width: 200px;"> |
|
||||||
</select> |
|
||||||
</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> |
|
||||||
{# END country and city #} |
|
||||||
{# name #} |
|
||||||
<div class="i-title p-editable"> |
|
||||||
<span>{{ name_form.get_full_name }}</span> |
|
||||||
<div class="edit-wrap"> |
|
||||||
<a class="e-btn" href="#">{% trans 'редактировать' %}</a> |
|
||||||
<div class="e-form"> |
|
||||||
<form class="clearfix update-profile-form" 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> |
|
||||||
{# END name #} |
|
||||||
</header> |
|
||||||
{# position #} |
|
||||||
<div class="i-position p-editable"> |
|
||||||
<p> |
|
||||||
{{ work_form.position.value }} |
|
||||||
{% if work_form.work.value %} |
|
||||||
{% trans 'в' %} {{ work_form.work.value }} |
|
||||||
{% endif %} |
|
||||||
</p> |
|
||||||
<div class="edit-wrap"> |
|
||||||
<a class="e-btn" href="#">{% trans 'редактировать' %}</a> |
|
||||||
<div class="e-form"> |
|
||||||
<form class="clearfix update-profile-form" 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> |
|
||||||
<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> |
|
||||||
{# END position #} |
|
||||||
{# description #} |
|
||||||
<div class="i-descr p-editable"> |
|
||||||
<p>{{ about_company_form.about_company.value }}</p> |
|
||||||
<div class="edit-wrap"> |
|
||||||
<a class="e-btn" href="#">{% trans 'редактировать' %}</a> |
|
||||||
<div class="e-form"> |
|
||||||
<form class="clearfix update-profile-form" id="about_company_form" action="/profile/update/about-company/" method="post">{% csrf_token %} |
|
||||||
<div class="ef-body"> |
|
||||||
<div class="epfl"> |
|
||||||
<label>{{ about_company_form.about_company.label }}</label> |
|
||||||
<div class="epf-field"> |
|
||||||
{{ about_company_form.about_company }} |
|
||||||
</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> |
|
||||||
{# END description #} |
|
||||||
<hr /> |
|
||||||
<div class="i-contacts clearfix"> |
|
||||||
<div class="ic-buttons"> |
|
||||||
<a class="button icon-edit icb-edit-profile" href="#">{% trans 'редактировать профиль' %}</a> |
|
||||||
<a class="button orange icon-edit icb-exit-edit" href="#">{% trans 'завершить редактирование' %}</a> |
|
||||||
<div class="p-editable"> |
|
||||||
<ul class="soc-media-buttons"> |
|
||||||
<li><a href="{% if social_form.facebook.value %} {{ social_form.facebook.value }} {%else %}#{% endif %}"> |
|
||||||
<img src="{% static 'client/img/soc-medias/sm-icon-fb.png' %}" title="Facebook" alt="Facebook" /> |
|
||||||
</a> |
|
||||||
</li> |
|
||||||
<li><a href="{% if social_form.linkedin.value %} {{ social_form.linkedin.value }} {%else %}#{% endif %}"> |
|
||||||
<img src="{% static 'client/img/soc-medias/sm-icon-lin.png' %}" title="LinkedIn" alt="LinkedIn" /> |
|
||||||
</a> |
|
||||||
</li> |
|
||||||
<li><a href="{% if social_form.vk.value %} {{ social_form.vk.value }} {%else %}#{% endif %}"> |
|
||||||
<img src="{% static 'client/img/soc-medias/sm-icon-vk.png' %}" title="В контакте" alt="В контакте" /> |
|
||||||
</a> |
|
||||||
</li> |
|
||||||
<li><a href="{% if social_form.twitter.value %} {{ social_form.twitter.value }} {%else %}#{% endif %}"> |
|
||||||
<img src="{% static 'client/img/soc-medias/sm-icon-twit.png' %}" title="Twitter" alt="Twitter" /> |
|
||||||
</a> |
|
||||||
</li> |
|
||||||
</ul> |
|
||||||
<div class="edit-wrap"> |
|
||||||
<a class="e-btn" href="#">{% trans 'редактировать' %}</a> |
|
||||||
<div class="e-form"> |
|
||||||
<form class="clearfix update-profile-form" id="social_form" action="/profile/update/social/" method="post">{% csrf_token %} |
|
||||||
<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> |
|
||||||
{# contacts #} |
|
||||||
<div class="ic-links"> |
|
||||||
<div class="ic-tel p-editable"> |
|
||||||
{% if phone_form.phone.value %} |
|
||||||
<span>{{ phone_form.phone.value|phone }}</span> |
|
||||||
{% endif %} |
|
||||||
<div class="edit-wrap"> |
|
||||||
<a class="e-btn" href="#">{% trans 'редактировать' %}</a> |
|
||||||
<div class="e-form"> |
|
||||||
<form class="clearfix update-profile-form" 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-site p-editable"> |
|
||||||
{% 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"> |
|
||||||
<a class="e-btn" href="#">{% trans 'редактировать' %}</a> |
|
||||||
<div class="e-form"> |
|
||||||
<form class="clearfix update-profile-form" 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> |
|
||||||
{# END contacts #} |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<hr/> |
|
||||||
{# about #} |
|
||||||
<div class="i-additional"> |
|
||||||
<div class="ia-title">{% trans 'О себе:' %}</div> |
|
||||||
<div class="p-editable"> |
|
||||||
<p>{{ about_form.about.value }}</p> |
|
||||||
<div class="edit-wrap"> |
|
||||||
<a class="e-btn" href="#">{% trans 'редактировать' %}</a> |
|
||||||
<div class="e-form"> |
|
||||||
<form class="clearfix update-profile-form" 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">{% trans 'Сохранить' %}</button> |
|
||||||
</div> |
|
||||||
</form> |
|
||||||
<a class="ef-close" href="#">{% trans 'закрыть' %}</a> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
{# END about #} |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
{% endblock %} |
|
||||||
{% block scripts %} |
|
||||||
{% if request.GET.debug == '1' %} |
|
||||||
<script src="{% static 'client/js/_modules/page.profile.js' %}"></script> |
|
||||||
{% else %} |
|
||||||
<script src="{% static 'client/js_min/_modules/page.profile.min.js' %}"></script> |
|
||||||
{% endif %} |
|
||||||
<script> |
|
||||||
EXPO.profile.init({ |
|
||||||
updateFormClass:'update-profile-form', |
|
||||||
selectBox:[ |
|
||||||
{id:'id_country'}, |
|
||||||
{id:'id_theme', |
|
||||||
placeHolder:'Выберите тематику компании' |
|
||||||
}, |
|
||||||
{id:'id_city', |
|
||||||
placeholder:'Search city', |
|
||||||
path:'/city/get-city/' |
|
||||||
}, |
|
||||||
{id:'id_company', |
|
||||||
placeholder:'Search company', |
|
||||||
path:'/company/get-company/' |
|
||||||
} |
|
||||||
] |
|
||||||
}); |
|
||||||
</script> |
|
||||||
{% endblock %} |
|
||||||
Loading…
Reference in new issue