feat
This commit is contained in:
parent
1c6443e011
commit
2d55db52ce
@ -44,7 +44,7 @@
|
||||
<span class="b_5dr47_2">{{doc.status}}</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if doc.type == 'exhibition' and doc.get('exhibition') %}
|
||||
{% if doc.type == 'exhibition' and doc.get('exhibition') or doc.status == 'Продано' %}
|
||||
<p class="b_6spaf">{{doc.exhibition.title}}</p>
|
||||
<p>Место проведения: {{ doc.exhibition.get('place') }}</p>
|
||||
<div class="b_xz6em">
|
||||
@ -54,6 +54,57 @@
|
||||
<span class="c_zm0m4 b_09est">{{doc.receiver.username}}</span>
|
||||
</div>
|
||||
</div>
|
||||
{% if doc.get('user') and user._id == doc.user._id%}
|
||||
<details style="margin-bottom: 1.25rem;">
|
||||
<summary>Показать контакты</summary>
|
||||
<div class="menua">
|
||||
<a class="icona" href="/artists/{{doc.receiver._id}}">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#5F1798">
|
||||
<path
|
||||
d="M234-276q51-39 114-61.5T480-360q69 0 132 22.5T726-276q35-41 54.5-93T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 59 19.5 111t54.5 93Zm146.5-204.5Q340-521 340-580t40.5-99.5Q421-720 480-720t99.5 40.5Q620-639 620-580t-40.5 99.5Q539-440 480-440t-99.5-40.5ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm100-95.5q47-15.5 86-44.5-39-29-86-44.5T480-280q-53 0-100 15.5T294-220q39 29 86 44.5T480-160q53 0 100-15.5ZM523-537q17-17 17-43t-17-43q-17-17-43-17t-43 17q-17 17-17 43t17 43q17 17 43 17t43-17Zm-43-43Zm0 360Z" />
|
||||
</svg>
|
||||
<span>Профиль</span>
|
||||
</a>
|
||||
<a class="icona" href="tel:{{doc.receiver.phone.split(',')[-1].strip()}}"><svg xmlns="http://www.w3.org/2000/svg" height="24px"
|
||||
viewBox="0 -960 960 960" width="24px" fill="#5F1798">
|
||||
<path
|
||||
d="M162-120q-18 0-30-12t-12-30v-162q0-13 9-23.5t23-14.5l138-28q14-2 28.5 2.5T342-374l94 94q38-22 72-48.5t65-57.5q33-32 60.5-66.5T681-524l-97-98q-8-8-11-19t-1-27l26-140q2-13 13-22.5t25-9.5h162q18 0 30 12t12 30q0 125-54.5 247T631-329Q531-229 409-174.5T162-120Zm556-480q17-39 26-79t14-81h-88l-18 94 66 66ZM360-244l-66-66-94 20v88q41-3 81-14t79-28Zm358-356ZM360-244Z" />
|
||||
</svg>
|
||||
<span>{{ doc.receiver.phone.split(',')[-1].strip() }}</span>
|
||||
</a>
|
||||
<a class="icona" href="mailto:{{doc.receiver.email}}"> <svg xmlns="http://www.w3.org/2000/svg" height="24px"
|
||||
viewBox="0 -960 960 960" width="24px" fill="#5F1798">
|
||||
<path
|
||||
d="M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480v58q0 59-40.5 100.5T740-280q-35 0-66-15t-52-43q-29 29-65.5 43.5T480-280q-83 0-141.5-58.5T280-480q0-83 58.5-141.5T480-680q83 0 141.5 58.5T680-480v58q0 26 17 44t43 18q26 0 43-18t17-44v-58q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93h200v80H480Zm85-315q35-35 35-85t-35-85q-35-35-85-35t-85 35q-35 35-35 85t35 85q35 35 85 35t85-35Z" />
|
||||
</svg>
|
||||
<span>{{doc.receiver.email}}</span>
|
||||
</a>
|
||||
<div class="icona"><span>Написать</span></div>
|
||||
<div class="icona">
|
||||
|
||||
<a class="icona" href="{% if doc.receiver.vk_id %}https://vk.ru/im?sel={{doc.receiver.vk_id}}{%else%}#{%endif%}"
|
||||
{% if not doc.receiver.vk_id %}onclick="showToast({message: 'У пользователя не привязан ВК'})"{%endif%}>
|
||||
<img src="/static/icons/vk.svg" height="40">
|
||||
</a>
|
||||
|
||||
<a class="icona" href="https://telegram.me/{{doc.receiver.phone.split(',')[-1].strip()}}">
|
||||
<img src="/static/icons/tg.svg" height="40">
|
||||
<!-- <span>Написать в ТГ</span> -->
|
||||
</a>
|
||||
<a class="icona" href="https://max.ru/{{doc.receiver.phone.split(',')[-1].strip()}}">
|
||||
<img src="/static/icons/max.svg" height="40" style="border-radius: 50% 50% 50% 30%;">
|
||||
<!-- <span>Написать в MAX</span> -->
|
||||
</a>
|
||||
<a class="icona" href="https://wa.me/{{doc.receiver.phone.split(',')[-1].strip()}}">
|
||||
<img src="/static/icons/wapp.svg" height="40">
|
||||
<!-- <span>Написать в WA</span> -->
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</details>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if doc.address %}
|
||||
<p class="b_6spaf">Адрес: {{doc.address}}</p>
|
||||
@ -75,6 +126,57 @@
|
||||
<span class="c_zm0m4 b_09est">{{doc.sender.username}}</span>
|
||||
</div>
|
||||
</div>
|
||||
{% if user._id != doc.sender._id%}
|
||||
<details style="margin-bottom: 1.25rem;">
|
||||
<summary>Показать контакты</summary>
|
||||
<div class="menua">
|
||||
<a class="icona" href="/artists/{{doc.sender._id}}">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#5F1798">
|
||||
<path
|
||||
d="M234-276q51-39 114-61.5T480-360q69 0 132 22.5T726-276q35-41 54.5-93T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 59 19.5 111t54.5 93Zm146.5-204.5Q340-521 340-580t40.5-99.5Q421-720 480-720t99.5 40.5Q620-639 620-580t-40.5 99.5Q539-440 480-440t-99.5-40.5ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm100-95.5q47-15.5 86-44.5-39-29-86-44.5T480-280q-53 0-100 15.5T294-220q39 29 86 44.5T480-160q53 0 100-15.5ZM523-537q17-17 17-43t-17-43q-17-17-43-17t-43 17q-17 17-17 43t17 43q17 17 43 17t43-17Zm-43-43Zm0 360Z" />
|
||||
</svg>
|
||||
<span>Профиль</span>
|
||||
</a>
|
||||
<a class="icona" href="tel:{{doc.sender.phone.split(',')[-1].strip()}}"><svg xmlns="http://www.w3.org/2000/svg" height="24px"
|
||||
viewBox="0 -960 960 960" width="24px" fill="#5F1798">
|
||||
<path
|
||||
d="M162-120q-18 0-30-12t-12-30v-162q0-13 9-23.5t23-14.5l138-28q14-2 28.5 2.5T342-374l94 94q38-22 72-48.5t65-57.5q33-32 60.5-66.5T681-524l-97-98q-8-8-11-19t-1-27l26-140q2-13 13-22.5t25-9.5h162q18 0 30 12t12 30q0 125-54.5 247T631-329Q531-229 409-174.5T162-120Zm556-480q17-39 26-79t14-81h-88l-18 94 66 66ZM360-244l-66-66-94 20v88q41-3 81-14t79-28Zm358-356ZM360-244Z" />
|
||||
</svg>
|
||||
<span>{{ doc.sender.phone.split(',')[-1].strip() }}</span>
|
||||
</a>
|
||||
<a class="icona" href="mailto:{{doc.sender.email}}"> <svg xmlns="http://www.w3.org/2000/svg" height="24px"
|
||||
viewBox="0 -960 960 960" width="24px" fill="#5F1798">
|
||||
<path
|
||||
d="M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480v58q0 59-40.5 100.5T740-280q-35 0-66-15t-52-43q-29 29-65.5 43.5T480-280q-83 0-141.5-58.5T280-480q0-83 58.5-141.5T480-680q83 0 141.5 58.5T680-480v58q0 26 17 44t43 18q26 0 43-18t17-44v-58q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93h200v80H480Zm85-315q35-35 35-85t-35-85q-35-35-85-35t-85 35q-35 35-35 85t35 85q35 35 85 35t85-35Z" />
|
||||
</svg>
|
||||
<span>{{doc.sender.email}}</span>
|
||||
</a>
|
||||
<div class="icona"><span>Написать</span></div>
|
||||
<div class="icona">
|
||||
|
||||
<a class="icona" href="{% if doc.sender.vk_id %}https://vk.ru/im?sel={{doc.sender.vk_id}}{%else%}#{%endif%}"
|
||||
{% if not doc.sender.vk_id %}onclick="showToast({message: 'У пользователя не привязан ВК'})"{%endif%}>
|
||||
<img src="/static/icons/vk.svg" height="40">
|
||||
</a>
|
||||
|
||||
<a class="icona" href="https://telegram.me/{{doc.sender.phone.split(',')[-1].strip()}}">
|
||||
<img src="/static/icons/tg.svg" height="40">
|
||||
<!-- <span>Написать в ТГ</span> -->
|
||||
</a>
|
||||
<a class="icona" href="https://max.ru/{{doc.sender.phone.split(',')[-1].strip()}}">
|
||||
<img src="/static/icons/max.svg" height="40" style="border-radius: 50% 50% 50% 30%;">
|
||||
<!-- <span>Написать в MAX</span> -->
|
||||
</a>
|
||||
<a class="icona" href="https://wa.me/{{doc.sender.phone.split(',')[-1].strip()}}">
|
||||
<img src="/static/icons/wapp.svg" height="40">
|
||||
<!-- <span>Написать в WA</span> -->
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</details>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if doc.receiver %}
|
||||
<div class="b_xz6em">
|
||||
@ -85,6 +187,57 @@
|
||||
<span class="b_qla2q">+7 *** *** {{ doc.receiver.phone[-4:] }}</span>
|
||||
</div>
|
||||
</div>
|
||||
{% if user._id != doc.receiver._id%}
|
||||
<details style="margin-bottom: 1.25rem;">
|
||||
<summary>Показать контакты</summary>
|
||||
<div class="menua">
|
||||
<a class="icona" href="/artists/{{doc.receiver._id}}">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#5F1798">
|
||||
<path
|
||||
d="M234-276q51-39 114-61.5T480-360q69 0 132 22.5T726-276q35-41 54.5-93T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 59 19.5 111t54.5 93Zm146.5-204.5Q340-521 340-580t40.5-99.5Q421-720 480-720t99.5 40.5Q620-639 620-580t-40.5 99.5Q539-440 480-440t-99.5-40.5ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm100-95.5q47-15.5 86-44.5-39-29-86-44.5T480-280q-53 0-100 15.5T294-220q39 29 86 44.5T480-160q53 0 100-15.5ZM523-537q17-17 17-43t-17-43q-17-17-43-17t-43 17q-17 17-17 43t17 43q17 17 43 17t43-17Zm-43-43Zm0 360Z" />
|
||||
</svg>
|
||||
<span>Профиль</span>
|
||||
</a>
|
||||
<a class="icona" href="tel:{{doc.receiver.phone.split(',')[-1].strip()}}"><svg xmlns="http://www.w3.org/2000/svg" height="24px"
|
||||
viewBox="0 -960 960 960" width="24px" fill="#5F1798">
|
||||
<path
|
||||
d="M162-120q-18 0-30-12t-12-30v-162q0-13 9-23.5t23-14.5l138-28q14-2 28.5 2.5T342-374l94 94q38-22 72-48.5t65-57.5q33-32 60.5-66.5T681-524l-97-98q-8-8-11-19t-1-27l26-140q2-13 13-22.5t25-9.5h162q18 0 30 12t12 30q0 125-54.5 247T631-329Q531-229 409-174.5T162-120Zm556-480q17-39 26-79t14-81h-88l-18 94 66 66ZM360-244l-66-66-94 20v88q41-3 81-14t79-28Zm358-356ZM360-244Z" />
|
||||
</svg>
|
||||
<span>{{ doc.receiver.phone.split(',')[-1].strip() }}</span>
|
||||
</a>
|
||||
<a class="icona" href="mailto:{{doc.receiver.email}}"> <svg xmlns="http://www.w3.org/2000/svg" height="24px"
|
||||
viewBox="0 -960 960 960" width="24px" fill="#5F1798">
|
||||
<path
|
||||
d="M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480v58q0 59-40.5 100.5T740-280q-35 0-66-15t-52-43q-29 29-65.5 43.5T480-280q-83 0-141.5-58.5T280-480q0-83 58.5-141.5T480-680q83 0 141.5 58.5T680-480v58q0 26 17 44t43 18q26 0 43-18t17-44v-58q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93h200v80H480Zm85-315q35-35 35-85t-35-85q-35-35-85-35t-85 35q-35 35-35 85t35 85q35 35 85 35t85-35Z" />
|
||||
</svg>
|
||||
<span>{{doc.receiver.email}}</span>
|
||||
</a>
|
||||
<div class="icona"><span>Написать</span></div>
|
||||
<div class="icona">
|
||||
|
||||
<a class="icona" href="{% if doc.receiver.vk_id %}https://vk.ru/im?sel={{doc.receiver.vk_id}}{%else%}#{%endif%}"
|
||||
{% if not doc.receiver.vk_id %}onclick="showToast({message: 'У пользователя не привязан ВК'})"{%endif%}>
|
||||
<img src="/static/icons/vk.svg" height="40">
|
||||
</a>
|
||||
|
||||
<a class="icona" href="https://telegram.me/{{doc.receiver.phone.split(',')[-1].strip()}}">
|
||||
<img src="/static/icons/tg.svg" height="40">
|
||||
<!-- <span>Написать в ТГ</span> -->
|
||||
</a>
|
||||
<a class="icona" href="https://max.ru/{{doc.receiver.phone.split(',')[-1].strip()}}">
|
||||
<img src="/static/icons/max.svg" height="40" style="border-radius: 50% 50% 50% 30%;">
|
||||
<!-- <span>Написать в MAX</span> -->
|
||||
</a>
|
||||
<a class="icona" href="https://wa.me/{{doc.receiver.phone.split(',')[-1].strip()}}">
|
||||
<img src="/static/icons/wapp.svg" height="40">
|
||||
<!-- <span>Написать в WA</span> -->
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</details>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<p class="b_6spaf">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user