This commit is contained in:
2025-07-26 04:41:47 +03:00
parent 019e4f90c7
commit f5cf4c32da
17 changed files with 2386 additions and 931 deletions

View File

@@ -1,12 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<title>Register</title>
<title>{{ _('Register') }}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"> <!-- Link to your CSS -->
</head>
<body>
<div class="auth-container"> {# <-- Add this wrapper div #}
<h1>Register</h1>
<div class="auth-container">
<div class="lang-switcher-auth">
<a href="{{ url_for('.set_language', language='ru') }}">Русский</a> |
<a href="{{ url_for('.set_language', language='en') }}">English</a>
</div>
<h1>{{ _('Register') }}</h1>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
@@ -15,13 +19,13 @@
{% endif %}
{% endwith %}
<form method="post">
<label for="username">Username:</label>
<label for="username">{{ _('Username:') }}</label>
<input type="text" id="username" name="username" required><br>
<label for="password">Password:</label>
<label for="password">{{ _('Password:') }}</label>
<input type="password" id="password" name="password" required><br>
<button type="submit">Register</button>
<button type="submit">{{ _('Register') }}</button>
</form>
<p>Already have an account? <a href="{{ url_for('login') }}">Login here</a></p>
</div> {# <-- Close the wrapper div #}
<p>{{ _("Already have an account?") }} <a href="{{ url_for('.login') }}">{{ _('Login here') }}</a></p>
</div>
</body>
</html>