GoBlog/templates/login.gohtml

23 lines
899 B
Plaintext
Raw Normal View History

2020-12-15 16:40:14 +00:00
{{ define "title" }}
2021-01-15 21:07:51 +00:00
<title>{{ string .Blog.Lang "login" }} - {{ .Blog.Title }}</title>
2020-12-15 16:40:14 +00:00
{{ end }}
{{ define "main" }}
<main>
<h1>{{ string .Blog.Lang "login" }}</h1>
<form class="fw-form p" method="post">
<input type="hidden" name="loginaction" value="login">
<input type="hidden" name="loginmethod" value="{{ .Data.loginmethod }}">
<input type="hidden" name="loginheaders" value="{{ .Data.loginheaders }}">
<input type="hidden" name="loginbody" value="{{ .Data.loginbody }}">
<input type="text" name="username" placeholder="{{ string .Blog.Lang "username" }}">
<input type="password" name="password" placeholder="{{ string .Blog.Lang "password" }}">
<input class="fw" type="submit" value="{{ string .Blog.Lang "login" }}">
</form>
2021-02-27 07:31:06 +00:00
{{ include "author" . }}
2020-12-15 16:40:14 +00:00
</main>
{{ end }}
{{ define "login" }}
{{ template "base" . }}
{{ end }}