Upload templates/register.html with huggingface_hub
Browse files- templates/register.html +50 -0
templates/register.html
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="zh-TW">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>PRA Analysis - 註冊</title>
|
| 7 |
+
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
| 8 |
+
<style>
|
| 9 |
+
body { background: #f5f7fa; display: flex; align-items: center; justify-content: center; min-height: 100vh; }
|
| 10 |
+
.login-card { width: 400px; background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,.1); padding: 2.5rem; }
|
| 11 |
+
.login-title { text-align: center; margin-bottom: 1.5rem; }
|
| 12 |
+
</style>
|
| 13 |
+
</head>
|
| 14 |
+
<body>
|
| 15 |
+
<div class="login-card">
|
| 16 |
+
<div class="login-title">
|
| 17 |
+
<h2>註冊帳號</h2>
|
| 18 |
+
<p class="text-muted small">PRA Analysis System</p>
|
| 19 |
+
</div>
|
| 20 |
+
|
| 21 |
+
{% if error %}
|
| 22 |
+
<div class="alert alert-danger py-2 small">{{ error }}</div>
|
| 23 |
+
{% endif %}
|
| 24 |
+
|
| 25 |
+
<form method="post" action="/register">
|
| 26 |
+
<div class="mb-3">
|
| 27 |
+
<label class="form-label small">姓名</label>
|
| 28 |
+
<input type="text" class="form-control" name="display_name" required>
|
| 29 |
+
</div>
|
| 30 |
+
<div class="mb-3">
|
| 31 |
+
<label class="form-label small">帳號(Email 或自訂)</label>
|
| 32 |
+
<input type="text" class="form-control" name="username" required>
|
| 33 |
+
</div>
|
| 34 |
+
<div class="mb-3">
|
| 35 |
+
<label class="form-label small">密碼</label>
|
| 36 |
+
<input type="password" class="form-control" name="password" required minlength="4">
|
| 37 |
+
<div class="form-text text-danger fw-bold">請勿使用常用密碼<br>(管理員看的到你的密碼 可以用簡單的123456等)</div>
|
| 38 |
+
</div>
|
| 39 |
+
<div class="mb-3">
|
| 40 |
+
<label class="form-label small">確認密碼</label>
|
| 41 |
+
<input type="password" class="form-control" name="password2" required>
|
| 42 |
+
</div>
|
| 43 |
+
<button type="submit" class="btn btn-primary w-100">註冊</button>
|
| 44 |
+
<div class="text-center mt-3">
|
| 45 |
+
<a href="/login" class="small">已有帳號?登入</a>
|
| 46 |
+
</div>
|
| 47 |
+
</form>
|
| 48 |
+
</div>
|
| 49 |
+
</body>
|
| 50 |
+
</html>
|