37 lines
1.6 KiB
HTML
37 lines
1.6 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}登录 - PT Manager{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="flex items-center justify-center min-h-full">
|
|
<div class="bg-white p-8 rounded-lg shadow-md w-full max-w-md">
|
|
<div class="text-center mb-6">
|
|
<h1 class="text-2xl font-bold text-gray-800">PT Manager</h1>
|
|
<p class="text-gray-600">请登录您的账户</p>
|
|
</div>
|
|
|
|
{% if error %}
|
|
<div class="bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded mb-4">
|
|
{{ error }}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<form method="POST">
|
|
<div class="mb-4">
|
|
<label for="username" class="block text-gray-700 text-sm font-bold mb-2">用户名</label>
|
|
<input type="text" id="username" name="username" required
|
|
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
|
|
</div>
|
|
<div class="mb-6">
|
|
<label for="password" class="block text-gray-700 text-sm font-bold mb-2">密码</label>
|
|
<input type="password" id="password" name="password" required
|
|
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
|
|
</div>
|
|
<button type="submit"
|
|
class="w-full bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline">
|
|
登录
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |