generated from t/malachite
add: images in messages for supporters
This commit is contained in:
parent
1c1eb3be5d
commit
dfa1abe2d9
7 changed files with 116 additions and 4 deletions
|
@ -30,10 +30,38 @@
|
|||
("style" "flex: 1 0 auto")
|
||||
("id" "messages_stream")
|
||||
(div ("ui_ident" "data_marker")))
|
||||
(div ("id" "read_receipt_zone") ("class" "card") ("style" "min-height: 32.5px; position: sticky; bottom: 0")))
|
||||
(div ("id" "read_receipt_zone") ("class" "card") ("style" "min-height: 32.5px; position: sticky; bottom: 0"))
|
||||
(div ("id" "images_zone") ("class" "card hidden flex gap_2 flex_wrap")))
|
||||
(form
|
||||
("class" "card flex flex_row items_center gap_2")
|
||||
("onsubmit" "create_message(event)")
|
||||
(text "{% if user.permissions|has_supporter -%}")
|
||||
(div
|
||||
("class" "dropdown")
|
||||
(button
|
||||
("onclick" "open_dropdown(event)")
|
||||
("exclude" "dropdown")
|
||||
("class" "button icon_only big_icon")
|
||||
("type" "button")
|
||||
(text "{{ icon \"plus\" }}"))
|
||||
(div
|
||||
("class" "inner left")
|
||||
(button
|
||||
("class" "button")
|
||||
("onclick" "document.getElementById('images').click()")
|
||||
("type" "button")
|
||||
(text "attach image"))))
|
||||
(text "{%- endif %}")
|
||||
|
||||
(input
|
||||
("type" "file")
|
||||
("class" "hidden")
|
||||
("accept" "image/*")
|
||||
("id" "images")
|
||||
("name" "images")
|
||||
("multiple" "")
|
||||
("onchange" "display_pending_images(event)"))
|
||||
|
||||
(input
|
||||
("type" "text")
|
||||
("class" "w_full")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue