~huyngo/yue

55ec74f5ede4bf54731d70c7a7fc923be9a378bf — Ngô Ngọc Đức Huy 11 months ago eabdb39
Add template for login page
1 files changed, 18 insertions(+), 0 deletions(-)

A templates/dynamic/login.tmpl
A templates/dynamic/login.tmpl => templates/dynamic/login.tmpl +18 -0
@@ 0,0 1,18 @@
{{template "base" .}}

{{define "title"}}{{ .Loc.Get "Log In" }}{{end}}

{{define "main"}}
<form action="/login" method="post">
  <fieldset>
    <legend><h1>{{ .Loc.Get "Log In" }}</h1></legend>
    <label for="username">{{ .Loc.Get "Username" }}</label>
    <input type="text" name="username" id="username" required />
    <label for="instance">{{ .Loc.Get "Instance" }}</label>
    <input type="text" name="instance" id="instance" required />
    <label for="password">{{ .Loc.Get "Password" }}</label>
    <input type="password" name="password" id="password" required />
    <input type="submit" value="{{ .Loc.Get "Log In" }}">
  </fieldset>
</form>
{{end}}