huge updates i donot track what updates i have made
This commit is contained in:
55 files changed
+11072
-1415
No files matched your search
@@ -0,0 +1,160 @@
|
||||
{% extends "base.html" %}
|
||||
{% load static %}
|
||||
|
||||
{% block content %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Set New Password - Student Management System</title>
|
||||
<style>
|
||||
:root {
|
||||
--primary-color: #4285f4;
|
||||
--secondary-color: #34a853;
|
||||
--accent-color: #ea4335;
|
||||
--background-color: #f8f9fa;
|
||||
--text-color: #202124;
|
||||
--light-text: #5f6368;
|
||||
--error-color: #ea4335;
|
||||
--border-radius: 8px;
|
||||
--box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
|
||||
background-color: var(--background-color);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
.reset-container {
|
||||
background: white;
|
||||
border-radius: var(--border-radius);
|
||||
box-shadow: var(--box-shadow);
|
||||
width: 380px;
|
||||
padding: 40px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.logo {
|
||||
margin-bottom: 30px;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 24px;
|
||||
font-weight: 500;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-bottom: 30px;
|
||||
color: var(--light-text);
|
||||
line-height: 1.5;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.input-group {
|
||||
margin-bottom: 20px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
label {
|
||||
display: block;
|
||||
margin-bottom: 8px;
|
||||
font-size: 14px;
|
||||
color: var(--light-text);
|
||||
}
|
||||
|
||||
input[type="password"] {
|
||||
width: calc(100% - 20px);
|
||||
padding: 12px 10px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: var(--border-radius);
|
||||
font-size: 15px;
|
||||
transition: border 0.3s;
|
||||
}
|
||||
|
||||
input:focus {
|
||||
border: 1px solid var(--primary-color);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.submit-btn {
|
||||
background-color: var(--primary-color);
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: var(--border-radius);
|
||||
padding: 12px 24px;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
width: 100%;
|
||||
transition: background-color 0.3s;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.submit-btn:hover {
|
||||
background-color: #3367d6;
|
||||
}
|
||||
|
||||
.error-message {
|
||||
color: var(--error-color);
|
||||
margin-bottom: 20px;
|
||||
text-align: left;
|
||||
font-size: 14px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="reset-container">
|
||||
<img src="{% static 'img/logo.png' %}" alt="Logo" class="logo">
|
||||
<h1>Set New Password</h1>
|
||||
|
||||
<p>Please enter your new password below.</p>
|
||||
|
||||
{% if error %}
|
||||
<div class="error-message">
|
||||
{{ error }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if messages %}
|
||||
<div class="error-message">
|
||||
{% for message in messages %}
|
||||
{{ message }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<form method="post" action="{% url 'set_new_password' %}">
|
||||
{% csrf_token %}
|
||||
<div class="input-group">
|
||||
<label for="new_password1">New Password</label>
|
||||
<input type="password" name="new_password1" id="new_password1" required autofocus>
|
||||
</div>
|
||||
|
||||
<div class="input-group">
|
||||
<label for="new_password2">Confirm New Password</label>
|
||||
<input type="password" name="new_password2" id="new_password2" required>
|
||||
</div>
|
||||
|
||||
{% if is_email %}
|
||||
<input type="hidden" name="email" value="{{ email }}">
|
||||
{% else %}
|
||||
<input type="hidden" name="phone" value="{{ phone }}">
|
||||
{% endif %}
|
||||
<input type="hidden" name="token" value="{{ token }}">
|
||||
|
||||
<button type="submit" class="submit-btn">Set New Password</button>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user