Add campaigns/ Add supervisor/ Add messaging features/ Separate SMS
This commit is contained in:
24
accounts/templates/accounts/send_sms_form.html
Normal file
24
accounts/templates/accounts/send_sms_form.html
Normal 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 %}
|
||||
28
accounts/templates/admin/supervisor_dashboard.html
Normal file
28
accounts/templates/admin/supervisor_dashboard.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user