Create the login screen

This commit is contained in:
vinchent 2024-07-19 09:23:24 +02:00
parent c88974788f
commit 447bfc4599
2 changed files with 35 additions and 0 deletions

View File

@ -50,6 +50,9 @@
<li class="nav-item">
<a class="nav-link" href="/contact">Contact</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/user/login">Login</a>
</li>
</ul>
</div>
</div>

32
templates/login.page.tmpl Normal file
View File

@ -0,0 +1,32 @@
{{template "base" .}}
{{define "content"}}
<div class="container">
<div class="row">
<div class="col">
<h1>Login</h1>
<form>
<div class="form-group mt-5">
<label for="email">Email:</label>
{{with .Form.Errors.Get "email"}}
<label class="text-danger">{{.}}</label>
{{end}}
<input type="text" name="email" id="email" class="form-control {{with .Form.Errors.Get "email"}} is-invalid {{end}}"
value="" required autocomplete="off">
</div>
<div class="form-group mt-5">
<label for="password">Password:</label>
{{with .Form.Errors.Get "password"}}
<label class="text-danger">{{.}}</label>
{{end}}
<input type="text" name="password" id="password" class="form-control {{with .Form.Errors.Get "password"}} is-invalid {{end}}"
value="" required autocomplete="off">
</div>
</form>
<hr>
<input type="submit" class="btn btn-primary" value="Submit">
</div>
</div>
</div>
{{end}}