2021-02-22 18:11:37 +00:00
|
|
|
// Code generated by qtc from "modal.qtpl". DO NOT EDIT.
|
|
|
|
// See https://github.com/valyala/quicktemplate for details.
|
|
|
|
|
|
|
|
//line views/modal.qtpl:1
|
|
|
|
package views
|
|
|
|
|
|
|
|
//line views/modal.qtpl:1
|
2021-09-06 17:46:34 +00:00
|
|
|
import "fmt"
|
|
|
|
|
|
|
|
//line views/modal.qtpl:2
|
2021-02-22 18:11:37 +00:00
|
|
|
import "net/http"
|
|
|
|
|
2021-08-08 19:38:41 +00:00
|
|
|
//line views/modal.qtpl:3
|
2021-09-06 17:46:34 +00:00
|
|
|
import "github.com/bouncepaw/mycorrhiza/l18n"
|
|
|
|
|
|
|
|
//line views/modal.qtpl:5
|
2021-02-22 18:11:37 +00:00
|
|
|
import (
|
|
|
|
qtio422016 "io"
|
|
|
|
|
|
|
|
qt422016 "github.com/valyala/quicktemplate"
|
|
|
|
)
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:5
|
2021-02-22 18:11:37 +00:00
|
|
|
var (
|
|
|
|
_ = qtio422016.Copy
|
|
|
|
_ = qt422016.AcquireByteBuffer
|
|
|
|
)
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:5
|
2021-02-22 18:11:37 +00:00
|
|
|
func StreamDeleteAskHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName string, isOld bool) {
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:5
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:7
|
|
|
|
lc := l18n.FromRequest(rq)
|
|
|
|
|
|
|
|
//line views/modal.qtpl:8
|
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
|
|
|
//line views/modal.qtpl:9
|
2021-02-22 18:11:37 +00:00
|
|
|
streammodalBegin(qw422016,
|
|
|
|
"delete-confirm",
|
|
|
|
hyphaName,
|
|
|
|
"",
|
2021-09-06 17:46:34 +00:00
|
|
|
fmt.Sprintf(lc.Get("ui.ask_delete"), beautifulLink(hyphaName)))
|
|
|
|
//line views/modal.qtpl:13
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:14
|
|
|
|
streammodalReallyWant(qw422016, hyphaName, lc.Get("ui.ask_delete_verb"), lc)
|
|
|
|
//line views/modal.qtpl:14
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.N().S(`
|
2021-09-06 17:46:34 +00:00
|
|
|
<p>`)
|
|
|
|
//line views/modal.qtpl:15
|
|
|
|
qw422016.E().S(lc.Get("ui.ask_delete_tip"))
|
|
|
|
//line views/modal.qtpl:15
|
|
|
|
qw422016.N().S(`</p>
|
2021-02-22 18:11:37 +00:00
|
|
|
`)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:16
|
|
|
|
streammodalEnd(qw422016, hyphaName, true, lc)
|
|
|
|
//line views/modal.qtpl:16
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:17
|
2021-02-22 18:11:37 +00:00
|
|
|
}
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:17
|
2021-02-22 18:11:37 +00:00
|
|
|
func WriteDeleteAskHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName string, isOld bool) {
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:17
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:17
|
2021-02-22 18:11:37 +00:00
|
|
|
StreamDeleteAskHTML(qw422016, rq, hyphaName, isOld)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:17
|
2021-02-22 18:11:37 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:17
|
2021-02-22 18:11:37 +00:00
|
|
|
}
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:17
|
2021-02-22 18:11:37 +00:00
|
|
|
func DeleteAskHTML(rq *http.Request, hyphaName string, isOld bool) string {
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:17
|
2021-02-22 18:11:37 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:17
|
2021-02-22 18:11:37 +00:00
|
|
|
WriteDeleteAskHTML(qb422016, rq, hyphaName, isOld)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:17
|
2021-02-22 18:11:37 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:17
|
2021-02-22 18:11:37 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:17
|
2021-02-22 18:11:37 +00:00
|
|
|
return qs422016
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:17
|
2021-02-22 18:11:37 +00:00
|
|
|
}
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:19
|
2021-02-22 18:11:37 +00:00
|
|
|
func StreamUnattachAskHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName string, isOld bool) {
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:19
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:21
|
|
|
|
lc := l18n.FromRequest(rq)
|
|
|
|
|
|
|
|
//line views/modal.qtpl:22
|
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
|
|
|
//line views/modal.qtpl:23
|
2021-02-22 18:11:37 +00:00
|
|
|
streammodalBegin(qw422016,
|
2021-02-24 17:34:42 +00:00
|
|
|
"unattach",
|
2021-02-22 18:11:37 +00:00
|
|
|
hyphaName,
|
|
|
|
"",
|
2021-09-06 17:46:34 +00:00
|
|
|
fmt.Sprintf(lc.Get("ui.ask_unattach"), beautifulLink(hyphaName)))
|
|
|
|
//line views/modal.qtpl:27
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:28
|
|
|
|
streammodalReallyWant(qw422016, hyphaName, lc.Get("ui.ask_unattach_verb"), lc)
|
|
|
|
//line views/modal.qtpl:28
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:29
|
|
|
|
streammodalEnd(qw422016, hyphaName, true, lc)
|
|
|
|
//line views/modal.qtpl:29
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:30
|
2021-02-22 18:11:37 +00:00
|
|
|
}
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:30
|
2021-02-22 18:11:37 +00:00
|
|
|
func WriteUnattachAskHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName string, isOld bool) {
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:30
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:30
|
2021-02-22 18:11:37 +00:00
|
|
|
StreamUnattachAskHTML(qw422016, rq, hyphaName, isOld)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:30
|
2021-02-22 18:11:37 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:30
|
2021-02-22 18:11:37 +00:00
|
|
|
}
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:30
|
2021-02-22 18:11:37 +00:00
|
|
|
func UnattachAskHTML(rq *http.Request, hyphaName string, isOld bool) string {
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:30
|
2021-02-22 18:11:37 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:30
|
2021-02-22 18:11:37 +00:00
|
|
|
WriteUnattachAskHTML(qb422016, rq, hyphaName, isOld)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:30
|
2021-02-22 18:11:37 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:30
|
2021-02-22 18:11:37 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:30
|
2021-02-22 18:11:37 +00:00
|
|
|
return qs422016
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:30
|
2021-02-22 18:11:37 +00:00
|
|
|
}
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:32
|
2021-02-22 18:11:37 +00:00
|
|
|
func StreamRenameAskHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName string, isOld bool) {
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:32
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:34
|
|
|
|
lc := l18n.FromRequest(rq)
|
|
|
|
|
|
|
|
//line views/modal.qtpl:35
|
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
|
|
|
//line views/modal.qtpl:36
|
2021-02-22 18:11:37 +00:00
|
|
|
streammodalBegin(qw422016,
|
|
|
|
"rename-confirm",
|
|
|
|
hyphaName,
|
|
|
|
` method="post" enctype="multipart/form-data"`,
|
2021-09-06 17:46:34 +00:00
|
|
|
fmt.Sprintf(lc.Get("ui.ask_rename"), beautifulLink(hyphaName)))
|
|
|
|
//line views/modal.qtpl:40
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.N().S(`
|
2021-09-06 17:46:34 +00:00
|
|
|
<label for="new-name">`)
|
|
|
|
//line views/modal.qtpl:41
|
|
|
|
qw422016.E().S(lc.Get("ui.rename_to"))
|
|
|
|
//line views/modal.qtpl:41
|
|
|
|
qw422016.N().S(`</label>
|
2021-02-22 18:11:37 +00:00
|
|
|
<input type="text" value="`)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:42
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.E().S(hyphaName)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:42
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.N().S(`" required autofocus id="new-name" name="new-name"/>
|
|
|
|
|
|
|
|
<input type="checkbox" id="recursive" name="recursive" value="true" checked/>
|
2021-09-06 17:46:34 +00:00
|
|
|
<label for="recursive">`)
|
|
|
|
//line views/modal.qtpl:45
|
|
|
|
qw422016.E().S(lc.Get("ui.rename_recurse"))
|
|
|
|
//line views/modal.qtpl:45
|
|
|
|
qw422016.N().S(`</label>
|
2021-02-22 18:11:37 +00:00
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
<p>`)
|
|
|
|
//line views/modal.qtpl:47
|
|
|
|
qw422016.E().S(lc.Get("ui.rename_tip"))
|
|
|
|
//line views/modal.qtpl:47
|
|
|
|
qw422016.N().S(`</p>
|
2021-02-22 18:11:37 +00:00
|
|
|
`)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:48
|
|
|
|
streammodalEnd(qw422016, hyphaName, false, lc)
|
|
|
|
//line views/modal.qtpl:48
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:49
|
2021-02-22 18:11:37 +00:00
|
|
|
}
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:49
|
2021-02-22 18:11:37 +00:00
|
|
|
func WriteRenameAskHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName string, isOld bool) {
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:49
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:49
|
2021-02-22 18:11:37 +00:00
|
|
|
StreamRenameAskHTML(qw422016, rq, hyphaName, isOld)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:49
|
2021-02-22 18:11:37 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:49
|
2021-02-22 18:11:37 +00:00
|
|
|
}
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:49
|
2021-02-22 18:11:37 +00:00
|
|
|
func RenameAskHTML(rq *http.Request, hyphaName string, isOld bool) string {
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:49
|
2021-02-22 18:11:37 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:49
|
2021-02-22 18:11:37 +00:00
|
|
|
WriteRenameAskHTML(qb422016, rq, hyphaName, isOld)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:49
|
2021-02-22 18:11:37 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:49
|
2021-02-22 18:11:37 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:49
|
2021-02-22 18:11:37 +00:00
|
|
|
return qs422016
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:49
|
2021-02-22 18:11:37 +00:00
|
|
|
}
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:51
|
|
|
|
func streammodalReallyWant(qw422016 *qt422016.Writer, hyphaName, verb string, lc *l18n.Localizer) {
|
|
|
|
//line views/modal.qtpl:51
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.N().S(`
|
2021-09-06 17:46:34 +00:00
|
|
|
<p class="modal__confirmation-msg">`)
|
|
|
|
//line views/modal.qtpl:52
|
|
|
|
qw422016.N().S(lc.Get("ui.ask_really", &l18n.Replacements{"verb": verb, "name": fmt.Sprintf("<em>%s</em>", hyphaName)}))
|
|
|
|
//line views/modal.qtpl:52
|
|
|
|
qw422016.N().S(`</p>
|
2021-02-22 18:11:37 +00:00
|
|
|
`)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:53
|
2021-02-22 18:11:37 +00:00
|
|
|
}
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:53
|
|
|
|
func writemodalReallyWant(qq422016 qtio422016.Writer, hyphaName, verb string, lc *l18n.Localizer) {
|
|
|
|
//line views/modal.qtpl:53
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:53
|
|
|
|
streammodalReallyWant(qw422016, hyphaName, verb, lc)
|
|
|
|
//line views/modal.qtpl:53
|
2021-02-22 18:11:37 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:53
|
2021-02-22 18:11:37 +00:00
|
|
|
}
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:53
|
|
|
|
func modalReallyWant(hyphaName, verb string, lc *l18n.Localizer) string {
|
|
|
|
//line views/modal.qtpl:53
|
2021-02-22 18:11:37 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:53
|
|
|
|
writemodalReallyWant(qb422016, hyphaName, verb, lc)
|
|
|
|
//line views/modal.qtpl:53
|
2021-02-22 18:11:37 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:53
|
2021-02-22 18:11:37 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:53
|
2021-02-22 18:11:37 +00:00
|
|
|
return qs422016
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:53
|
2021-02-22 18:11:37 +00:00
|
|
|
}
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:55
|
2021-02-22 18:11:37 +00:00
|
|
|
func streammodalBegin(qw422016 *qt422016.Writer, path, hyphaName, formAttrs, legend string) {
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:55
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<div class="layout">
|
|
|
|
<main class="main-width">
|
|
|
|
<form class="modal" action="/`)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:58
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.E().S(path)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:58
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.N().S(`/`)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:58
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.E().S(hyphaName)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:58
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.N().S(`"`)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:58
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.N().S(formAttrs)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:58
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.N().S(`>
|
|
|
|
<fieldset class="modal__fieldset">
|
|
|
|
<legend class="modal__title">`)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:60
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.N().S(legend)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:60
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.N().S(`</legend>
|
|
|
|
`)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:61
|
2021-02-22 18:11:37 +00:00
|
|
|
}
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:61
|
2021-02-22 18:11:37 +00:00
|
|
|
func writemodalBegin(qq422016 qtio422016.Writer, path, hyphaName, formAttrs, legend string) {
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:61
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:61
|
2021-02-22 18:11:37 +00:00
|
|
|
streammodalBegin(qw422016, path, hyphaName, formAttrs, legend)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:61
|
2021-02-22 18:11:37 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:61
|
2021-02-22 18:11:37 +00:00
|
|
|
}
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:61
|
2021-02-22 18:11:37 +00:00
|
|
|
func modalBegin(path, hyphaName, formAttrs, legend string) string {
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:61
|
2021-02-22 18:11:37 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:61
|
2021-02-22 18:11:37 +00:00
|
|
|
writemodalBegin(qb422016, path, hyphaName, formAttrs, legend)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:61
|
2021-02-22 18:11:37 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:61
|
2021-02-22 18:11:37 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:61
|
2021-02-22 18:11:37 +00:00
|
|
|
return qs422016
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:61
|
2021-02-22 18:11:37 +00:00
|
|
|
}
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:63
|
|
|
|
func streammodalEnd(qw422016 *qt422016.Writer, hyphaName string, shouldFocusOnConfirm bool, lc *l18n.Localizer) {
|
|
|
|
//line views/modal.qtpl:63
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.N().S(`
|
2021-09-06 17:46:34 +00:00
|
|
|
<button type="submit" value="Confirm" class="btn" `)
|
|
|
|
//line views/modal.qtpl:64
|
2021-02-22 18:11:37 +00:00
|
|
|
if shouldFocusOnConfirm {
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:64
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.N().S(`autofocus`)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:64
|
2021-02-22 18:11:37 +00:00
|
|
|
}
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:64
|
|
|
|
qw422016.N().S(`>`)
|
|
|
|
//line views/modal.qtpl:64
|
|
|
|
qw422016.E().S(lc.Get("ui.confirm"))
|
|
|
|
//line views/modal.qtpl:64
|
|
|
|
qw422016.N().S(`</button>
|
2021-02-22 18:11:37 +00:00
|
|
|
<a href="/hypha/`)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:65
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.E().S(hyphaName)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:65
|
|
|
|
qw422016.N().S(`" class="btn btn_weak">`)
|
|
|
|
//line views/modal.qtpl:65
|
|
|
|
qw422016.E().S(lc.Get("ui.cancel"))
|
|
|
|
//line views/modal.qtpl:65
|
|
|
|
qw422016.N().S(`</a>
|
2021-02-22 18:11:37 +00:00
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
`)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:70
|
2021-02-22 18:11:37 +00:00
|
|
|
}
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:70
|
|
|
|
func writemodalEnd(qq422016 qtio422016.Writer, hyphaName string, shouldFocusOnConfirm bool, lc *l18n.Localizer) {
|
|
|
|
//line views/modal.qtpl:70
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:70
|
|
|
|
streammodalEnd(qw422016, hyphaName, shouldFocusOnConfirm, lc)
|
|
|
|
//line views/modal.qtpl:70
|
2021-02-22 18:11:37 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:70
|
2021-02-22 18:11:37 +00:00
|
|
|
}
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:70
|
|
|
|
func modalEnd(hyphaName string, shouldFocusOnConfirm bool, lc *l18n.Localizer) string {
|
|
|
|
//line views/modal.qtpl:70
|
2021-02-22 18:11:37 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:70
|
|
|
|
writemodalEnd(qb422016, hyphaName, shouldFocusOnConfirm, lc)
|
|
|
|
//line views/modal.qtpl:70
|
2021-02-22 18:11:37 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:70
|
2021-02-22 18:11:37 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:70
|
2021-02-22 18:11:37 +00:00
|
|
|
return qs422016
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/modal.qtpl:70
|
2021-02-22 18:11:37 +00:00
|
|
|
}
|