31 lines
2.2 KiB
HTML
31 lines
2.2 KiB
HTML
{% extends "base.html" %}
|
|
{% load static %}
|
|
{% block title %}این لینک مربوط به حساب دیگری است | {{ site_branding.site_title }}{% endblock %}
|
|
{% block extra_head %}
|
|
<meta name="referrer" content="same-origin">
|
|
<meta name="robots" content="noindex, nofollow">
|
|
<link rel="stylesheet" href="{% static 'css/magic-link-confirmation.css' %}?v={{ static_asset_version }}">
|
|
<script defer src="{% static 'js/magic-link-confirmation.js' %}?v={{ static_asset_version }}"></script>
|
|
{% endblock %}
|
|
{% block body %}
|
|
<main class="magic-confirmation magic-confirmation-shell">
|
|
<div class="magic-confirmation-brand">{% include 'includes/auth_brand.html' with hide_copy=True %}</div>
|
|
<section class="magic-confirmation-card" aria-labelledby="confirmation-title" aria-describedby="confirmation-description">
|
|
<div class="magic-confirmation-icon" aria-hidden="true">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M10 17l5-5-5-5M15 12H3M14 3h5a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-5"/></svg>
|
|
</div>
|
|
<h1 id="confirmation-title">این لینک مربوط به حساب دیگری است</h1>
|
|
<p id="confirmation-description">شما با حساب دیگری وارد سامانه شدهاید. برای مشاهده تیکت مرتبط با این لینک، از حساب فعلی خارج شوید. پس از خروج، تیکت بهصورت خودکار باز میشود و نیازی به ورود مجدد ندارید.</p>
|
|
<form method="post" action="{{ request.path }}" class="magic-confirmation-actions" data-magic-confirmation>
|
|
{% csrf_token %}
|
|
<input type="hidden" name="action" value="logout_and_open">
|
|
<input type="hidden" name="account_id" value="{{ user.pk }}">
|
|
<button type="submit" class="magic-confirmation-primary">خروج از حساب و مشاهده تیکت</button>
|
|
<a class="magic-confirmation-cancel" href="{% url 'accounts:home' %}">انصراف از مشاهده این تیکت/پیام</a>
|
|
<span class="magic-confirmation-status" role="status" aria-live="polite"></span>
|
|
</form>
|
|
</section>
|
|
{% include 'includes/auth_footer.html' %}
|
|
</main>
|
|
{% endblock %}
|