mirror of https://github.com/zulip/zulip.git
42 lines
2.1 KiB
Handlebars
42 lines
2.1 KiB
Handlebars
{{! Client-side Handlebars template for rendering the message edit form. }}
|
|
|
|
<form id="edit_form_{{message_id}}" class="new-style">
|
|
<div class="edit_form_banners"></div>
|
|
<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>
|
|
</div>
|
|
</div>
|
|
<div class="action-buttons">
|
|
<div class="message_edit_spinner"></div>
|
|
<div class="controls edit-controls">
|
|
{{#if is_editable}}
|
|
<div class="btn-wrapper inline-block message_edit_save_container"
|
|
data-tippy-content="{{t 'You can no longer save changes to this message.' }}">
|
|
<button type="button" class="button small rounded sea-green message_edit_save">
|
|
<img class="loader" alt="" src="" />
|
|
<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>
|
|
<div class="message-edit-feature-group">
|
|
{{> compose_control_buttons }}
|
|
</div>
|
|
{{else}}
|
|
<button type="button" class="button small rounded message_edit_close">{{t "Close" }}</button>
|
|
{{/if}}
|
|
{{#if is_editable}}
|
|
<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>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
</form>
|