You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
406 lines
19 KiB
406 lines
19 KiB
{% extends 'base_catalog.html' %}
|
|
{% load static %}
|
|
{% load i18n %}
|
|
{% load template_filters %}
|
|
|
|
{% block style %}
|
|
<link rel="stylesheet" href="{% static 'client/css/select2.css' %}">
|
|
{% endblock %}
|
|
|
|
|
|
{% 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 and home_form.instance.city %}
|
|
<span>
|
|
{% else %}
|
|
<span style="display:none;">
|
|
{% endif %}
|
|
<a href="#">{{ 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="#">{{ 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">
|
|
{{ home_form.city }}
|
|
</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 #}
|
|
<div class="{% if work_form.position.value and work_form.company.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.company.value %}
|
|
<p>
|
|
{{ work_form.position.value }}
|
|
{% if work_form.company.value %}
|
|
{% trans 'в' %} {{ request.user.company.name }}
|
|
{% 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="">Указать</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.company.label }}</label>
|
|
<div class="epf-field">
|
|
{{ work_form.company }}
|
|
</div>
|
|
</div>
|
|
<!-- сделать проверку на создателя компании -->
|
|
<div class="add_company"><a 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="#">редактировать профиль</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="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>{{ 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 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 %}
|
|
|
|
{% block scripts %}
|
|
<script src="{% static 'client/js/pages/profile.js' %}"></script>
|
|
{% endblock %}
|
|
|