1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-10-30 19:56:16 +00:00
mycorrhiza/templates/http_mutators.qtpl.go

84 lines
2.4 KiB
Go
Raw Normal View History

2020-08-31 17:52:26 +00:00
// Code generated by qtc from "http_mutators.qtpl". DO NOT EDIT.
// See https://github.com/valyala/quicktemplate for details.
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:1
2020-08-31 17:52:26 +00:00
package templates
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:1
2020-08-31 17:52:26 +00:00
import (
qtio422016 "io"
qt422016 "github.com/valyala/quicktemplate"
)
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:1
2020-08-31 17:52:26 +00:00
var (
_ = qtio422016.Copy
_ = qt422016.AcquireByteBuffer
)
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:1
2020-08-31 17:52:26 +00:00
func StreamEditHTML(qw422016 *qt422016.Writer, hyphaName, textAreaFill, warning string) {
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:1
2020-08-31 17:52:26 +00:00
qw422016.N().S(`
2020-10-30 13:25:48 +00:00
<main class="edit">
2020-08-31 17:52:26 +00:00
<h1>Edit `)
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:3
2020-08-31 17:52:26 +00:00
qw422016.E().S(hyphaName)
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:3
2020-08-31 17:52:26 +00:00
qw422016.N().S(`</h1>
`)
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:4
2020-08-31 17:52:26 +00:00
qw422016.N().S(warning)
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:4
2020-08-31 17:52:26 +00:00
qw422016.N().S(`
2020-10-30 13:25:48 +00:00
<form method="post" class="edit-form"
2020-08-31 17:52:26 +00:00
action="/upload-text/`)
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:6
2020-08-31 17:52:26 +00:00
qw422016.E().S(hyphaName)
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:6
2020-08-31 17:52:26 +00:00
qw422016.N().S(`">
<textarea name="text">`)
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:7
2020-08-31 17:52:26 +00:00
qw422016.E().S(textAreaFill)
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:7
2020-08-31 17:52:26 +00:00
qw422016.N().S(`</textarea>
<br/>
<input type="submit"/>
<a href="/page/`)
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:10
2020-08-31 17:52:26 +00:00
qw422016.E().S(hyphaName)
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:10
2020-08-31 17:52:26 +00:00
qw422016.N().S(`">Cancel</a>
</form>
</main>
`)
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:13
2020-08-31 17:52:26 +00:00
}
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:13
2020-08-31 17:52:26 +00:00
func WriteEditHTML(qq422016 qtio422016.Writer, hyphaName, textAreaFill, warning string) {
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:13
2020-08-31 17:52:26 +00:00
qw422016 := qt422016.AcquireWriter(qq422016)
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:13
2020-08-31 17:52:26 +00:00
StreamEditHTML(qw422016, hyphaName, textAreaFill, warning)
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:13
2020-08-31 17:52:26 +00:00
qt422016.ReleaseWriter(qw422016)
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:13
2020-08-31 17:52:26 +00:00
}
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:13
2020-08-31 17:52:26 +00:00
func EditHTML(hyphaName, textAreaFill, warning string) string {
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:13
2020-08-31 17:52:26 +00:00
qb422016 := qt422016.AcquireByteBuffer()
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:13
2020-08-31 17:52:26 +00:00
WriteEditHTML(qb422016, hyphaName, textAreaFill, warning)
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:13
2020-08-31 17:52:26 +00:00
qs422016 := string(qb422016.B)
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:13
2020-08-31 17:52:26 +00:00
qt422016.ReleaseByteBuffer(qb422016)
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:13
2020-08-31 17:52:26 +00:00
return qs422016
2020-10-02 15:31:59 +00:00
//line templates/http_mutators.qtpl:13
2020-08-31 17:52:26 +00:00
}