Last active
February 19, 2019 06:46
-
-
Save gistlyn/f85cca5d4be096f95d7331f50ed22e19 to your computer and use it in GitHub Desktop.
Server HTML using Templates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h3>Sign In using credentials</h3> | |
<form action="/auth/credentials" method="post" class="col-lg-4"> | |
<div class="form-group"> | |
{{ ['userName','password'] | validationSummary({class:'alert alert-warning'}) }} | |
{{ { continue: qs.continue ?? '/server/', errorView:'/server/login' } | htmlHiddenInputs }} | |
</div> | |
<div class="form-group"> | |
{{ {id:'userName'} | |
| formInput({label:'Email',help:'Email you signed up with',size:'lg'}) }} | |
</div> | |
<div class="form-group"> | |
{{ {id:'password',type:'password'} | |
| formInput({label:'Password',help:'6 characters or more',size:'lg',preserveValue:false}) }} | |
</div> | |
<div class="form-group"> | |
{{ {id:'rememberMe',type:'checkbox',checked:true} | formInput({label:'Remember Me'}) }} | |
</div> | |
<div class="form-group"> | |
<button type="submit" class="btn btn-lg btn-primary">Login</button> | |
</div> | |
<div class="form-group"> | |
<a class="lnk" href="/server/register">Register New User</a> | |
</div> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment