37 lines
5.7 KiB
HTML
37 lines
5.7 KiB
HTML
{% load jalali humanize %}
|
|
{% if not staff_notice and not notice_page %}<article class="pay-notice-entry">{% endif %}
|
|
<details class="pay-card payment-notice" {% if open_notice == notice.public_id|stringformat:'s' or staff_notice %}open{% endif %}>
|
|
<summary><strong>{{ notice.subject }}</strong><b>{{ notice.amount|intcomma:False }} <span>ریال</span></b><small>{{ notice.number }} · {{ notice.created_at|jalali_date }}</small><span class="notice-state">{{ notice.settlement_label }}{% if notice.cancelled_at %} · لغو شده{% endif %}</span>{% include 'payments/_icon.html' with name='chevron-down' %}</summary>
|
|
<div class="pay-details"><p class="notice-bank">{% if notice.account_snapshot.name %}{{ notice.account_snapshot.name }} · {% endif %}{{ notice.account_snapshot.bank }} · {{ notice.account_snapshot.holder }}</p>
|
|
<dl class="payment-values">
|
|
<div><dt>مبلغ (ریال)</dt><dd dir="ltr">{{ notice.amount|intcomma:False }}</dd><button type="button" data-copy="{{ notice.amount }}" class="pay-copy" aria-label="کپی مبلغ">{% include 'payments/_icon.html' with name='copy' %} کپی</button></div>
|
|
{% if notice.account_snapshot.account_number %}<div><dt>شماره حساب</dt><dd dir="ltr">{{ notice.account_snapshot.account_number }}</dd><button type="button" data-copy="{{ notice.account_snapshot.account_number }}" class="pay-copy" aria-label="کپی شماره حساب">{% include 'payments/_icon.html' with name='copy' %} کپی</button></div>{% endif %}
|
|
{% if notice.account_snapshot.iban %}<div><dt>شبا</dt><dd dir="ltr">{{ notice.account_snapshot.iban }}</dd><button type="button" data-copy="{{ notice.account_snapshot.iban }}" class="pay-copy" aria-label="کپی شبا">{% include 'payments/_icon.html' with name='copy' %} کپی</button></div>{% endif %}
|
|
{% if notice.account_snapshot.card_number %}<div><dt>شماره کارت</dt><dd dir="ltr">{{ notice.account_snapshot.card_number }}</dd><button type="button" data-copy="{{ notice.account_snapshot.card_number }}" class="pay-copy" aria-label="کپی کارت">{% include 'payments/_icon.html' with name='copy' %} کپی</button></div>{% endif %}
|
|
{% if notice.deposit_id %}<div class="pay-deposit-required"><dt>شناسه واریز · ضروری</dt><dd dir="ltr">{{ notice.deposit_id }}</dd><button type="button" data-copy="{{ notice.deposit_id }}" class="pay-copy" aria-label="کپی شناسه واریز">{% include 'payments/_icon.html' with name='copy' %} کپی</button></div>{% endif %}
|
|
</dl>
|
|
{% if notice.deposit_id %}<p class="pay-deposit-warning" role="note">هنگام واریز، حتماً شناسه واریز ارائهشده را در فرم بانکی، موبایلبانک یا اینترنتبانک وارد کنید؛ واریز بدون این شناسه معتبر نخواهد بود.</p>{% endif %}
|
|
{% if notice_page and not staff_notice %}
|
|
<div class="pay-actions"><button type="button" class="pay-button secondary" data-copy="{{ notice.copy_text }}">{% include 'payments/_icon.html' with name='copy' %} کپی کامل اطلاعات</button></div>
|
|
{% if not notice.cancelled_at and notice.remaining_amount > 0 %}
|
|
<section class="pay-receipt-next-step" aria-labelledby="receipt-next-step-{{ notice.public_id }}">
|
|
<div><h2 id="receipt-next-step-{{ notice.public_id }}">پس از واریز</h2><p>تصویر فیش را برای بررسی این واریز ارسال کنید.</p></div>
|
|
<a class="pay-button pay-receipt-action" href="{% url 'payments:receipt_new' %}?notice={{ notice.public_id }}">{% include 'payments/_icon.html' with name='receipt' %}<span>ارسال فیش این واریز</span></a>
|
|
</section>
|
|
{% endif %}
|
|
{% endif %}
|
|
<!-- Supplementary details with content stay visible within the expanded notice. Complete copy uses ALL snapshot fields. -->
|
|
<p>تأییدشده: {{ notice.approved_amount|intcomma:False }} ریال · باقیمانده: {{ notice.remaining_amount|intcomma:False }} ریال</p>
|
|
{% with invoice_number=notice.invoice_number.strip description=notice.description.strip %}
|
|
{% if invoice_number or description %}<section class="pay-supplement"><h3>اطلاعات تکمیلی و توضیحات</h3>{% if invoice_number %}<p>فاکتور: {{ invoice_number }}</p>{% endif %}{% if description %}<p>{{ description|linebreaksbr }}</p>{% endif %}</section>{% endif %}
|
|
{% endwith %}
|
|
{% if not notice_page or staff_notice %}<div class="pay-actions">{% if not notice.cancelled_at and not staff_notice and notice.remaining_amount > 0 %}<a class="pay-button" href="{% url 'payments:receipt_new' %}?notice={{ notice.public_id }}">ارسال فیش این واریز</a>{% endif %}<button type="button" class="pay-button secondary" data-copy="{{ notice.copy_text }}">کپی کامل اطلاعات</button></div>{% endif %}
|
|
{% if notice_page and not staff_notice %}<form class="pay-page-share" method="post" action="{% url 'payments:notice_share_link' notice.public_id %}" data-share-link>
|
|
{% csrf_token %}<button type="submit" class="pay-button secondary">{% include 'payments/_icon.html' with name='copy' %}<span>کپی لینک کوتاه این صفحه برای ارسال به دیگران</span></button>
|
|
<p>دارندهٔ لینک به اطلاعات همین واریز دسترسی دارد؛ لینک تا پایان اعتبار آن قابل استفاده است.</p>
|
|
<p class="pay-share-feedback" role="status" aria-live="polite"></p>
|
|
</form>{% endif %}
|
|
{% if not staff_notice %}{% include 'payments/_linked_receipts.html' %}{% endif %}
|
|
</div></details>
|
|
{% if not staff_notice and not notice_page %}<a class="pay-notice-permalink pay-text-link" href="{% url 'payments:notice_detail' notice.public_id %}">جزئیات واریز و فیشها {% include 'payments/_icon.html' with name='arrow' %}</a></article>{% endif %}
|