Implement initial login functionality
This commit is contained in:
parent
a3bd0db78c
commit
3aa79b0d23
36 changed files with 908 additions and 70 deletions
31
internal/dis/component/auth/templates/login.html
Normal file
31
internal/dis/component/auth/templates/login.html
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{{ template "_base.html" . }}
|
||||
{{ define "title" }}Login{{ end }}
|
||||
|
||||
{{ define "header/time" }}
|
||||
<!-- no header/time -->
|
||||
{{ end }}
|
||||
{{ define "header"}}
|
||||
<!-- no header -->
|
||||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
<div class="pure-u-1">
|
||||
|
||||
{{ if .Message }}
|
||||
<div>
|
||||
{{ .Message }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<form class="pure-form" method="POST">
|
||||
<fieldset>
|
||||
<legend>Login Required</legend>
|
||||
|
||||
<input type="text" name="username">
|
||||
<input type="password" name="password">
|
||||
<input type="submit" value="Login">
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue