Files
customerTicket/templates/tickets/_staff_message_share.html
T
2026-10-04 16:42:19 +03:30

19 lines
2.0 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% if can_share_message and not item.deleted_at %}
<details class="staff-message-share" data-share-message="{{ item.public_id }}">
<summary aria-label="اشتراک فقط این پیام؛ گیرندگان و سوابق" title="اشتراک و پیگیری این پیام">{% include 'tickets/_staff_share_icon.html' %}{% if item.staff_message_shares %}<span class="staff-share-dot" aria-hidden="true"></span>{% endif %}</summary>
<div class="staff-share-content">
<header class="staff-inline-share-heading"><b>اشتراک پیام</b><small>فقط همین پیام و پیوست‌ها</small></header>
{% if item.staff_message_shares %}
<div class="staff-inline-share-grants">{% for grant in item.staff_message_shares %}{% include 'tickets/_staff_share_audit_row.html' with is_message=True inline=True %}{% endfor %}</div>
<details class="staff-inline-share-new"><summary>+ اشتراک جدید<span class="staff-share-chevron" aria-hidden="true"></span></summary>{% include 'tickets/_staff_message_share_form.html' %}</details>
{% else %}{% include 'tickets/_staff_message_share_form.html' %}{% endif %}
{% if item.staff_share_events %}
{% load jalali %}
<details class="staff-inline-share-history"><summary>سوابق<span class="staff-share-count">{{ item.staff_share_events|length }}</span><span class="staff-share-chevron" aria-hidden="true"></span></summary>
{% for event in item.staff_share_events %}<article class="share-event-row"><b>{{ event.get_event_type_display }}</b><small>{{ event.actor_name }} · {{ event.created_at|jalali_datetime }}</small>{% if event.recipient_name %}<small>گیرنده: {{ event.recipient_name }}</small>{% endif %}{% if event.metadata.action == 'updated' %}<small>توضیح به‌روزرسانی شد</small>{% endif %}{% if event.metadata.note %}<p>{{ event.metadata.note }}</p>{% endif %}</article>{% endfor %}
</details>
{% endif %}
</div>
</details>
{% endif %}