2021-06-29 10:34:36 +00:00
|
|
|
// 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
|
2021-09-06 17:46:34 +00:00
|
|
|
import "fmt"
|
2021-06-29 19:26:36 +00:00
|
|
|
|
|
|
|
//line views/admin.qtpl:2
|
2021-09-06 17:46:34 +00:00
|
|
|
import "github.com/bouncepaw/mycorrhiza/cfg"
|
2021-06-29 10:34:36 +00:00
|
|
|
|
2021-07-02 12:02:42 +00:00
|
|
|
//line views/admin.qtpl:3
|
2021-09-06 17:46:34 +00:00
|
|
|
import "github.com/bouncepaw/mycorrhiza/l18n"
|
|
|
|
|
|
|
|
//line views/admin.qtpl:4
|
|
|
|
import "github.com/bouncepaw/mycorrhiza/user"
|
2021-07-02 12:02:42 +00:00
|
|
|
|
|
|
|
//line views/admin.qtpl:5
|
2021-09-06 17:46:34 +00:00
|
|
|
import "github.com/bouncepaw/mycorrhiza/util"
|
|
|
|
|
|
|
|
//line views/admin.qtpl:7
|
2021-06-29 10:34:36 +00:00
|
|
|
import (
|
|
|
|
qtio422016 "io"
|
|
|
|
|
|
|
|
qt422016 "github.com/valyala/quicktemplate"
|
|
|
|
)
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/admin.qtpl:7
|
2021-06-29 10:34:36 +00:00
|
|
|
var (
|
|
|
|
_ = qtio422016.Copy
|
|
|
|
_ = qt422016.AcquireByteBuffer
|
|
|
|
)
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/admin.qtpl:7
|
2022-03-26 15:26:14 +00:00
|
|
|
func StreamAdminUsersPanel(qw422016 *qt422016.Writer, userList []*user.User, lc *l18n.Localizer) {
|
2021-09-06 17:46:34 +00:00
|
|
|
//line views/admin.qtpl:7
|
2021-06-29 10:34:36 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<div class="layout">
|
2021-06-29 18:43:04 +00:00
|
|
|
<main class="main-width">
|
2021-09-06 17:46:34 +00:00
|
|
|
<h1>`)
|
|
|
|
//line views/admin.qtpl:10
|
|
|
|
qw422016.E().S(lc.Get("admin.users_title"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:10
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`</h1>
|
2021-06-29 10:34:36 +00:00
|
|
|
|
2021-06-29 15:10:48 +00:00
|
|
|
<form action="/admin/reindex-users" method="post">
|
2021-12-30 20:39:31 +00:00
|
|
|
<a class="btn" href="/admin/new-user">`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:13
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(lc.Get("admin.users_create"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:13
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`</a>
|
|
|
|
<button class="btn" type="submit">`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:14
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(lc.Get("admin.users_reindex"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:14
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`</button>
|
2021-06-29 10:34:36 +00:00
|
|
|
</form>
|
|
|
|
|
2021-07-02 12:02:42 +00:00
|
|
|
<br>
|
2021-06-29 10:34:36 +00:00
|
|
|
|
2021-06-30 12:56:38 +00:00
|
|
|
<table class="users-table">
|
2021-06-29 10:34:36 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2021-09-06 17:46:34 +00:00
|
|
|
<th>`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:22
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(lc.Get("admin.users_name"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:22
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`</th>
|
|
|
|
<th>`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:23
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(lc.Get("admin.users_group"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:23
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`</th>
|
|
|
|
<th>`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:24
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(lc.Get("admin.users_registered"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:24
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`</th>
|
|
|
|
<th aria-label="`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:25
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(lc.Get("admin.users_actions"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:25
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`"></th>
|
2021-06-29 10:34:36 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:29
|
2021-06-29 10:34:36 +00:00
|
|
|
for _, u := range userList {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:29
|
2021-06-29 10:34:36 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<tr>
|
2021-06-30 12:56:38 +00:00
|
|
|
<td class="table-cell--fill">
|
2021-06-29 19:26:36 +00:00
|
|
|
<a href="/hypha/`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:32
|
2021-06-30 12:56:38 +00:00
|
|
|
qw422016.N().U(cfg.UserHypha)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:32
|
2021-06-29 19:26:36 +00:00
|
|
|
qw422016.N().S(`/`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:32
|
2021-06-30 12:56:38 +00:00
|
|
|
qw422016.N().U(u.Name)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:32
|
2021-06-29 19:26:36 +00:00
|
|
|
qw422016.N().S(`">`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:32
|
2021-06-29 19:26:36 +00:00
|
|
|
qw422016.E().S(u.Name)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:32
|
2021-06-29 19:26:36 +00:00
|
|
|
qw422016.N().S(`</a>
|
|
|
|
</td>
|
2021-06-29 10:34:36 +00:00
|
|
|
<td>`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:34
|
2021-06-29 15:10:48 +00:00
|
|
|
qw422016.E().S(u.Group)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:34
|
2021-06-29 10:34:36 +00:00
|
|
|
qw422016.N().S(`</td>
|
2021-07-01 08:29:19 +00:00
|
|
|
<td>
|
|
|
|
`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:36
|
2021-09-06 17:46:34 +00:00
|
|
|
if u.RegisteredAt.IsZero() {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:36
|
2021-07-01 08:29:19 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:37
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(lc.Get("admin.users_notime"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:37
|
2021-07-01 08:29:19 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:38
|
2021-09-06 17:46:34 +00:00
|
|
|
} else {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:38
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:39
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(u.RegisteredAt.UTC().Format("2006-01-02 15:04"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:39
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:40
|
2021-09-06 17:46:34 +00:00
|
|
|
}
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:40
|
2021-07-01 08:29:19 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
</td>
|
2021-06-29 15:10:48 +00:00
|
|
|
<td>
|
|
|
|
<a href="/admin/users/`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:43
|
2021-06-29 15:10:48 +00:00
|
|
|
qw422016.N().U(u.Name)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:43
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`/edit">`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:43
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(lc.Get("admin.users_edit"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:43
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`</a>
|
2021-06-29 15:10:48 +00:00
|
|
|
</td>
|
2021-06-29 10:34:36 +00:00
|
|
|
</tr>
|
|
|
|
`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:46
|
2021-06-29 10:34:36 +00:00
|
|
|
}
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:46
|
2021-06-29 10:34:36 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:51
|
2021-06-29 10:34:36 +00:00
|
|
|
}
|
|
|
|
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:51
|
2022-03-20 21:24:40 +00:00
|
|
|
func WriteAdminUsersPanel(qq422016 qtio422016.Writer, userList []*user.User, lc *l18n.Localizer) {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:51
|
2021-06-29 10:34:36 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:51
|
2022-03-20 21:24:40 +00:00
|
|
|
StreamAdminUsersPanel(qw422016, userList, lc)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:51
|
2021-06-29 10:34:36 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:51
|
2021-06-29 10:34:36 +00:00
|
|
|
}
|
|
|
|
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:51
|
2022-03-20 21:24:40 +00:00
|
|
|
func AdminUsersPanel(userList []*user.User, lc *l18n.Localizer) string {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:51
|
2021-06-29 10:34:36 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:51
|
2022-03-20 21:24:40 +00:00
|
|
|
WriteAdminUsersPanel(qb422016, userList, lc)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:51
|
2021-06-29 15:10:48 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:51
|
2021-06-29 15:10:48 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:51
|
2021-06-29 15:10:48 +00:00
|
|
|
return qs422016
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:51
|
2021-06-29 15:10:48 +00:00
|
|
|
}
|
|
|
|
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:53
|
2022-03-20 21:24:40 +00:00
|
|
|
func StreamAdminUserNew(qw422016 *qt422016.Writer, f util.FormData, lc *l18n.Localizer) {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:53
|
2021-07-02 12:02:42 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<div class="layout">
|
2021-07-02 14:04:00 +00:00
|
|
|
<main class="main-width form-wrap">
|
2021-09-06 17:46:34 +00:00
|
|
|
<h1>`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:56
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(lc.Get("admin.newuser_title"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:56
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`</h1>
|
2021-07-02 12:02:42 +00:00
|
|
|
|
|
|
|
`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:58
|
2021-07-02 14:04:00 +00:00
|
|
|
if f.HasError() {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:58
|
2021-07-02 12:02:42 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<div class="notice notice--error">
|
2021-09-06 17:46:34 +00:00
|
|
|
<strong>`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:60
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(lc.Get("ui.error"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:60
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`:</strong>
|
2021-07-02 12:02:42 +00:00
|
|
|
`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:61
|
2021-07-02 14:04:00 +00:00
|
|
|
qw422016.E().S(f.Error())
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:61
|
2021-07-02 12:02:42 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
</div>
|
|
|
|
`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:63
|
2021-07-02 12:02:42 +00:00
|
|
|
}
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:63
|
2021-07-02 12:02:42 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
|
2021-07-02 14:04:00 +00:00
|
|
|
<form class="form--double" action="" method="post">
|
2021-07-02 12:02:42 +00:00
|
|
|
<div class="form-field">
|
2021-09-06 17:46:34 +00:00
|
|
|
<label for="name">`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:67
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(lc.Get("admin.users_name"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:67
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`:</label>
|
2021-07-02 12:02:42 +00:00
|
|
|
<input type="text" name="name" id="name" value="`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:68
|
2021-07-02 14:04:00 +00:00
|
|
|
qw422016.E().S(f.Get("name"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:68
|
2021-07-02 12:04:02 +00:00
|
|
|
qw422016.N().S(`" autofocus>
|
2021-07-02 12:02:42 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-field">
|
2021-09-06 17:46:34 +00:00
|
|
|
<label for="password">`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:72
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(lc.Get("admin.users_password"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:72
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`:</label>
|
2021-07-02 12:02:42 +00:00
|
|
|
<input type="password" name="password" id="password" value="`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:73
|
2021-07-02 14:04:00 +00:00
|
|
|
qw422016.E().S(f.Get("password"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:73
|
2021-07-02 12:02:42 +00:00
|
|
|
qw422016.N().S(`">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-field">
|
2021-09-06 17:46:34 +00:00
|
|
|
<label for="group">`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:77
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(lc.Get("admin.users_group"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:77
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`:</label>
|
2021-07-02 12:02:42 +00:00
|
|
|
<select id="group" name="group">
|
|
|
|
<option`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:79
|
2021-07-02 14:04:00 +00:00
|
|
|
if f.Get("group") == "anon" {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:79
|
2021-07-02 12:02:42 +00:00
|
|
|
qw422016.N().S(` selected`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:79
|
2021-07-02 12:02:42 +00:00
|
|
|
}
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:79
|
2021-07-02 12:02:42 +00:00
|
|
|
qw422016.N().S(`>anon</option>
|
|
|
|
<option`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:80
|
2021-07-02 14:04:00 +00:00
|
|
|
if f.Get("group") == "editor" {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:80
|
2021-07-02 12:02:42 +00:00
|
|
|
qw422016.N().S(` selected`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:80
|
2021-07-02 12:02:42 +00:00
|
|
|
}
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:80
|
2021-07-02 12:02:42 +00:00
|
|
|
qw422016.N().S(`>editor</option>
|
|
|
|
<option`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:81
|
2021-07-02 14:04:00 +00:00
|
|
|
if f.Get("group") == "trusted" {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:81
|
2021-07-02 12:02:42 +00:00
|
|
|
qw422016.N().S(` selected`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:81
|
2021-07-02 12:02:42 +00:00
|
|
|
}
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:81
|
2021-07-02 12:02:42 +00:00
|
|
|
qw422016.N().S(`>trusted</option>
|
|
|
|
<option`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:82
|
2021-07-02 14:04:00 +00:00
|
|
|
if f.Get("group") == "moderator" {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:82
|
2021-07-02 12:02:42 +00:00
|
|
|
qw422016.N().S(` selected`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:82
|
2021-07-02 12:02:42 +00:00
|
|
|
}
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:82
|
2021-07-02 12:02:42 +00:00
|
|
|
qw422016.N().S(`>moderator</option>
|
|
|
|
<option`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:83
|
2021-07-02 14:04:00 +00:00
|
|
|
if f.Get("group") == "admin" {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:83
|
2021-07-02 12:02:42 +00:00
|
|
|
qw422016.N().S(` selected`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:83
|
2021-07-02 12:02:42 +00:00
|
|
|
}
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:83
|
2021-07-02 12:02:42 +00:00
|
|
|
qw422016.N().S(`>admin</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-field">
|
|
|
|
<div class="form-field__input">
|
2021-09-06 17:46:34 +00:00
|
|
|
<button class="btn" type="submit">`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:89
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(lc.Get("admin.newuser_create"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:89
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`</button>
|
|
|
|
<a class="btn btn_weak" href="/admin/users/">`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:90
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(lc.Get("ui.cancel"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:90
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`</a>
|
2021-07-02 12:02:42 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:96
|
2021-07-02 12:02:42 +00:00
|
|
|
}
|
|
|
|
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:96
|
2022-03-20 21:24:40 +00:00
|
|
|
func WriteAdminUserNew(qq422016 qtio422016.Writer, f util.FormData, lc *l18n.Localizer) {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:96
|
2021-07-02 12:02:42 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:96
|
2022-03-20 21:24:40 +00:00
|
|
|
StreamAdminUserNew(qw422016, f, lc)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:96
|
2021-07-02 12:02:42 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:96
|
2021-07-02 12:02:42 +00:00
|
|
|
}
|
|
|
|
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:96
|
2022-03-20 21:24:40 +00:00
|
|
|
func AdminUserNew(f util.FormData, lc *l18n.Localizer) string {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:96
|
2021-07-02 12:02:42 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:96
|
2022-03-20 21:24:40 +00:00
|
|
|
WriteAdminUserNew(qb422016, f, lc)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:96
|
2021-07-02 12:02:42 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:96
|
2021-07-02 12:02:42 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:96
|
2021-07-02 12:02:42 +00:00
|
|
|
return qs422016
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:96
|
2021-07-02 12:02:42 +00:00
|
|
|
}
|
|
|
|
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:98
|
2022-03-20 21:24:40 +00:00
|
|
|
func StreamAdminUserEdit(qw422016 *qt422016.Writer, u *user.User, f util.FormData, lc *l18n.Localizer) {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:98
|
2021-06-29 15:10:48 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<div class="layout">
|
2021-07-02 14:04:00 +00:00
|
|
|
<main class="main-width form-wrap">
|
|
|
|
<h1>
|
|
|
|
<a href="/admin/users/">←</a>
|
|
|
|
`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:103
|
2021-06-29 15:10:48 +00:00
|
|
|
qw422016.E().S(u.Name)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:103
|
2021-07-02 14:04:00 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
</h1>
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
<h2>`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:106
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(lc.Get("admin.user_group_heading"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:106
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`</h2>
|
2021-07-02 14:04:00 +00:00
|
|
|
|
|
|
|
`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:108
|
2021-07-02 14:04:00 +00:00
|
|
|
if f.HasError() {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:108
|
2021-07-02 14:04:00 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<div class="notice notice--error">
|
2021-09-06 17:46:34 +00:00
|
|
|
<strong>`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:110
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(lc.Get("ui.error"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:110
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`:</strong>
|
2021-07-02 14:04:00 +00:00
|
|
|
`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:111
|
2021-07-02 14:04:00 +00:00
|
|
|
qw422016.E().S(f.Error())
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:111
|
2021-07-02 14:04:00 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
</div>
|
|
|
|
`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:113
|
2021-07-02 14:04:00 +00:00
|
|
|
}
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:113
|
2021-07-02 14:04:00 +00:00
|
|
|
qw422016.N().S(`
|
2021-06-29 15:10:48 +00:00
|
|
|
|
|
|
|
<form action="" method="post">
|
2021-06-30 12:56:38 +00:00
|
|
|
<div class="form-field">
|
2021-09-06 17:46:34 +00:00
|
|
|
<select id="group" name="group" aria-label="`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:117
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(lc.Get("admin.users_group"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:117
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`">
|
2021-06-30 12:56:38 +00:00
|
|
|
<option`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:118
|
2021-07-14 21:00:35 +00:00
|
|
|
if f.Get("group") == "anon" {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:118
|
2021-07-14 21:00:35 +00:00
|
|
|
qw422016.N().S(` selected`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:118
|
2021-07-14 21:00:35 +00:00
|
|
|
}
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:118
|
2021-07-14 21:00:35 +00:00
|
|
|
qw422016.N().S(`>anon</option>
|
|
|
|
<option`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:119
|
2021-07-14 21:00:35 +00:00
|
|
|
if f.Get("group") == "editor" {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:119
|
2021-07-14 21:00:35 +00:00
|
|
|
qw422016.N().S(` selected`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:119
|
2021-07-14 21:00:35 +00:00
|
|
|
}
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:119
|
2021-07-14 21:00:35 +00:00
|
|
|
qw422016.N().S(`>editor</option>
|
|
|
|
<option`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:120
|
2021-07-14 21:00:35 +00:00
|
|
|
if f.Get("group") == "trusted" {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:120
|
2021-07-14 21:00:35 +00:00
|
|
|
qw422016.N().S(` selected`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:120
|
2021-07-14 21:00:35 +00:00
|
|
|
}
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:120
|
2021-07-14 21:00:35 +00:00
|
|
|
qw422016.N().S(`>trusted</option>
|
|
|
|
<option`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:121
|
2021-07-14 21:00:35 +00:00
|
|
|
if f.Get("group") == "moderator" {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:121
|
2021-07-14 21:00:35 +00:00
|
|
|
qw422016.N().S(` selected`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:121
|
2021-07-14 21:00:35 +00:00
|
|
|
}
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:121
|
2021-07-14 21:00:35 +00:00
|
|
|
qw422016.N().S(`>moderator</option>
|
2021-06-30 12:56:38 +00:00
|
|
|
<option`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:122
|
2021-07-14 21:00:35 +00:00
|
|
|
if f.Get("group") == "admin" {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:122
|
2021-07-14 21:00:35 +00:00
|
|
|
qw422016.N().S(` selected`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:122
|
2021-07-14 21:00:35 +00:00
|
|
|
}
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:122
|
2021-07-14 21:00:35 +00:00
|
|
|
qw422016.N().S(`>admin</option>
|
2021-06-30 12:56:38 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
2021-06-29 15:10:48 +00:00
|
|
|
|
2021-07-02 14:04:00 +00:00
|
|
|
<div class="form-field">
|
2021-09-06 17:46:34 +00:00
|
|
|
<button class="btn" type="submit">`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:127
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(lc.Get("admin.user_update"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:127
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`</button>
|
2021-07-02 14:04:00 +00:00
|
|
|
</div>
|
2021-06-29 15:10:48 +00:00
|
|
|
</form>
|
2021-07-02 14:04:00 +00:00
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
<h2>`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:131
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(lc.Get("admin.user_delete_heading"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:131
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`</h2>
|
|
|
|
<p>`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:132
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(lc.Get("admin.user_delete_tip"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:132
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`</p>
|
|
|
|
<a class="btn btn_destructive" href="/admin/users/`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:133
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().U(u.Name)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:133
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`/delete">`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:133
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(lc.Get("admin.user_delete"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:133
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`</a>
|
2021-06-29 15:10:48 +00:00
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:136
|
2021-06-29 15:10:48 +00:00
|
|
|
}
|
|
|
|
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:136
|
2022-03-20 21:24:40 +00:00
|
|
|
func WriteAdminUserEdit(qq422016 qtio422016.Writer, u *user.User, f util.FormData, lc *l18n.Localizer) {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:136
|
2021-06-29 15:10:48 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:136
|
2022-03-20 21:24:40 +00:00
|
|
|
StreamAdminUserEdit(qw422016, u, f, lc)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:136
|
2021-06-29 15:10:48 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:136
|
2021-06-29 15:10:48 +00:00
|
|
|
}
|
|
|
|
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:136
|
2022-03-20 21:24:40 +00:00
|
|
|
func AdminUserEdit(u *user.User, f util.FormData, lc *l18n.Localizer) string {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:136
|
2021-06-29 15:10:48 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:136
|
2022-03-20 21:24:40 +00:00
|
|
|
WriteAdminUserEdit(qb422016, u, f, lc)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:136
|
2021-06-29 10:34:36 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:136
|
2021-06-29 10:34:36 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:136
|
2021-06-29 10:34:36 +00:00
|
|
|
return qs422016
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:136
|
2021-07-02 14:04:00 +00:00
|
|
|
}
|
|
|
|
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:138
|
2022-03-20 21:24:40 +00:00
|
|
|
func StreamAdminUserDelete(qw422016 *qt422016.Writer, u *user.User, f util.FormData, lc *l18n.Localizer) {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:138
|
2021-07-02 14:04:00 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<div class="layout">
|
|
|
|
<main class="main-width form-wrap">
|
2021-09-06 17:46:34 +00:00
|
|
|
<h1>`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:141
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(lc.Get("admin.user_delete_heading"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:141
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`</h1>
|
2021-07-02 14:04:00 +00:00
|
|
|
|
|
|
|
`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:143
|
2021-07-02 14:04:00 +00:00
|
|
|
if f.HasError() {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:143
|
2021-07-02 14:04:00 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<div class="notice notice--error">
|
2021-09-06 17:46:34 +00:00
|
|
|
<strong>`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:145
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(lc.Get("ui.error"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:145
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`:</strong>
|
|
|
|
`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:146
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(f.Error())
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:146
|
2021-07-02 14:04:00 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
</div>
|
|
|
|
`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:148
|
2021-07-02 14:04:00 +00:00
|
|
|
}
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:148
|
2021-07-02 14:04:00 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
<p>`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:150
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(lc.Get("admin.user_delete_warn", &l18n.Replacements{"name": fmt.Sprintf("<strong>%s</strong>", u.Name)}))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:150
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`</p>
|
2021-07-02 14:04:00 +00:00
|
|
|
|
|
|
|
<form action="" method="post">
|
2021-09-06 17:46:34 +00:00
|
|
|
<button class="btn btn_destructive" type="submit">`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:153
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(lc.Get("admin.user_delete"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:153
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`</button>
|
2021-07-02 14:04:00 +00:00
|
|
|
<a class="btn btn_weak" href="/admin/users/`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:154
|
2021-07-02 14:04:00 +00:00
|
|
|
qw422016.N().U(u.Name)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:154
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`/edit">`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:154
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.E().S(lc.Get("ui.cancel"))
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:154
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`</a>
|
2021-07-02 14:04:00 +00:00
|
|
|
</form>
|
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
`)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:158
|
2021-07-02 14:04:00 +00:00
|
|
|
}
|
|
|
|
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:158
|
2022-03-20 21:24:40 +00:00
|
|
|
func WriteAdminUserDelete(qq422016 qtio422016.Writer, u *user.User, f util.FormData, lc *l18n.Localizer) {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:158
|
2021-07-02 14:04:00 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:158
|
2022-03-20 21:24:40 +00:00
|
|
|
StreamAdminUserDelete(qw422016, u, f, lc)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:158
|
2021-07-02 14:04:00 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:158
|
2021-07-02 14:04:00 +00:00
|
|
|
}
|
|
|
|
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:158
|
2022-03-20 21:24:40 +00:00
|
|
|
func AdminUserDelete(u *user.User, f util.FormData, lc *l18n.Localizer) string {
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:158
|
2021-07-02 14:04:00 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:158
|
2022-03-20 21:24:40 +00:00
|
|
|
WriteAdminUserDelete(qb422016, u, f, lc)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:158
|
2021-07-02 14:04:00 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:158
|
2021-07-02 14:04:00 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:158
|
2021-07-02 14:04:00 +00:00
|
|
|
return qs422016
|
2022-03-26 15:26:14 +00:00
|
|
|
//line views/admin.qtpl:158
|
2021-06-29 10:34:36 +00:00
|
|
|
}
|