// This file is automatically generated by qtc from "base.qtpl".
// See https://github.com/valyala/quicktemplate for details.

//line base.qtpl:1
package templates

//line base.qtpl:1
import (
	qtio422016 "io"

	qt422016 "github.com/valyala/quicktemplate"
)

//line base.qtpl:1
var (
	_ = qtio422016.Copy
	_ = qt422016.AcquireByteBuffer
)

//line base.qtpl:1
type PageImpl interface {
	//line base.qtpl:1
	Title() string
	//line base.qtpl:1
	StreamTitle(qw422016 *qt422016.Writer)
	//line base.qtpl:1
	WriteTitle(qq422016 qtio422016.Writer)
	//line base.qtpl:1
	Stylesheets() string
	//line base.qtpl:1
	StreamStylesheets(qw422016 *qt422016.Writer)
	//line base.qtpl:1
	WriteStylesheets(qq422016 qtio422016.Writer)
	//line base.qtpl:1
	Scripts() string
	//line base.qtpl:1
	StreamScripts(qw422016 *qt422016.Writer)
	//line base.qtpl:1
	WriteScripts(qq422016 qtio422016.Writer)
	//line base.qtpl:1
	Body() string
	//line base.qtpl:1
	StreamBody(qw422016 *qt422016.Writer)
	//line base.qtpl:1
	WriteBody(qq422016 qtio422016.Writer)
//line base.qtpl:1
}

//line base.qtpl:9
func StreamPage(qw422016 *qt422016.Writer, p PageImpl) {
	//line base.qtpl:9
	qw422016.N().S(`
<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <title>`)
	//line base.qtpl:14
	p.StreamTitle(qw422016)
	//line base.qtpl:14
	qw422016.N().S(`</title>
    `)
	//line base.qtpl:15
	p.StreamStylesheets(qw422016)
	//line base.qtpl:15
	qw422016.N().S(`
    `)
	//line base.qtpl:16
	p.StreamScripts(qw422016)
	//line base.qtpl:16
	qw422016.N().S(`
</head>

<body>
`)
	//line base.qtpl:20
	p.StreamBody(qw422016)
	//line base.qtpl:20
	qw422016.N().S(`
</body>
</html>
`)
//line base.qtpl:23
}

//line base.qtpl:23
func WritePage(qq422016 qtio422016.Writer, p PageImpl) {
	//line base.qtpl:23
	qw422016 := qt422016.AcquireWriter(qq422016)
	//line base.qtpl:23
	StreamPage(qw422016, p)
	//line base.qtpl:23
	qt422016.ReleaseWriter(qw422016)
//line base.qtpl:23
}

//line base.qtpl:23
func Page(p PageImpl) string {
	//line base.qtpl:23
	qb422016 := qt422016.AcquireByteBuffer()
	//line base.qtpl:23
	WritePage(qb422016, p)
	//line base.qtpl:23
	qs422016 := string(qb422016.B)
	//line base.qtpl:23
	qt422016.ReleaseByteBuffer(qb422016)
	//line base.qtpl:23
	return qs422016
//line base.qtpl:23
}

//line base.qtpl:25
func StreamGetDoneButton(qw422016 *qt422016.Writer, done bool) {
	//line base.qtpl:25
	qw422016.N().S(`
    `)
	//line base.qtpl:26
	if done {
		//line base.qtpl:26
		qw422016.N().S(`
        <input type="submit" class="button-primary button-green u-full-width" value="">
    `)
		//line base.qtpl:28
	} else {
		//line base.qtpl:28
		qw422016.N().S(`
        <input type="submit" class="button-primary button-red u-full-width" value="">
    `)
		//line base.qtpl:30
	}
	//line base.qtpl:30
	qw422016.N().S(`
`)
//line base.qtpl:31
}

//line base.qtpl:31
func WriteGetDoneButton(qq422016 qtio422016.Writer, done bool) {
	//line base.qtpl:31
	qw422016 := qt422016.AcquireWriter(qq422016)
	//line base.qtpl:31
	StreamGetDoneButton(qw422016, done)
	//line base.qtpl:31
	qt422016.ReleaseWriter(qw422016)
//line base.qtpl:31
}

//line base.qtpl:31
func GetDoneButton(done bool) string {
	//line base.qtpl:31
	qb422016 := qt422016.AcquireByteBuffer()
	//line base.qtpl:31
	WriteGetDoneButton(qb422016, done)
	//line base.qtpl:31
	qs422016 := string(qb422016.B)
	//line base.qtpl:31
	qt422016.ReleaseByteBuffer(qb422016)
	//line base.qtpl:31
	return qs422016
//line base.qtpl:31
}
