2013-06-11 16:31:02 +02:00
|
|
|
{{! Client-side Mustache template for rendering the message edit form. }}
|
2013-05-15 00:22:16 +02:00
|
|
|
|
2018-01-24 21:19:48 +01:00
|
|
|
<form id="message_edit_form" class="form-horizontal new-style">
|
2017-11-28 22:36:58 +01:00
|
|
|
<div class="alert" id="message-edit-send-status-{{message_id}}">
|
|
|
|
<span class="send-status-close">×</span>
|
|
|
|
<span class="error-msg"></span>
|
|
|
|
</div>
|
2017-04-15 04:05:55 +02:00
|
|
|
{{#if is_stream}}
|
2016-08-26 21:36:10 +02:00
|
|
|
<div class="control-group no-margin">
|
2013-05-21 19:12:27 +02:00
|
|
|
<div class="controls edit-controls">
|
2017-04-15 04:05:55 +02:00
|
|
|
<input type="text" placeholder="{{topic}}" value="{{topic}}" class="message_edit_topic" id="message_edit_topic" />
|
|
|
|
<select class='message_edit_topic_propagate' style='display:none;'>
|
|
|
|
<option selected="selected" value="change_one"> {{t "Change only this message topic" }}</option>
|
|
|
|
<option value="change_later"> {{t "Change later messages to this topic" }}</option>
|
|
|
|
<option value="change_all"> {{t "Change previous and following messages to this topic" }}</option>
|
|
|
|
</select>
|
2013-05-21 19:12:27 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-04-15 04:05:55 +02:00
|
|
|
{{/if}}
|
2016-12-14 05:38:59 +01:00
|
|
|
<div class="control-group no-margin">
|
2013-05-21 19:12:27 +02:00
|
|
|
<div class="controls edit-controls">
|
2017-04-26 05:14:33 +02:00
|
|
|
<button class="btn pull-right copy_message" data-toggle="tooltip" title="{{t "Copy and close" }}" data-clipboard-target="#message_edit_content_{{message_id}}">
|
2017-04-06 15:57:50 +02:00
|
|
|
<svg height="20" width="18" viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg" id="clipboard_image">
|
2017-04-15 04:05:55 +02:00
|
|
|
<path fill="#777" d="M128 768h256v64H128v-64z m320-384H128v64h320v-64z m128 192V448L384 640l192 192V704h320V576H576z m-288-64H128v64h160v-64zM128 704h160v-64H128v64z m576 64h64v128c-1 18-7 33-19 45s-27 18-45 19H64c-35 0-64-29-64-64V192c0-35 29-64 64-64h192C256 57 313 0 384 0s128 57 128 128h192c35 0 64 29 64 64v320h-64V320H64v576h640V768zM128 256h512c0-35-29-64-64-64h-64c-35 0-64-29-64-64s-29-64-64-64-64 29-64 64-29 64-64 64h-64c-35 0-64 29-64 64z" />
|
2017-04-06 15:57:50 +02:00
|
|
|
</svg>
|
2017-01-17 20:51:30 +01:00
|
|
|
</button>
|
2019-03-22 17:03:19 +01:00
|
|
|
<textarea class="message_edit_content rendered_markdown" maxlength="10000" id="message_edit_content_{{message_id}}">{{content}}</textarea>
|
2019-02-05 15:27:17 +01:00
|
|
|
<div class="scrolling_list preview_message_area" id="preview_message_area_{{message_id}}" style="display:none;">
|
|
|
|
<div id="markdown_preview_spinner_{{message_id}}"></div>
|
2019-03-22 17:03:19 +01:00
|
|
|
<div id="preview_content_{{message_id}}" class="preview_content rendered_markdown"></div>
|
2019-02-05 15:27:17 +01:00
|
|
|
</div>
|
2013-05-21 19:12:27 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-01-31 22:01:49 +01:00
|
|
|
<div class="control-group 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}}
|
2019-02-24 20:27:53 +01:00
|
|
|
<button type="button" class="button small rounded sea-green message_edit_save">{{t "Save" }}</button>
|
|
|
|
<button type="button" class="button small rounded message_edit_cancel">{{t "Cancel" }}</button>
|
|
|
|
{{#if is_content_editable}}
|
|
|
|
<div class="message-edit-feature-group">
|
|
|
|
<input type="file" id="message_edit_file_input_{{message_id}}" class="notvisible pull-left" multiple />
|
|
|
|
<a class="message-control-button fa fa-smile-o" aria-hidden="true" id="emoji_map" href="#" data-message-id="{{message_id}}" title="{{t 'Add emoji' }}"></a>
|
|
|
|
<a class="message-control-button fa fa-font" aria-hidden="true" title="{{t 'Formatting' }}" data-overlay-trigger="message-formatting" ></a>
|
2019-05-04 20:24:36 +02:00
|
|
|
{{#if file_upload_enabled}}
|
2019-02-24 20:27:53 +01:00
|
|
|
<a class="message-control-button fa fa-paperclip notdisplayed" aria-hidden="true" id="attach_files_{{message_id}}" href="#" title="{{t "Attach files" }}"></a>
|
2019-05-04 20:24:36 +02:00
|
|
|
{{/if}}
|
2019-02-24 20:27:53 +01:00
|
|
|
<a class="message-control-button fa fa-video-camera video_link" aria-hidden="true" href="#" data-message-id="{{message_id}}" title="{{t "Add video call" }}"></a>
|
|
|
|
<a id="undo_markdown_preview_{{message_id}}" class="message-control-button fa fa-edit" aria-hidden="true" style="display:none;" title="{{t 'Write' }}"></a>
|
|
|
|
<a id="markdown_preview_{{message_id}}" class="message-control-button fa fa-eye" aria-hidden="true" title="{{t 'Preview' }}"></a>
|
|
|
|
</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}}
|
|
|
|
{{#if has_been_editable}}
|
2016-07-08 02:25:55 +02:00
|
|
|
<div class="message-edit-timer-control-group">
|
|
|
|
<span class="message_edit_countdown_timer"></span>
|
2017-06-08 07:09:55 +02:00
|
|
|
<span><i id="message_edit_tooltip" class="message_edit_tooltip fa fa-question-circle" aria-hidden="true" data-toggle="tooltip"
|
2017-04-15 04:05:55 +02:00
|
|
|
title="{{#tr this}}This organization is configured to restrict editing of message content to __minutes_to_edit__ minutes after it is sent.{{/tr}}"></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>
|