79 lines
2.4 KiB
HTML
79 lines
2.4 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="ru">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<title>{% block title %}Админ-панель - Статистика{% endblock %}</title>
|
||
{% load django_bootstrap5 %}
|
||
{% bootstrap_css %}
|
||
<style>
|
||
body {
|
||
background: #f8f9fa;
|
||
font-family: 'Inter', sans-serif;
|
||
}
|
||
.admin-header {
|
||
background: #343a40;
|
||
color: white;
|
||
padding: 1rem 0;
|
||
margin-bottom: 2rem;
|
||
}
|
||
.stats-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||
gap: 1.5rem;
|
||
margin-bottom: 2rem;
|
||
}
|
||
.stat-card {
|
||
background: white;
|
||
padding: 1.5rem;
|
||
border-radius: 8px;
|
||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||
text-align: center;
|
||
}
|
||
.stat-number {
|
||
font-size: 2rem;
|
||
font-weight: bold;
|
||
color: #007bff;
|
||
margin: 0;
|
||
}
|
||
table {
|
||
width: 100%;
|
||
background: white;
|
||
border-radius: 8px;
|
||
overflow: hidden;
|
||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||
}
|
||
th, td {
|
||
padding: 1rem;
|
||
text-align: left;
|
||
border-bottom: 1px solid #dee2e6;
|
||
}
|
||
th {
|
||
background: #f8f9fa;
|
||
font-weight: 600;
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<div class="admin-header">
|
||
<div class="container">
|
||
<div class="d-flex justify-content-between align-items-center">
|
||
<h1>{% block page_title %}Админ-панель{% endblock %}</h1>
|
||
<div>
|
||
<a href="{% url 'home' %}" class="btn btn-outline-light btn-sm">На сайт</a>
|
||
<a href="{% url 'admin:index' %}" class="btn btn-outline-light btn-sm">Django Admin</a>
|
||
<a href="{% url 'admin:logout' %}" class="btn btn-outline-light btn-sm">Выйти</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="container">
|
||
{% bootstrap_messages %}
|
||
{% block content %}
|
||
{% endblock %}
|
||
</div>
|
||
|
||
{% bootstrap_javascript %}
|
||
</body>
|
||
</html> |