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-01-09 07:43:39 +01:00
|
|
|
<div class="banners"></div>
|
2022-08-07 06:57:14 +02:00
|
|
|
<div class="edit-controls">
|
|
|
|
{{> 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">
|
2020-08-21 07:34:21 +02:00
|
|
|
<div class="message_edit_spinner"></div>
|
2013-05-21 19:12:27 +02:00
|
|
|
<div class="controls edit-controls">
|
2016-10-22 02:38:56 +02:00
|
|
|
{{#if is_editable}}
|
2021-07-03 19:18:57 +02:00
|
|
|
<div class="btn-wrapper inline-block">
|
|
|
|
<button type="button" class="button small rounded sea-green message_edit_save">
|
2021-07-16 08:45:23 +02:00
|
|
|
<img class="loader" alt="" src="" />
|
2021-07-03 19:18:57 +02:00
|
|
|
<span>{{t "Save" }}</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="btn-wrapper inline-block">
|
|
|
|
<button type="button" class="button small rounded message_edit_cancel">{{t "Cancel" }}</button>
|
|
|
|
</div>
|
2022-10-01 13:50:44 +02:00
|
|
|
{{#if is_editable}}
|
2019-02-24 20:27:53 +01:00
|
|
|
<div class="message-edit-feature-group">
|
2021-04-20 23:39:08 +02:00
|
|
|
{{> compose_control_buttons }}
|
2019-02-24 20:27:53 +01:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2019-02-24 20:24:50 +01:00
|
|
|
{{else}}
|
2019-02-24 20:27:53 +01:00
|
|
|
<button type="button" class="button small rounded message_edit_close">{{t "Close" }}</button>
|
2019-02-24 20:24:50 +01:00
|
|
|
{{/if}}
|
2022-10-01 13:50:44 +02:00
|
|
|
{{#if is_editable}}
|
2022-08-07 06:57:14 +02:00
|
|
|
<div class="message-edit-timer">
|
2016-07-08 02:25:55 +02:00
|
|
|
<span class="message_edit_countdown_timer"></span>
|
2021-11-20 13:25:41 +01:00
|
|
|
<span>
|
|
|
|
<i id="message_edit_tooltip" class="tippy-zulip-tooltip message_edit_tooltip fa fa-question-circle" aria-hidden="true"
|
2023-03-15 23:51:27 +01:00
|
|
|
data-tippy-content="{{t 'This organization is configured to restrict editing of message content to {minutes_to_edit} minutes after it is sent.' }}">
|
2021-11-20 13:25:41 +01:00
|
|
|
</i>
|
2016-07-08 02:25:55 +02:00
|
|
|
</span>
|
|
|
|
</div>
|
2016-10-22 02:38:56 +02:00
|
|
|
{{/if}}
|
2013-05-21 19:12:27 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-08-16 23:45:13 +02:00
|
|
|
<div class="alert alert-error edit_error hide"></div>
|
2013-05-15 00:22:16 +02:00
|
|
|
</form>
|