2023-02-09 22:43:25 +01:00
{{! Client-side Handlebars template for rendering the message edit form. }}
2013-05-15 00:22:16 +02:00
2022-08-07 06:50:48 +02:00
<form id="edit_form_ {{ message_id }} " class="new-style">
2023-03-28 07:54:27 +02:00
<div class="edit_form_banners"></div>
2024-05-18 10:30:24 +02:00
<div class="edit-controls edit-content-container {{ # if is_editable }} surround-formatting-buttons-row {{ / if }} ">
2022-08-07 06:57:14 +02:00
{{ > copy_message_button message_id = this .message_id }}
<textarea class="message_edit_content" maxlength=" {{ max_message_length }} "> {{ content }} </textarea>
<div class="scrolling_list preview_message_area" id="preview_message_area_ {{ message_id }} " style="display:none;">
<div class="markdown_preview_spinner"></div>
<div class="preview_content rendered_markdown"></div>
2013-05-21 19:12:27 +02:00
</div>
</div>
2022-08-07 06:57:14 +02:00
<div class="action-buttons">
2013-05-21 19:12:27 +02:00
<div class="controls edit-controls">
2016-10-22 02:38:56 +02:00
{{ # if is_editable }}
2023-11-14 22:07:19 +01:00
<div class="message-edit-feature-group">
{{ > compose_control_buttons }}
</div>
2023-11-15 00:23:08 +01:00
{{ / if }}
2023-11-14 22:07:19 +01:00
<div class="message-edit-buttons-and-timer">
2023-11-15 00:23:08 +01:00
{{ # if is_editable }}
<div class="message_edit_save_container"
data-tippy-content=" {{ t 'You can no longer save changes to this message.' }} ">
<button type="button" class="message-actions-button message_edit_save">
<img class="loader" alt="" src="" />
<span> {{ t "Save" }} </span>
</button>
</div>
<button type="button" class="message-actions-button message_edit_cancel"><span> {{ t "Cancel" }} </span></button>
<div class="message-edit-timer">
<span class="message_edit_countdown_timer
tippy-zulip-tooltip" data-tippy-content=" {{ t 'This organization is configured to restrict editing of message content to {minutes_to_edit} minutes after it is sent.' }} "></span>
</div>
{{ else }}
<button type="button" class="message-actions-button message_edit_close"><span> {{ t "Close" }} </span></button>
{{ / if }}
2016-07-08 02:25:55 +02:00
</div>
2013-05-21 19:12:27 +02:00
</div>
</div>
2013-05-15 00:22:16 +02:00
</form>