Add campaigns/ Add supervisor/ Add messaging features/ Separate SMS

This commit is contained in:
2026-08-25 03:39:41 +03:30
parent 80298b47b1
commit a9200772a3
27 changed files with 2337 additions and 49 deletions

View File

@@ -0,0 +1,24 @@
{% extends "admin/base_site.html" %}
{% load i18n %}
{% block content %}
<p>{{ users|length }} کاربر انتخاب شده‌اند. متنِ پیامک را وارد کنید:</p>
<ul>
{% for user in users %}
<li>{{ user }}{% if not user.phone %} (بدونِ شماره‌تلفن — رد می‌شه){% endif %}</li>
{% endfor %}
</ul>
<form method="post">
{% csrf_token %}
{% for user in users %}
<input type="hidden" name="{{ action_checkbox_name }}" value="{{ user.pk }}">
{% endfor %}
<input type="hidden" name="action" value="send_sms_to_selected">
{{ form.as_p }}
<input type="submit" name="apply" value="ارسال پیامک">
</form>
{% endblock %}

View File

@@ -0,0 +1,28 @@
{% extends "admin/base_site.html" %}
{% load i18n %}
{% block content %}
<p>
این صفحه فقط یک ایندکسِ خواندنی (read-only) از صفحاتِ Adminِ موجود است؛
هر بخش دقیقاً همون changelist همیشگی رو باز می‌کنه، بدون هیچ صفحه‌ی
موازیِ جدید. دسترسیِ افزودن/ویرایش/حذف، مستقل از این صفحه، بر اساسِ
پرمیشن‌های شما محدود شده است.
</p>
{% for section in sections %}
<div class="module" style="margin-bottom: 20px;">
<table>
<caption>{{ section.title }}</caption>
<tbody>
{% for link in section.links %}
{% if link.has_perm %}
<tr>
<th scope="row"><a href="{% url link.url_name %}">{{ link.label }}</a></th>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
</div>
{% endfor %}
{% endblock %}