add: temporary bans
This commit is contained in:
parent
9650c0177e
commit
155fe34c6e
11 changed files with 132 additions and 19 deletions
|
@ -298,7 +298,7 @@
|
|||
(div
|
||||
("class" "flex flex_col gap_1")
|
||||
(label
|
||||
("for" "title")
|
||||
("for" "reason")
|
||||
(str (text "mod_panel:label.ban_reason")))
|
||||
(textarea
|
||||
("type" "text")
|
||||
|
@ -309,6 +309,37 @@
|
|||
(text "{{ profile.ban_reason|remove_script_tags|safe }}")))
|
||||
(button
|
||||
(str (text "general:action.save")))))
|
||||
(div
|
||||
("class" "card_nest w_full")
|
||||
(div
|
||||
("class" "card small flex items_center justify_between gap_2")
|
||||
(div
|
||||
("class" "flex items_center gap_2")
|
||||
(icon (text "scale"))
|
||||
(span
|
||||
(str (text "mod_panel:label.ban_expiration")))))
|
||||
(form
|
||||
("class" "card flex flex_col gap_2")
|
||||
("onsubmit" "event.preventDefault(); profile_request(false, 'ban_expire', { expire: new Date(event.target.expire.value).getTime() || 0 })")
|
||||
(div
|
||||
("class" "flex flex_col gap_1")
|
||||
(label
|
||||
("for" "expire")
|
||||
(str (text "mod_panel:label.ban_expiration")))
|
||||
(input
|
||||
("type" "datetime-local")
|
||||
("name" "expire")
|
||||
("id" "expire")
|
||||
("value" "{{ profile.ban_expire }}")))
|
||||
(div
|
||||
("class" "flex gap_2")
|
||||
(button
|
||||
(str (text "general:action.save")))
|
||||
(button
|
||||
("type" "button")
|
||||
("class" "lowered red")
|
||||
("onclick" "profile_request(false, 'ban_expire', { expire: 0 })")
|
||||
(str (text "notifs:action.clear"))))))
|
||||
(div
|
||||
("class" "card_nest w_full")
|
||||
(div
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue