2016-12-04 10:44:28 +00:00
{{template "header.html" . }}
2016-12-24 13:14:40 +00:00
{{template "panel-menu.html" . }}
2017-02-04 15:49:24 +00:00
< script > v a r f o r m _ v a r s = {
'forum-active': ['Hide','Show'],
'forum-preset': ['all','announce','members','staff','admins','archive','custom']};
< / script >
2016-12-09 13:46:29 +00:00
< div class = "colblock_right" >
2017-01-07 06:31:04 +00:00
< div class = "rowitem rowhead" > < a > Forums< / a > < / div >
2016-12-09 13:46:29 +00:00
< / div >
2016-12-04 10:44:28 +00:00
< div class = "colblock_right" >
{{range .ItemList}}
2017-01-26 13:37:50 +00:00
< div class = "rowitem editable_parent" style = "font-weight: normal;{{if eq .ID 1}}border-bottom-style:solid;{{end}}" >
2017-01-31 05:13:38 +00:00
< a data-field = "forum-name" data-type = "text" class = "editable_block" style = "font-size: 20px;position:relative;top: -2px;text-transform: none;{{if not .Active}}color:#707070;{{end}}" > {{.Name}}< / a >
2017-01-26 13:37:50 +00:00
< span style = "float: right;" >
2017-02-04 15:49:24 +00:00
< span data-field = "forum-active" data-type = "list" class = "username editable_block hide_on_zero" title = "Hidden" style = "color: black;{{if .Active}}display:none;" data-value = "1" { { else } } " data-value = "0" { { end } } > 🕵️< / span >
{{if .PresetEmoji}}< span data-field = "forum-preset" data-type = "list" data-value = "{{.Preset}}" class = "username editable_block" title = "{{.PresetLang}}" > {{.PresetEmoji}}< / span >
{{else if .PresetLang}}< span data-field = "forum-preset" data-type = "list" data-value = "{{.Preset}}" class = "username editable_block" > {{.PresetLang}}< / span > {{else}}< span data-field = "forum-preset" data-type = "list" data-value = "{{.Preset}}" class = "username editable_block" style = "display:none;" > {{.PresetLang}}< / span > {{end}}
2017-01-31 05:13:38 +00:00
{{if gt .ID 0}}< a class = "username edit_fields hide_on_edit" > Edit< / a >
< a href = "/panel/forums/edit/submit/{{.ID}}" > < button class = 'username submit_edit show_on_edit' type = 'submit' > Update< / button > < / a > {{end}}
{{if gt .ID 1}}< a href = "/panel/forums/delete/{{.ID}}?session={{$.CurrentUser.Session}}" class = "username" > Delete< / a > {{end}}
2017-01-26 13:37:50 +00:00
< / span >
2016-12-06 10:26:48 +00:00
< / div >
2016-12-04 10:44:28 +00:00
{{end}}
< / div > < br / >
< div class = "colblock_right" >
2017-01-07 06:31:04 +00:00
< div class = "rowitem rowhead" > < a > Add Forum< / a > < / div >
2016-12-04 10:44:28 +00:00
< / div >
< div class = "colblock_right" >
2016-12-06 10:26:48 +00:00
< form action = "/panel/forums/create/?session={{.CurrentUser.Session}}" method = "post" >
2016-12-04 10:44:28 +00:00
< div class = "formrow" >
< div class = "formitem" > < a > Forum Name< / a > < / div >
< div class = "formitem" > < input name = "forum-name" type = "text" / > < / div >
< / div >
2017-01-26 13:37:50 +00:00
< div class = "formrow" >
< div class = "formitem" > < a > Hidden?< / a > < / div >
< div class = "formitem" > < select name = "forum-active" >
< option value = "1" > Yes< / option >
< option value = "0" > No< / option >
< / select > < / div >
< / div >
2017-02-04 06:19:55 +00:00
< div class = "formrow" >
2017-01-31 05:13:38 +00:00
< div class = "formitem" > < a > Preset< / a > < / div >
< div class = "formitem" > < select name = "forum-preset" >
< option selected value = "all" > Everyone< / option >
< option value = "announce" > Announcements< / option >
< option value = "members" > Member Only< / option >
< option value = "staff" > Staff Only< / option >
< option value = "admins" > Admin Only< / option >
< option value = "archive" > Archive< / option >
2017-02-04 06:19:55 +00:00
< option value = "custom" > Custom< / option >
2017-01-31 05:13:38 +00:00
< / select > < / div >
2017-02-04 06:19:55 +00:00
< / div >
2016-12-04 10:44:28 +00:00
< div class = "formrow" >
2017-01-07 06:31:04 +00:00
< div class = "formitem" > < button name = "panel-button" class = "formbutton" > Add Forum< / button > < / div >
2016-12-04 10:44:28 +00:00
< / div >
< / form >
< / div >
{{template "footer.html" . }}