18 lines
2.8 KiB
HTML
18 lines
2.8 KiB
HTML
{% extends 'payments/base.html' %}
|
|
{% load jalali %}
|
|
{% block title %}اعلامیه {{ notice.number }}{% endblock %}
|
|
{% block content %}
|
|
<section class="chaharsu pay-workspace pay-detail-workspace">
|
|
<a class="pay-back" href="{% url 'staff_payments:desk' %}?tab=notices">{% include 'payments/_icon.html' with name='chevron' %}اعلامیههای واریز</a>
|
|
<header class="pay-page-head"><div class="pay-page-title"><span class="pay-page-icon">{% include 'payments/_icon.html' with name='receipt' %}</span><div><h1>اعلامیه <bdi>{{ notice.number }}</bdi></h1><p>مشتری: <bdi>{{ notice.customer.local_mobile }}</bdi> · {{ notice.created_at|jalali_datetime }}</p></div></div><a class="pay-button" href="{% url 'staff_payments:receipt_new' notice.customer.public_id %}?notice={{ notice.public_id }}">{% include 'payments/_icon.html' with name='plus' %}ثبت فیش برای مشتری</a></header>
|
|
<div class="pay-detail-grid">
|
|
<div class="pay-notice-main">{% include 'payments/_notice.html' with staff_notice=True %}</div>
|
|
<aside class="pay-detail-aside">
|
|
{% if can_share_payment_link %}<section class="pay-card"><h2>لینک موقت پرداخت</h2><p class="pay-section-help">برای مشاهده اعلامیه و ارسال فیش، مشتری نیازی به ورود ندارد. پس از پایان اعتبار، میتوانید لینک تازه بسازید.</p>{% if payment_share_url %}<p class="pay-share-url" dir="ltr">{{ payment_share_url }}</p><button type="button" class="pay-button secondary" data-copy="{{ payment_share_url }}">کپی لینک پرداخت</button>{% endif %}<form method="post" action="{% url 'staff_payments:notice_payment_link' notice.public_id %}">{% csrf_token %}<button class="pay-button" type="submit">ساخت لینک تازه پرداخت</button></form></section>{% endif %}
|
|
<section class="pay-card"><h2>فیشهای این اعلامیه</h2>{% for receipt in receipts %}<a class="pay-linked-record" href="{% url 'staff_payments:receipt_detail' receipt.public_id %}"><bdi>{{ receipt.number }}</bdi><span class="pay-status {{ receipt.status|lower }}">{{ receipt.get_status_display }}</span>{% include 'payments/_icon.html' with name='arrow' %}</a>{% empty %}<p class="pay-section-help">هنوز فیشی برای این اعلامیه ثبت نشده است.</p>{% endfor %}</section>
|
|
<section class="pay-card"><h2>اطلاعرسانی پیامک</h2>{% for notification in notifications %}<div class="pay-notification-row"><strong>{{ notification.job.get_status_display }}</strong><span>وضعیت دریافت: {{ notification.job.get_delivery_status_display }}</span></div>{% empty %}<p class="pay-section-help">اطلاعرسانی ثبتشدهای وجود ندارد.</p>{% endfor %}</section>
|
|
</aside>
|
|
</div>
|
|
</section>
|
|
{% endblock %}
|