|
|
|
|
@ -54,7 +54,7 @@ |
|
|
|
|
{# country and city #} |
|
|
|
|
<div class="i-place p-editable"> |
|
|
|
|
{% if home_form.instance.country %} |
|
|
|
|
<span> |
|
|
|
|
|
|
|
|
|
{% else %} |
|
|
|
|
<span style="display:none;"> |
|
|
|
|
{% endif %} |
|
|
|
|
@ -62,7 +62,7 @@ |
|
|
|
|
</span> |
|
|
|
|
|
|
|
|
|
{% if home_form.instance.city %} |
|
|
|
|
<span> |
|
|
|
|
|
|
|
|
|
{% else %} |
|
|
|
|
<span style="display:none;"> |
|
|
|
|
{% endif %} |
|
|
|
|
@ -143,137 +143,154 @@ |
|
|
|
|
</header> |
|
|
|
|
|
|
|
|
|
{# position #} |
|
|
|
|
<div class="i-position p-editable"> |
|
|
|
|
<p id="static-work-value"> |
|
|
|
|
{{ work_form.position.value }} |
|
|
|
|
{% if work_form.work.value %} |
|
|
|
|
{% trans 'в' %} {{ work_form.work.value }} |
|
|
|
|
{% endif %} |
|
|
|
|
</p> |
|
|
|
|
<div class="work_form-wrap"> |
|
|
|
|
|
|
|
|
|
<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="i-descr add_link_text "> |
|
|
|
|
<a class="e-btn" href="#" title="">{% trans 'Указать' %}</a> |
|
|
|
|
<div class="add_link_text_text">{% trans 'свою должность и место работы' %}<b>+10</b></div> |
|
|
|
|
</div> |
|
|
|
|
<div class="i-position p-editable hidden"> |
|
|
|
|
<p id="static-work-value "> |
|
|
|
|
{{ work_form.position.value }} |
|
|
|
|
{% if work_form.work.value %} |
|
|
|
|
{% trans 'в' %} {{ work_form.work.value }} |
|
|
|
|
{% endif %} |
|
|
|
|
</p> |
|
|
|
|
|
|
|
|
|
<div class="ef-body"> |
|
|
|
|
<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="epfl"> |
|
|
|
|
<label>{{ work_form.position.label }}</label> |
|
|
|
|
<div class="epf-field"> |
|
|
|
|
{{ work_form.position }} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="ef-body"> |
|
|
|
|
|
|
|
|
|
<div class="epfl"> |
|
|
|
|
<label>{{ work_form.work.label }}</label> |
|
|
|
|
<div class="epf-field"> |
|
|
|
|
{{ work_form.work }} |
|
|
|
|
<div class="epfl"> |
|
|
|
|
<label>{{ work_form.position.label }}</label> |
|
|
|
|
<div class="epf-field"> |
|
|
|
|
{{ work_form.position }} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
<div class="epfl"> |
|
|
|
|
<label>{{ work_form.work.label }}</label> |
|
|
|
|
<div class="epf-field"> |
|
|
|
|
{{ work_form.work }} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="ef-buttons"> |
|
|
|
|
<button type="submit" class="lnk icon-save">{% trans 'Сохранить' %}</button> |
|
|
|
|
</div> |
|
|
|
|
</form> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<a class="ef-close" href="#">{% trans 'закрыть' %}</a> |
|
|
|
|
</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 position #} |
|
|
|
|
<hr /> |
|
|
|
|
|
|
|
|
|
<div class="i-contacts clearfix"> |
|
|
|
|
<div class="ic-buttons"> |
|
|
|
|
<div class="p-editable"> |
|
|
|
|
<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="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="ic-buttons dd_width_4"> |
|
|
|
|
<div class="social_form-wrap"> |
|
|
|
|
<div class="p-editable"> |
|
|
|
|
<div class="i-descr add_link_text add_link_text_medium"> |
|
|
|
|
<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>{% trans '+5 за каждый' %}</b></div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<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="edit-wrap"> |
|
|
|
|
<div class="e-form"> |
|
|
|
|
<form class="clearfix update-profile-form" id="social_form" action="/profile/update/social/" method="post">{% csrf_token %} |
|
|
|
|
|
|
|
|
|
<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 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> |
|
|
|
|
|
|
|
|
|
<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-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-twit-w.png' %}" title="Twitter" alt="Twitter" /> {{ social_form.twitter.label }}</label> |
|
|
|
|
<div class="epf-field"> |
|
|
|
|
{{ social_form.twitter }} |
|
|
|
|
</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> |
|
|
|
|
<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 class="ef-buttons"> |
|
|
|
|
<button type="submit" class="lnk icon-save">{% trans 'Сохранить' %}</button> |
|
|
|
|
</div> |
|
|
|
|
</form> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<a class="ef-close" href="#">{% trans 'закрыть' %}</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> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
{# contacts #} |
|
|
|
|
<div class="ic-links"> |
|
|
|
|
@ -459,6 +476,8 @@ |
|
|
|
|
EXPO.profile.init({ |
|
|
|
|
// class selector to identify required forms on page |
|
|
|
|
updateFormClass:'update-profile-form', |
|
|
|
|
// text part that is added to form id to designate its wrapper container |
|
|
|
|
formContainerPostfix:'-wrap', |
|
|
|
|
// text and paths for dynamically rendered selectboxes |
|
|
|
|
selectBox:[ |
|
|
|
|
{id:'id_country'}, |
|
|
|
|
@ -474,6 +493,7 @@ |
|
|
|
|
path:'http://{{ request.get_host }}/company/get-company/' |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
editButtonClass:'e-btn', |
|
|
|
|
// we need this id to enable mapping library |
|
|
|
|
phoneBox: 'id_phone', |
|
|
|
|
// some helper text in current language |
|
|
|
|
|