// Code generated by qtc from "admin.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. //line views/admin.qtpl:1 package views //line views/admin.qtpl:1 import "fmt" //line views/admin.qtpl:2 import "github.com/bouncepaw/mycorrhiza/cfg" //line views/admin.qtpl:3 import "github.com/bouncepaw/mycorrhiza/l18n" //line views/admin.qtpl:4 import "github.com/bouncepaw/mycorrhiza/user" //line views/admin.qtpl:5 import "github.com/bouncepaw/mycorrhiza/util" //line views/admin.qtpl:7 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line views/admin.qtpl:7 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line views/admin.qtpl:7 func StreamAdminUsersPanel(qw422016 *qt422016.Writer, userList []*user.User, lc *l18n.Localizer) { //line views/admin.qtpl:7 qw422016.N().S(`

`) //line views/admin.qtpl:10 qw422016.E().S(lc.Get("admin.users_title")) //line views/admin.qtpl:10 qw422016.N().S(`

`) //line views/admin.qtpl:13 qw422016.E().S(lc.Get("admin.users_create")) //line views/admin.qtpl:13 qw422016.N().S(`

`) //line views/admin.qtpl:29 for _, u := range userList { //line views/admin.qtpl:29 qw422016.N().S(` `) //line views/admin.qtpl:46 } //line views/admin.qtpl:46 qw422016.N().S(`
`) //line views/admin.qtpl:22 qw422016.E().S(lc.Get("admin.users_name")) //line views/admin.qtpl:22 qw422016.N().S(` `) //line views/admin.qtpl:23 qw422016.E().S(lc.Get("admin.users_group")) //line views/admin.qtpl:23 qw422016.N().S(` `) //line views/admin.qtpl:24 qw422016.E().S(lc.Get("admin.users_registered")) //line views/admin.qtpl:24 qw422016.N().S(`
`) //line views/admin.qtpl:32 qw422016.E().S(u.Name) //line views/admin.qtpl:32 qw422016.N().S(` `) //line views/admin.qtpl:34 qw422016.E().S(u.Group) //line views/admin.qtpl:34 qw422016.N().S(` `) //line views/admin.qtpl:36 if u.RegisteredAt.IsZero() { //line views/admin.qtpl:36 qw422016.N().S(` `) //line views/admin.qtpl:37 qw422016.E().S(lc.Get("admin.users_notime")) //line views/admin.qtpl:37 qw422016.N().S(` `) //line views/admin.qtpl:38 } else { //line views/admin.qtpl:38 qw422016.N().S(` `) //line views/admin.qtpl:39 qw422016.E().S(u.RegisteredAt.UTC().Format("2006-01-02 15:04")) //line views/admin.qtpl:39 qw422016.N().S(` `) //line views/admin.qtpl:40 } //line views/admin.qtpl:40 qw422016.N().S(` `) //line views/admin.qtpl:43 qw422016.E().S(lc.Get("admin.users_edit")) //line views/admin.qtpl:43 qw422016.N().S(`
`) //line views/admin.qtpl:51 } //line views/admin.qtpl:51 func WriteAdminUsersPanel(qq422016 qtio422016.Writer, userList []*user.User, lc *l18n.Localizer) { //line views/admin.qtpl:51 qw422016 := qt422016.AcquireWriter(qq422016) //line views/admin.qtpl:51 StreamAdminUsersPanel(qw422016, userList, lc) //line views/admin.qtpl:51 qt422016.ReleaseWriter(qw422016) //line views/admin.qtpl:51 } //line views/admin.qtpl:51 func AdminUsersPanel(userList []*user.User, lc *l18n.Localizer) string { //line views/admin.qtpl:51 qb422016 := qt422016.AcquireByteBuffer() //line views/admin.qtpl:51 WriteAdminUsersPanel(qb422016, userList, lc) //line views/admin.qtpl:51 qs422016 := string(qb422016.B) //line views/admin.qtpl:51 qt422016.ReleaseByteBuffer(qb422016) //line views/admin.qtpl:51 return qs422016 //line views/admin.qtpl:51 } //line views/admin.qtpl:53 func StreamAdminUserNew(qw422016 *qt422016.Writer, f util.FormData, lc *l18n.Localizer) { //line views/admin.qtpl:53 qw422016.N().S(`

`) //line views/admin.qtpl:56 qw422016.E().S(lc.Get("admin.newuser_title")) //line views/admin.qtpl:56 qw422016.N().S(`

`) //line views/admin.qtpl:58 if f.HasError() { //line views/admin.qtpl:58 qw422016.N().S(`
`) //line views/admin.qtpl:60 qw422016.E().S(lc.Get("ui.error")) //line views/admin.qtpl:60 qw422016.N().S(`: `) //line views/admin.qtpl:61 qw422016.E().S(f.Error()) //line views/admin.qtpl:61 qw422016.N().S(`
`) //line views/admin.qtpl:63 } //line views/admin.qtpl:63 qw422016.N().S(`
`) //line views/admin.qtpl:90 qw422016.E().S(lc.Get("ui.cancel")) //line views/admin.qtpl:90 qw422016.N().S(`
`) //line views/admin.qtpl:96 } //line views/admin.qtpl:96 func WriteAdminUserNew(qq422016 qtio422016.Writer, f util.FormData, lc *l18n.Localizer) { //line views/admin.qtpl:96 qw422016 := qt422016.AcquireWriter(qq422016) //line views/admin.qtpl:96 StreamAdminUserNew(qw422016, f, lc) //line views/admin.qtpl:96 qt422016.ReleaseWriter(qw422016) //line views/admin.qtpl:96 } //line views/admin.qtpl:96 func AdminUserNew(f util.FormData, lc *l18n.Localizer) string { //line views/admin.qtpl:96 qb422016 := qt422016.AcquireByteBuffer() //line views/admin.qtpl:96 WriteAdminUserNew(qb422016, f, lc) //line views/admin.qtpl:96 qs422016 := string(qb422016.B) //line views/admin.qtpl:96 qt422016.ReleaseByteBuffer(qb422016) //line views/admin.qtpl:96 return qs422016 //line views/admin.qtpl:96 } //line views/admin.qtpl:98 func StreamAdminUserEdit(qw422016 *qt422016.Writer, u *user.User, f util.FormData, lc *l18n.Localizer) { //line views/admin.qtpl:98 qw422016.N().S(`

