2026-06-05 16:18:11 +00:00
{% if user %}
< form class = "comment-form" method = "POST" action = "/comments/create" >
< input type = "hidden" name = "target_uid" value = "{{ _comment_target_uid }}" >
< input type = "hidden" name = "target_type" value = "{{ _comment_target_type }}" >
2026-06-12 03:37:12 +00:00
{% set _user = user %}{% set _size = 32 %}{% set _size_class = "sm" %}{% include "_avatar_link.html" %}
2026-06-05 16:18:11 +00:00
< textarea name = "content" placeholder = "Your opinion goes here..." required maxlength = "1000" class = "emoji-picker-target" data-mention ></ textarea >
< div class = "comment-form-actions" >
2026-06-08 20:51:09 +00:00
< dp-upload multiple
max-size = "{{ max_upload_size_mb() }}"
max-files = "{{ max_attachments_per_resource() }}"
allowed-types = "{{ allowed_file_types() }}" ></ dp-upload >
2026-06-15 22:44:12 +00:00
< button type = "submit" class = "comment-form-submit" >< span class = "icon" > 📤 </ span >< span class = "label" > Post</ span ></ button >
2026-06-05 16:18:11 +00:00
</ div >
</ form >
2026-06-08 15:38:33 +00:00
{% else %}
< form class = "comment-form comment-form-guest" onsubmit = "return false" >
< textarea name = "content" placeholder = "Your opinion goes here..." disabled aria-disabled = "true" ></ textarea >
< div class = "comment-form-actions" >
2026-06-15 22:44:12 +00:00
< button type = "button" class = "comment-form-submit" disabled aria-disabled = "true" title = "Log in to participate" >< span class = "icon" > 📤 </ span >< span class = "label" > Post</ span ></ button >
2026-06-08 15:38:33 +00:00
{{ login_hint(user) }}
</ div >
</ form >
2026-06-05 16:18:11 +00:00
{% endif %}