92 lines
5.2 KiB
HTML
92 lines
5.2 KiB
HTML
<<<<<<< HEAD
|
||
{% extends "admin/base_site.html" %}
|
||
|
||
{% block title %}Статистика заявок{% endblock %}
|
||
|
||
{% block content %}
|
||
<div class="module">
|
||
<h1>📊 Статистика заявок на обратный звонок</h1>
|
||
|
||
<div class="stats-grid" style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 2rem 0;">
|
||
<div class="stat-card" style="background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); text-align: center;">
|
||
<h3>📋 Всего заявок</h3>
|
||
<p style="font-size: 2rem; font-weight: bold; color: #007bff; margin: 0;">{{ stats.total }}</p>
|
||
</div>
|
||
|
||
<div class="stat-card" style="background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); text-align: center;">
|
||
<h3>📅 Сегодня</h3>
|
||
<p style="font-size: 2rem; font-weight: bold; color: #28a745; margin: 0;">{{ stats.today }}</p>
|
||
</div>
|
||
|
||
<div class="stat-card" style="background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); text-align: center;">
|
||
<h3>📈 За неделю</h3>
|
||
<p style="font-size: 2rem; font-weight: bold; color: #17a2b8; margin: 0;">{{ stats.week }}</p>
|
||
</div>
|
||
|
||
<div class="stat-card" style="background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); text-align: center;">
|
||
<h3>🆕 Непрочитанные</h3>
|
||
<p style="font-size: 2rem; font-weight: bold; color: #dc3545; margin: 0;">{{ stats.unread }}</p>
|
||
</div>
|
||
|
||
<div class="stat-card" style="background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); text-align: center;">
|
||
<h3>⏳ В обработке</h3>
|
||
<p style="font-size: 2rem; font-weight: bold; color: #ffc107; margin: 0;">{{ stats.unprocessed }}</p>
|
||
</div>
|
||
</div>
|
||
|
||
<div style="margin-top: 2rem;">
|
||
<a href="{% url 'admin:programmer_callbackrequest_changelist' %}" class="button" style="background: #007bff; color: white; padding: 10px 20px; text-decoration: none; border-radius: 4px;">
|
||
📋 Перейти к списку заявок
|
||
</a>
|
||
<a href="{% url 'admin:index' %}" class="button" style="background: #6c757d; color: white; padding: 10px 20px; text-decoration: none; border-radius: 4px; margin-left: 10px;">
|
||
🏠 На главную админки
|
||
</a>
|
||
</div>
|
||
</div>
|
||
=======
|
||
{% extends "admin/base_site.html" %}
|
||
|
||
{% block title %}Статистика заявок{% endblock %}
|
||
|
||
{% block content %}
|
||
<div class="module">
|
||
<h1>📊 Статистика заявок на обратный звонок</h1>
|
||
|
||
<div class="stats-grid" style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 2rem 0;">
|
||
<div class="stat-card" style="background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); text-align: center;">
|
||
<h3>📋 Всего заявок</h3>
|
||
<p style="font-size: 2rem; font-weight: bold; color: #007bff; margin: 0;">{{ stats.total }}</p>
|
||
</div>
|
||
|
||
<div class="stat-card" style="background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); text-align: center;">
|
||
<h3>📅 Сегодня</h3>
|
||
<p style="font-size: 2rem; font-weight: bold; color: #28a745; margin: 0;">{{ stats.today }}</p>
|
||
</div>
|
||
|
||
<div class="stat-card" style="background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); text-align: center;">
|
||
<h3>📈 За неделю</h3>
|
||
<p style="font-size: 2rem; font-weight: bold; color: #17a2b8; margin: 0;">{{ stats.week }}</p>
|
||
</div>
|
||
|
||
<div class="stat-card" style="background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); text-align: center;">
|
||
<h3>🆕 Непрочитанные</h3>
|
||
<p style="font-size: 2rem; font-weight: bold; color: #dc3545; margin: 0;">{{ stats.unread }}</p>
|
||
</div>
|
||
|
||
<div class="stat-card" style="background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); text-align: center;">
|
||
<h3>⏳ В обработке</h3>
|
||
<p style="font-size: 2rem; font-weight: bold; color: #ffc107; margin: 0;">{{ stats.unprocessed }}</p>
|
||
</div>
|
||
</div>
|
||
|
||
<div style="margin-top: 2rem;">
|
||
<a href="{% url 'admin:programmer_callbackrequest_changelist' %}" class="button" style="background: #007bff; color: white; padding: 10px 20px; text-decoration: none; border-radius: 4px;">
|
||
📋 Перейти к списку заявок
|
||
</a>
|
||
<a href="{% url 'admin:index' %}" class="button" style="background: #6c757d; color: white; padding: 10px 20px; text-decoration: none; border-radius: 4px; margin-left: 10px;">
|
||
🏠 На главную админки
|
||
</a>
|
||
</div>
|
||
</div>
|
||
>>>>>>> master
|
||
{% endblock %} |