http5/templates/login.qtpl.go
2023-06-29 04:37:15 -07:00

90 lines
2.4 KiB
Go

// Code generated by qtc from "login.qtpl". DO NOT EDIT.
// See https://github.com/valyala/quicktemplate for details.
// Error page template. Implements BasePage methods.
//
//line templates/login.qtpl:3
package templates
//line templates/login.qtpl:3
import (
qtio422016 "io"
qt422016 "github.com/valyala/quicktemplate"
)
//line templates/login.qtpl:3
var (
_ = qtio422016.Copy
_ = qt422016.AcquireByteBuffer
)
//line templates/login.qtpl:4
type LoginPage struct {
// inherit from base page, so its' title is used in error page.
BasePage
PostEndpoint string
}
//line templates/login.qtpl:12
func (p *LoginPage) StreamBody(qw422016 *qt422016.Writer) {
//line templates/login.qtpl:12
qw422016.N().S(`
<link href="`)
//line templates/login.qtpl:13
qw422016.E().S(p.LoginCSS)
//line templates/login.qtpl:13
qw422016.N().S(`" rel="stylesheet">
<form class="form-signin" target="`)
//line templates/login.qtpl:15
qw422016.E().S(p.PostEndpoint)
//line templates/login.qtpl:15
qw422016.N().S(`">
<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>
`)
//line templates/login.qtpl:27
p.BasePage.StreamFooter(qw422016, p.Status)
//line templates/login.qtpl:27
qw422016.N().S(`
`)
//line templates/login.qtpl:28
}
//line templates/login.qtpl:28
func (p *LoginPage) WriteBody(qq422016 qtio422016.Writer) {
//line templates/login.qtpl:28
qw422016 := qt422016.AcquireWriter(qq422016)
//line templates/login.qtpl:28
p.StreamBody(qw422016)
//line templates/login.qtpl:28
qt422016.ReleaseWriter(qw422016)
//line templates/login.qtpl:28
}
//line templates/login.qtpl:28
func (p *LoginPage) Body() string {
//line templates/login.qtpl:28
qb422016 := qt422016.AcquireByteBuffer()
//line templates/login.qtpl:28
p.WriteBody(qb422016)
//line templates/login.qtpl:28
qs422016 := string(qb422016.B)
//line templates/login.qtpl:28
qt422016.ReleaseByteBuffer(qb422016)
//line templates/login.qtpl:28
return qs422016
//line templates/login.qtpl:28
}