// This file is automatically generated by qtc from "search.html". // See https://github.com/valyala/quicktemplate for details. //line search.html:1 package templates //line search.html:1 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line search.html:1 import "strconv" //line search.html:3 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line search.html:3 type searchField struct { id, name string } // Common seatch part of many pages //line search.html:8 func StreamSearchCommon(qw422016 *qt422016.Writer, search SearchForm) { //line search.html:8 qw422016.N().S(` `) //line search.html:45 } //line search.html:45 func WriteSearchCommon(qq422016 qtio422016.Writer, search SearchForm) { //line search.html:45 qw422016 := qt422016.AcquireWriter(qq422016) //line search.html:45 StreamSearchCommon(qw422016, search) //line search.html:45 qt422016.ReleaseWriter(qw422016) //line search.html:45 } //line search.html:45 func SearchCommon(search SearchForm) string { //line search.html:45 qb422016 := qt422016.AcquireByteBuffer() //line search.html:45 WriteSearchCommon(qb422016, search) //line search.html:45 qs422016 := string(qb422016.B) //line search.html:45 qt422016.ReleaseByteBuffer(qb422016) //line search.html:45 return qs422016 //line search.html:45 } // Options fields of a search //line search.html:55 func streamsearchOption(qw422016 *qt422016.Writer, selected string, s searchField) { //line search.html:55 qw422016.N().S(` `) //line search.html:57 } //line search.html:57 func writesearchOption(qq422016 qtio422016.Writer, selected string, s searchField) { //line search.html:57 qw422016 := qt422016.AcquireWriter(qq422016) //line search.html:57 streamsearchOption(qw422016, selected, s) //line search.html:57 qt422016.ReleaseWriter(qw422016) //line search.html:57 } //line search.html:57 func searchOption(selected string, s searchField) string { //line search.html:57 qb422016 := qt422016.AcquireByteBuffer() //line search.html:57 writesearchOption(qb422016, selected, s) //line search.html:57 qs422016 := string(qb422016.B) //line search.html:57 qt422016.ReleaseByteBuffer(qb422016) //line search.html:57 return qs422016 //line search.html:57 } //line search.html:59 func StreamSearchAdvanced(qw422016 *qt422016.Writer, nav Navigation, search SearchForm) { //line search.html:59 qw422016.N().S(` `) //line search.html:82 } //line search.html:82 func WriteSearchAdvanced(qq422016 qtio422016.Writer, nav Navigation, search SearchForm) { //line search.html:82 qw422016 := qt422016.AcquireWriter(qq422016) //line search.html:82 StreamSearchAdvanced(qw422016, nav, search) //line search.html:82 qt422016.ReleaseWriter(qw422016) //line search.html:82 } //line search.html:82 func SearchAdvanced(nav Navigation, search SearchForm) string { //line search.html:82 qb422016 := qt422016.AcquireByteBuffer() //line search.html:82 WriteSearchAdvanced(qb422016, nav, search) //line search.html:82 qs422016 := string(qb422016.B) //line search.html:82 qt422016.ReleaseByteBuffer(qb422016) //line search.html:82 return qs422016 //line search.html:82 } //line search.html:84 func StreamSearchButton(qw422016 *qt422016.Writer, search SearchForm) { //line search.html:84 qw422016.N().S(`
`) //line search.html:94 } //line search.html:94 func WriteSearchButton(qq422016 qtio422016.Writer, search SearchForm) { //line search.html:94 qw422016 := qt422016.AcquireWriter(qq422016) //line search.html:94 StreamSearchButton(qw422016, search) //line search.html:94 qt422016.ReleaseWriter(qw422016) //line search.html:94 } //line search.html:94 func SearchButton(search SearchForm) string { //line search.html:94 qb422016 := qt422016.AcquireByteBuffer() //line search.html:94 WriteSearchButton(qb422016, search) //line search.html:94 qs422016 := string(qb422016.B) //line search.html:94 qt422016.ReleaseByteBuffer(qb422016) //line search.html:94 return qs422016 //line search.html:94 }