Upload files to "templates"

This commit is contained in:
2025-09-25 20:49:02 +03:00
parent a2ca7630dc
commit ba55661861
5 changed files with 3577 additions and 0 deletions
+95
View File
@@ -0,0 +1,95 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Смена пароля</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
body {
background-color: #f8f9fa;
}
.change-password-container {
max-width: 500px;
margin: 50px auto;
padding: 30px;
background-color: white;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="{{ url_for('zilant.index') }}">Управление постами VK</a>
<div class="collapse navbar-collapse">
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<span class="navbar-text me-3">
Вы вошли как: <strong>{{ current_user.username }}</strong>
</span>
</li>
<li class="nav-item">
<a class="btn btn-outline-light" href="{{ url_for('zilant.index') }}">
<i class="fas fa-home"></i> На главную
</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="change-password-container">
<h2 class="text-center mb-4">Смена пароля</h2>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
<div class="alert alert-{{ category }} alert-dismissible fade show" role="alert">
{{ message }}
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
{% endfor %}
{% endif %}
{% endwith %}
<form method="POST" action="{{ url_for('zilant.change_password') }}">
<div class="mb-3">
<label for="current_password" class="form-label">
<i class="fas fa-lock me-1"></i> Текущий пароль
</label>
<input type="password" class="form-control" id="current_password" name="current_password" required>
</div>
<div class="mb-3">
<label for="new_password" class="form-label">
<i class="fas fa-key me-1"></i> Новый пароль
</label>
<input type="password" class="form-control" id="new_password" name="new_password" required>
</div>
<div class="mb-3">
<label for="confirm_password" class="form-label">
<i class="fas fa-check-circle me-1"></i> Подтвердите новый пароль
</label>
<input type="password" class="form-control" id="confirm_password" name="confirm_password" required>
</div>
<div class="d-grid gap-2">
<button type="submit" class="btn btn-primary btn-lg">
<i class="fas fa-save me-1"></i> Сохранить изменения
</button>
<a href="{{ url_for('zilant.index') }}" class="btn btn-outline-secondary">
<i class="fas fa-times me-1"></i> Отмена
</a>
</div>
</form>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>