2021-11-22 09:06:23 +00:00
|
|
|
// Code generated by go generate; DO NOT EDIT.
|
|
|
|
|
|
|
|
|
|
package handler
|
|
|
|
|
|
|
|
|
|
var TplMap = map[string]string{
|
|
|
|
|
"index": `{{ define "content" }}
|
|
|
|
|
<p>This is the index</p>
|
2021-11-22 09:26:30 +00:00
|
|
|
{{ end }}`,
|
|
|
|
|
"login": `{{ define "content" }}
|
|
|
|
|
<h1>Login</h1>
|
|
|
|
|
{{ if .form.Error }}
|
|
|
|
|
<p>{{ .form.Error }}</p>
|
|
|
|
|
{{ end }}
|
|
|
|
|
<form action="/check-login" method="post" class="auth-form">
|
|
|
|
|
<div class="field">
|
|
|
|
|
<label for="name">Username</label>
|
|
|
|
|
<input type="text" id="name" name="name" autocomplete="off" required autofocus/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="field">
|
|
|
|
|
<label for="password">Password</label>
|
|
|
|
|
<input type="password" id="password" name="password" required/>
|
|
|
|
|
</div>
|
|
|
|
|
<br>
|
|
|
|
|
<input type="submit" value="Submit">
|
|
|
|
|
</form>
|
|
|
|
|
{{ end }}`,
|
|
|
|
|
"register": `{{ define "content" }}
|
|
|
|
|
<h1>Register</h1>
|
|
|
|
|
{{ if .form.Error }}
|
|
|
|
|
<p>{{ .form.Error }}</p>
|
|
|
|
|
{{ end }}
|
|
|
|
|
<form action="/register" method="post" class="auth-form">
|
|
|
|
|
<div class="field">
|
|
|
|
|
<label for="name">Username</label>
|
|
|
|
|
<input type="text" id="name" name="name" autocomplete="off" required autofocus/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="field">
|
|
|
|
|
<label for="password">Password</label>
|
|
|
|
|
<input type="password" id="password" name="password" required/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="field">
|
|
|
|
|
<label for="password-confirm">Confirm password</label>
|
|
|
|
|
<input type="password" id="password-confirm" name="password-confirm" required/>
|
|
|
|
|
</div>
|
|
|
|
|
<br>
|
|
|
|
|
<input type="submit" value="Submit">
|
|
|
|
|
</form>
|
2021-11-22 09:06:23 +00:00
|
|
|
{{ end }}`,
|
|
|
|
|
}
|