aboutsummaryrefslogtreecommitdiff
path: root/forged/templates/login.tmpl
blob: 980b8631430dccedf83b995ac6b9a4f0773a6871 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61

{{/*
	SPDX-License-Identifier: AGPL-3.0-only
	SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu <https://runxiyu.org>
*/}}
{{- define "login" -}}
<!DOCTYPE html>
<html lang="en">
	<head>
		{{- template "head_common" . -}}
		<title>Login &ndash; {{ .global.forge_title -}}</title>
	</head>
	<body class="index">
		<main>
			{{- .login_error -}}
			<div class="padding-wrapper">
					<form method="POST" enctype="application/x-www-form-urlencoded">
						<table>
							<thead>
								<tr>
									<th class="title-row" colspan="2">
										Password authentication
									</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<th scope="row">Username</th>
									<td class="tdinput">
										<input id="usernameinput" name="username" type="text" />
									</td>
								</tr>
								<tr>
									<th scope="row">Password</th>
									<td class="tdinput">
										<input id="passwordinput" name="password" type="password" />
									</td>
								</tr>
							</tbody>
							<tfoot>
								<tr>
									<td class="th-like" colspan="2">
										<div class="flex-justify">
											<div class="left">
											</div>
											<div class="right">
												<input class="btn-primary" type="submit" value="Submit" />
											</div>
										</div>
									</td>
								</tr>
							</tfoot>
						</table>
					</form>
			</div>
		</main>
		<footer>
			{{- template "footer" . -}}
		</footer>
	</body>
</html>
{{- end -}}