29 lines
969 B
Plaintext
29 lines
969 B
Plaintext
// Error page template. Implements BasePage methods.
|
|
|
|
{% code
|
|
type LoginPage struct {
|
|
// inherit from base page, so its' title is used in error page.
|
|
BasePage
|
|
PostEndpoint string
|
|
}
|
|
%}
|
|
|
|
|
|
{% func (p *LoginPage) Body() %}
|
|
<link href="{%s p.LoginCSS %}" rel="stylesheet">
|
|
|
|
<form class="form-signin" target="{%s p.PostEndpoint %}">
|
|
<label for="inputEmail" class="sr-only">username</label>
|
|
<input type="username" id="inputUser" class="form-control" placeholder="sexhaver69" required autofocus>
|
|
<label for="inputPassword" class="sr-only">password</label>
|
|
<input type="password" id="inputPassword" class="form-control" placeholder="dogperson55555" required>
|
|
<div class="checkbox mb-3">
|
|
<label>
|
|
<input type="checkbox" value=""> remember me
|
|
</label>
|
|
</div>
|
|
<button class="btn btn-lg btn-primary btn-block" type="submit">login</button>
|
|
</form>
|
|
{%= p.BasePage.Footer(p.Status) %}
|
|
{% endfunc %}
|