`) //line views/admin.qtpl:103 qw422016.E().S(u.Name) //line views/admin.qtpl:103 qw422016.N().S(`

`) //line views/admin.qtpl:106 qw422016.E().S(lc.Get("admin.user_group_heading")) //line views/admin.qtpl:106 qw422016.N().S(`

`) //line views/admin.qtpl:108 if f.HasError() { //line views/admin.qtpl:108 qw422016.N().S(`
`) //line views/admin.qtpl:110 qw422016.E().S(lc.Get("ui.error")) //line views/admin.qtpl:110 qw422016.N().S(`: `) //line views/admin.qtpl:111 qw422016.E().S(f.Error()) //line views/admin.qtpl:111 qw422016.N().S(`
`) //line views/admin.qtpl:113 } //line views/admin.qtpl:113 qw422016.N().S(`

`) //line views/admin.qtpl:131 qw422016.E().S(lc.Get("admin.user_delete_heading")) //line views/admin.qtpl:131 qw422016.N().S(`

`) //line views/admin.qtpl:132 qw422016.E().S(lc.Get("admin.user_delete_tip")) //line views/admin.qtpl:132 qw422016.N().S(`

`) //line views/admin.qtpl:133 qw422016.E().S(lc.Get("admin.user_delete")) //line views/admin.qtpl:133 qw422016.N().S(`
`) //line views/admin.qtpl:136 } //line views/admin.qtpl:136 func WriteAdminUserEdit(qq422016 qtio422016.Writer, u *user.User, f util.FormData, lc *l18n.Localizer) { //line views/admin.qtpl:136 qw422016 := qt422016.AcquireWriter(qq422016) //line views/admin.qtpl:136 StreamAdminUserEdit(qw422016, u, f, lc) //line views/admin.qtpl:136 qt422016.ReleaseWriter(qw422016) //line views/admin.qtpl:136 } //line views/admin.qtpl:136 func AdminUserEdit(u *user.User, f util.FormData, lc *l18n.Localizer) string { //line views/admin.qtpl:136 qb422016 := qt422016.AcquireByteBuffer() //line views/admin.qtpl:136 WriteAdminUserEdit(qb422016, u, f, lc) //line views/admin.qtpl:136 qs422016 := string(qb422016.B) //line views/admin.qtpl:136 qt422016.ReleaseByteBuffer(qb422016) //line views/admin.qtpl:136 return qs422016 //line views/admin.qtpl:136 } //line views/admin.qtpl:138 func StreamAdminUserDelete(qw422016 *qt422016.Writer, u *user.User, f util.FormData, lc *l18n.Localizer) { //line views/admin.qtpl:138 qw422016.N().S(`

`) //line views/admin.qtpl:141 qw422016.E().S(lc.Get("admin.user_delete_heading")) //line views/admin.qtpl:141 qw422016.N().S(`

`) //line views/admin.qtpl:143 if f.HasError() { //line views/admin.qtpl:143 qw422016.N().S(`
`) //line views/admin.qtpl:145 qw422016.E().S(lc.Get("ui.error")) //line views/admin.qtpl:145 qw422016.N().S(`: `) //line views/admin.qtpl:146 qw422016.E().S(f.Error()) //line views/admin.qtpl:146 qw422016.N().S(`
`) //line views/admin.qtpl:148 } //line views/admin.qtpl:148 qw422016.N().S(`

`) //line views/admin.qtpl:150 qw422016.N().S(lc.Get("admin.user_delete_warn", &l18n.Replacements{"name": fmt.Sprintf("%s", u.Name)})) //line views/admin.qtpl:150 qw422016.N().S(`

`) //line views/admin.qtpl:154 qw422016.E().S(lc.Get("ui.cancel")) //line views/admin.qtpl:154 qw422016.N().S(`
`) //line views/admin.qtpl:158 } //line views/admin.qtpl:158 func WriteAdminUserDelete(qq422016 qtio422016.Writer, u *user.User, f util.FormData, lc *l18n.Localizer) { //line views/admin.qtpl:158 qw422016 := qt422016.AcquireWriter(qq422016) //line views/admin.qtpl:158 StreamAdminUserDelete(qw422016, u, f, lc) //line views/admin.qtpl:158 qt422016.ReleaseWriter(qw422016) //line views/admin.qtpl:158 } //line views/admin.qtpl:158 func AdminUserDelete(u *user.User, f util.FormData, lc *l18n.Localizer) string { //line views/admin.qtpl:158 qb422016 := qt422016.AcquireByteBuffer() //line views/admin.qtpl:158 WriteAdminUserDelete(qb422016, u, f, lc) //line views/admin.qtpl:158 qs422016 := string(qb422016.B) //line views/admin.qtpl:158 qt422016.ReleaseByteBuffer(qb422016) //line views/admin.qtpl:158 return qs422016 //line views/admin.qtpl:158 }