Goit

Simple and lightweight Git web server
git clone http://git.omkov.net/Goit
Log | Tree | Refs | README | Download

Goit/res/user/login.html (42 lines, 1.1 KiB) -rw-r--r-- blame download

01234567891011121314151617181920212223242526272829303132333435363738394041
<!DOCTYPE html>
<html lang="en">
	<head>{{template "base/head" .}}</head>
	<body>
		<header>
			<table>
				<tr>
					<td rowspan="2"><a href="/"><img src="/static/favicon.png" style="max-height: 24px"></a></td>
					<td><h1>{{.Title}}</h1></td>
				</tr>
				<tr><td></td></tr>
			</table>
		</header>
		<main>
			<form action="/user/login" method="post">
				{{.CsrfField}}
				<table>
					<tr>
						<td style="text-align: right;"><label for="username">Username</label></td>
						<td><input type="text" name="username" value="{{.Name}}" {{if not .FocusPw}}autofocus{{end}}></td>
					</tr>
					<tr>
						<td style="text-align: right;"><label for="password">Password</label></td>
						<td><input type="password" name="password" {{if .FocusPw}}autofocus{{end}}></td>
					</tr>
					<tr>
						<td></td>
						<td>
							<input type="submit" value="Login">
							<a href="/" style="color: inherit;">Cancel</a>
						</td>
					</tr>
					<tr>
						<td></td>
						<td style="color: #AA0000">{{.Message}}</td>
					</tr>
				</table>
			</form>
		</main>
	</body>
</html>