2019-09-30 10:23:59 +00:00
< div class = "colstack_item colstack_head" >
2021-04-07 14:23:11 +00:00
< div class = "rowitem" > < h1 > {{.Name}}{{lang "panel.forum_head_suffix"}}< / h1 > < / div >
2019-09-30 10:23:59 +00:00
< / div >
2020-07-14 21:50:29 +00:00
< div id = "panel_forum" class = "colstack_item the_form" >
2021-01-02 21:46:24 +00:00
< form action = "/panel/forums/edit/submit/{{.ID}}?s={{.CurrentUser.Session}}" method = "post" >
2019-09-30 10:23:59 +00:00
< div class = "formrow" >
2021-04-07 14:23:11 +00:00
< div class = "formitem formlabel" > < a > {{lang "panel.forum_name"}}< / a > < / div >
< div class = "formitem" > < input name = "forum_name" type = "text" value = "{{.Name}}" placeholder = "{{lang " panel . forum_name_placeholder " } } " > < / div >
2017-06-05 11:57:27 +00:00
< / div >
2019-09-30 10:23:59 +00:00
< div class = "formrow" >
2021-04-07 14:23:11 +00:00
< div class = "formitem formlabel" > < a > {{lang "panel.forum_desc"}}< / a > < / div >
< div class = "formitem" > < input name = "forum_desc" type = "text" value = "{{.Desc}}" placeholder = "{{lang " panel . forum_desc_placeholder " } } " > < / div >
2019-09-30 10:23:59 +00:00
< / div >
< div class = "formrow" >
2021-04-07 14:23:11 +00:00
< div class = "formitem formlabel" > < a > {{lang "panel.forum_active"}}< / a > < / div >
2019-09-30 10:23:59 +00:00
< div class = "formitem" > < select name = "forum_active" >
2019-11-08 10:08:37 +00:00
< option { { if . Active } } selected { { end } } value = 1 > {{lang "option_yes"}}< / option >
< option { { if not . Active } } selected { { end } } value = 0 > {{lang "option_no"}}< / option >
2019-09-30 10:23:59 +00:00
< / select > < / div >
2017-06-05 11:57:27 +00:00
< / div >
2019-09-30 10:23:59 +00:00
< div class = "formrow" >
2021-04-07 14:23:11 +00:00
< div class = "formitem formlabel" > < a > {{lang "panel.forum_preset"}}< / a > < / div >
2019-09-30 10:23:59 +00:00
< div class = "formitem" >
< select name = "forum_preset" >
2021-04-07 14:23:11 +00:00
< option { { if eq . Preset " all " } } selected { { end } } value = "all" > {{lang "panel.preset_everyone"}}< / option >
< option { { if eq . Preset " announce " } } selected { { end } } value = "announce" > {{lang "panel.preset_announcements"}}< / option >
< option { { if eq . Preset " members " } } selected { { end } } value = "members" > {{lang "panel.preset_member_only"}}< / option >
< option { { if eq . Preset " staff " } } selected { { end } } value = "staff" > {{lang "panel.preset_staff_only"}}< / option >
< option { { if eq . Preset " admins " } } selected { { end } } value = "admins" > {{lang "panel.preset_admin_only"}}< / option >
< option { { if eq . Preset " archive " } } selected { { end } } value = "archive" > {{lang "panel.preset_archive"}}< / option >
< option { { if eq . Preset " custom " } } selected { { end } } value = "custom" > {{lang "panel.preset_custom"}}< / option >
2019-09-30 10:23:59 +00:00
< / select >
2019-04-29 13:21:53 +00:00
< / div >
2017-06-05 11:57:27 +00:00
< / div >
2019-09-30 10:23:59 +00:00
< div class = "formrow" >
2021-04-07 14:23:11 +00:00
< div class = "formitem" > < button name = "panel-button" class = "formbutton form_middle_button" > {{lang "panel.forum_update_button"}}< / button > < / div >
2019-09-30 10:23:59 +00:00
< / div >
< / form >
< / div >
< div class = "colstack_item colstack_head" >
< div class = "rowitem" >
2021-04-07 14:23:11 +00:00
< h1 > {{lang "panel.forum_permissions_head"}}< / h1 >
2019-09-30 10:23:59 +00:00
< / div >
< / div >
2020-07-14 21:50:29 +00:00
< div id = "forum_quick_perms" class = "colstack_item rowlist formlist the_form" >
2019-09-30 10:23:59 +00:00
{{range .Groups}}
< div class = "formrow" >
< div class = "formitem editable_parent" >
< a > {{.Group.Name}}< / a >
2020-07-14 21:50:29 +00:00
< input name = "gid" value = "{{.Group.ID}}" type = "hidden" class = "editable_block" data-field = "gid" data-type = "hidden" data-value = "{{.Group.ID}}" >
2021-04-07 14:23:11 +00:00
< span class = "edit_fields hide_on_edit rowsmall" > {{lang "panel.forum_edit_button"}}< / span >
2019-09-30 10:23:59 +00:00
< div class = "panel_floater" >
2021-04-07 14:23:11 +00:00
< span data-field = "perm_preset" data-type = "list" data-value = "{{.Preset}}" class = "editable_block perm_preset perm_preset_{{.Preset}}" > < / span >
< a class = "panel_right_button has_inner_button show_on_edit" href = "/panel/forums/edit/perms/submit/{{$.ID}}" > < button class = 'panel_tag submit_edit' type = 'submit' > {{lang "panel.forum_short_update_button"}}< / button > < / a >
< a class = "panel_right_button has_inner_button show_on_edit" href = "/panel/forums/edit/perms/{{$.ID}}-{{.Group.ID}}" > < button class = 'panel_tag' type = 'submit' > {{lang "panel.forum_full_edit_button"}}< / button > < / a >
2017-06-05 11:57:27 +00:00
< / div >
< / div >
2019-09-30 10:23:59 +00:00
< / div >
{{end}}
2021-04-07 14:23:11 +00:00
< / div >
{{if .Actions}}
< div class = "colstack_item colstack_head" >
< div class = "rowitem" > < h1 > {{lang "panel.forum_actions_head"}}< / h1 > < / div >
< / div >
< div id = "panel_forum_actions" class = "colstack_item rowlist" >
{{range .Actions}}
< div class = "rowitem panel_compactrow editable_parent" >
< a class = "panel_upshift" > {{.ActionName}}{{if .RunDaysAfterTopicCreation}} - {{.RunDaysAfterTopicCreation}} days after topic creation{{end}}{{if .RunDaysAfterTopicLastReply}} - {{.RunDaysAfterTopicLastReply}} days after topic last reply{{end}}< / a >
< span class = "panel_floater" >
< a href = "/panel/forums/action/delete/submit/{{.ID}}?s={{$.CurrentUser.Session}}&ret={{$.ID}}" class = "panel_tag panel_right_button delete_button" > < / a >
< / span >
< / div >
{{end}}
< / div >
{{end}}
< div class = "colstack_item colstack_head" >
< div class = "rowitem" >
< h1 > {{lang "panel.forum_actions_create_head"}}< / h1 >
< / div >
< / div >
< div id = "panel_forum_action_create" class = "colstack_item the_form" >
< form action = "/panel/forums/action/create/submit/{{.ID}}?s={{.CurrentUser.Session}}" method = "post" >
<!-- <div class="formrow">
< div class = "formitem formlabel" > < a > {{lang "panel.forum_action_run_on_topic_creation"}}< / a > < / div >
< div class = "formitem" > < select name = "action_run_on_topic_creation" >
< option value = 1 > {{lang "option_yes"}}< / option >
< option selected value = 0 > {{lang "option_no"}}< / option >
< / select > < / div >
< / div > -->
< div class = "formrow" >
< div class = "formitem formlabel" > < a > {{lang "panel.forum_action_run_days_after_topic_creation"}}< / a > < / div >
< div class = "formitem" >
< input name = "action_run_days_after_topic_creation" value = "0" type = "number" >
< / div >
< / div >
< div class = "formrow" >
< div class = "formitem formlabel" > < a > {{lang "panel.forum_action_run_days_after_topic_last_reply"}}< / a > < / div >
< div class = "formitem" >
< input name = "action_run_days_after_topic_last_reply" value = "0" type = "number" >
< / div >
< / div >
< div class = "formrow" >
< div class = "formitem formlabel" > < a > {{lang "panel.forum_action_action"}}< / a > < / div >
< div class = "formitem" >
< select name = "action_action" >
< option value = "delete" selected > {{lang "panel.forum_action_action_delete"}}< / option >
< option value = "lock" > {{lang "panel.forum_action_action_lock"}}< / option >
< option value = "unlock" > {{lang "panel.forum_action_action_unlock"}}< / option >
< option value = "move" > {{lang "panel.forum_action_action_move"}}< / option >
< / select >
< / div >
< / div >
< div class = "formrow" >
< div class = "formitem formlabel" > < a > {{lang "panel.forum_action_extra"}}< / a > < / div >
< div class = "formitem" >
< input name = "action_extra" type = "text" >
< / div >
< / div >
< div class = "formrow" >
< div class = "formitem" > < button name = "panel-button" class = "formbutton form_middle_button" > {{lang "panel.forum_action_create_button"}}< / button > < / div >
< / div >
< / form >
2019-09-30 10:23:59 +00:00
< / div >