@ -3,39 +3,29 @@
{% 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;}
< 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 %}
< / style >
{% endif %}
{% endblock %}
{% block bread_scrumbs %}
< div class = "bread-crumbs" >
< a href = "/" > {% trans 'Главная страница' %}< / a >
< strong > {% trans 'Личный кабинет' %}< / strong >
< 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" >
< 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 %}
@ -52,292 +42,254 @@
{{ 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" >
< 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 = "#" 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 > Страна< / 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 >
< / form >
< / 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 = "#" 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 > Страна< / label >
< div class = "epf-field" >
{{ home_form.country }}
< / div >
< / div >
< div class = "i-title p-editable p-editable" >
< 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" >
< span id = "static-name-value" >
{{ name_form.get_full_name }}
{{ 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 = "" > Указать< / a >
< div class = "add_link_text_text" > свою должность и место работы < 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 = "#" > редактировать профиль< / 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 >
{% if social_form.facebook.value %}
< 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 = "" > Указать< / a >
< div class = "add_link_text_text" > свою должность и место работы < 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 = "#" > редактировать профиль< / 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 >
{% 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" / >
< 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 %}
{% 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" / >
< 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 %}
{% 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 %}
< 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 = "В контакте" / >
< 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 >
{% 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 %}
< 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" / >
< 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 за каждый< / 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" >
{% 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 за каждый< / 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 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 >
< 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 }}
{{ 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 = "" > Добавить< / a >
< div class = "add_link_text_text" > номер телефона < 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 >
< 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 = "" > Добавить< / a >
< div class = "add_link_text_text" > номер телефона < 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" >
@ -351,148 +303,132 @@
< 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 = "" > Добавить< / a >
< div class = "add_link_text_text" > сайт < 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 = "" > Добавить< / a >
< div class = "add_link_text_text" > информацию о себе < b > +10< / b > < / div >
{% endif %}
< 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 = "" > Добавить< / a >
< div class = "add_link_text_text" > сайт < 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 = "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" > Сохранить< / button >
< / div >
< / form >
< a class = "ef-close" href = "#" > закрыть< / a >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
{% block scripts %}
<!-- mask select 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 >
<!-- page module -->
<!-- <script src="{% static 'client/js' %}{% if debug %}/{% else %}_min/{% endif %}_modules/page.profile{% if debug %}{% else %}.min{% endif %}.js"></script> -->
< script src = "{% static 'client/js/_modules/page.profile.js' %}" > < / script >
< script >
//js module initialization
EXPO.profile.init({
// class selector to identify required forms on page
updateFormClass:'update-profile-form',
// text and paths for dynamically rendered selectboxes
selectBox:[
{id:'id_country'},
{id:'id_theme',
placeHolder:'Выберите тематику компании'
},
{id:'id_city',
placeholder:'Search city',
path:'http://{{ request.get_host }}/city/get-city/'
},
{id:'id_company',
placeholder:'Search company',
path:'http://{{ request.get_host }}/company/get-company/'
}
],
// we need this id to enable mapping library
phoneBox: 'id_phone',
// some helper text in current language
lang:{
workIn:'в'// there must be 'at' in English
}
});
< / script >
{% endblock %}
< 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 %}
{% 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 >
< script src = "{% static 'client/js/plugins/select2.min.js' %}" > < / script >
< script src = "{% static 'client/js/plugins/select2_locale_ru.js' %}" > < / script >
{% endblock %}