# HG changeset patch # User Goffi # Date 1751643202 -7200 # Node ID f7a4345818726b402cf2e14e4961520d34026398 # Parent a5588ea3bcd68fb2c5df1d3a1d1d05794604f333 chat: Add forward, rich editing and extra recipients: - There is a new "forward" menu in message. For now, a simple prompt ask for recipient JID. - A new "extra" menu is available next to input field. Inside there are 2 items for now: add extra recipient, and toggle rich edit mode. - Extra recipient option add a field to add an email-like "to", "cc" or "bcc" recipients. - Rich edit let use rich styling such as bold, italic, underline, etc. rel 461 diff -r a5588ea3bcd6 -r f7a434581872 sat_templates/templates/bulma/chat/chat.html --- a/sat_templates/templates/bulma/chat/chat.html Fri Jul 04 12:41:07 2025 +0200 +++ b/sat_templates/templates/bulma/chat/chat.html Fri Jul 04 17:33:22 2025 +0200 @@ -6,7 +6,7 @@ {% block title %}{{ target_jid }} - {{ super() }}{% endblock %} {% block body %} {{ icon_defs( - "check", "comment-dots", "ellipsis", "lock", "paperclip", "pencil", "quote-left", "reply", "regular face-smile", "regular trash-can", "share-nodes", "unlock" + "check", "comment-dots", "ellipsis", "ellipsis-vertical", "regular envelope", "lock", "paperclip", "pencil", "pen-to-square", "quote-left", "reply", "regular face-smile", "regular share-from-square", "regular trash-can", "share-nodes", "unlock" ) }} diff -r a5588ea3bcd6 -r f7a434581872 sat_templates/templates/bulma/chat/extra_menu.html --- a/sat_templates/templates/bulma/chat/extra_menu.html Fri Jul 04 12:41:07 2025 +0200 +++ b/sat_templates/templates/bulma/chat/extra_menu.html Fri Jul 04 17:33:22 2025 +0200 @@ -19,5 +19,10 @@ {% endif %} +
  • + + {{ icon('regular share-from-square', cls='icon is-small') }} {% trans %}Forward{% endtrans %} + +
  • diff -r a5588ea3bcd6 -r f7a434581872 sat_templates/templates/bulma/chat/extra_recipient_field.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sat_templates/templates/bulma/chat/extra_recipient_field.html Fri Jul 04 17:33:22 2025 +0200 @@ -0,0 +1,26 @@ +
    +
    +
    + {% set selected = selected|default('to') %} + +
    +
    +
    + +
    +
    + +
    +
    diff -r a5588ea3bcd6 -r f7a434581872 sat_templates/templates/bulma/chat/input_extra_menu.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sat_templates/templates/bulma/chat/input_extra_menu.html Fri Jul 04 17:33:22 2025 +0200 @@ -0,0 +1,18 @@ + diff -r a5588ea3bcd6 -r f7a434581872 sat_templates/templates/bulma/chat/message_input.html --- a/sat_templates/templates/bulma/chat/message_input.html Fri Jul 04 12:41:07 2025 +0200 +++ b/sat_templates/templates/bulma/chat/message_input.html Fri Jul 04 17:33:22 2025 +0200 @@ -20,8 +20,42 @@ + + -
    + +
    +
    + +
    +