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">
2020-05-12 11:02:13 +02:00
<div class="message_edit_header">
<div class="stream_header_colorblock" {{ # unless show_edit_stream }} style="display:none" {{ / unless }} ></div>
<select class="select_edit_stream" id="select_stream_id_ {{ message_id }} " {{ # unless show_edit_stream }} style="display:none" {{ / unless }} >
<option value=" {{ stream_id }} " selected='selected'># {{ stream_name }} </option>
{{ # each available_streams }}
<option value=" {{ this .stream_id }} "># {{ this .name }} </option>
{{ / each }}
</select>
<i class="fa fa-angle-right" aria-hidden="true" {{ # unless show_edit_stream }} style="display:none" {{ / unless }} ></i>
<input type="text" placeholder=" {{ topic }} " value=" {{ topic }} " class="message_edit_topic" id="message_edit_topic" />
2020-06-03 16:44:57 +02:00
<div class="message_edit_breadcrumb_messages" style='display:none;'>
<label class="checkbox">
<input class="send_notification_to_new_thread" name="send_notification_to_new_thread" type="checkbox" {{ # if notify_new_thread }} checked="checked" {{ / if }} >
<span></span>
</label>
2020-06-29 06:52:31 +02:00
<label for="send_notification_to_new_thread"> {{ t "Send notification to new topic" }} </label>
2020-07-06 10:36:31 +02:00
<div class="break-row"></div> <!-- break -->
2020-06-03 16:44:57 +02:00
<label class="checkbox">
<input class="send_notification_to_old_thread" name="send_notification_to_old_thread" type="checkbox" {{ # if notify_old_thread }} checked="checked" {{ / if }} >
<span></span>
</label>
2020-06-29 06:52:31 +02:00
<label for="send_notification_to_old_thread"> {{ t "Send notification to old topic" }} </label>
2020-06-03 16:44:57 +02:00
</div>
2020-05-12 11:02:13 +02:00
<select class='message_edit_topic_propagate' style='display:none;'>
<option selected="selected" value="change_later"> {{ t "Change later messages to this topic" }} </option>
<option value="change_one"> {{ t "Change only this message topic" }} </option>
<option value="change_all"> {{ t "Change previous and following messages to this topic" }} </option>
</select>
</div>
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">
2020-08-28 04:51:31 +02:00
{{ > copy_message_button message_id = this .message_id }}
2020-02-28 23:59:07 +01:00
<textarea class="message_edit_content" 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">
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 }}
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 />
2019-05-04 20:24:36 +02:00
{{ # if file_upload_enabled }}
2021-04-14 20:25:35 +02:00
<a role="button" tabindex=0 class="compose_control_button fa fa-paperclip notdisplayed" aria-label=" {{ t "Attach files" }} " id="attach_files_ {{ message_id }} " title=" {{ t "Attach files" }} "></a>
2019-05-04 20:24:36 +02:00
{{ / if }}
2021-04-14 20:25:35 +02:00
<a role="button" tabindex=0 id="markdown_preview_ {{ message_id }} " class="compose_control_button fa fa-eye" aria-label=" {{ t 'Preview' }} " title=" {{ t 'Preview' }} "></a>
<a role="button" tabindex=0 id="undo_markdown_preview_ {{ message_id }} " class="compose_control_button fa fa-edit" aria-label=" {{ t 'Write' }} " style="display:none;" title=" {{ t 'Write' }} "></a>
2020-04-08 00:23:15 +02:00
{{ # if show_video_chat_button }}
2021-04-14 20:25:35 +02:00
<a role="button" tabindex=0 class="compose_control_button fa fa-video-camera video_link" aria-label=" {{ t "Add video call" }} " data-message-id=" {{ message_id }} " title=" {{ t "Add video call" }} "></a>
2020-04-08 00:23:15 +02:00
{{ / if }}
2021-04-14 20:25:35 +02:00
<a role="button" tabindex=0 class="compose_control_button fa fa-smile-o" aria-label=" {{ t 'Add emoji' }} " id="emoji_map" data-message-id=" {{ message_id }} " title=" {{ t 'Add emoji' }} "></a>
2021-03-31 07:48:11 +02:00
{{ # if giphy_api_available }}
2021-04-14 20:25:35 +02:00
<a role="button" class="compose_control_button" aria-label=" {{ t 'Add GIF' }} " id="compose_box_giphy_grid" title=" {{ t 'Add GIF' }} ">
2021-03-31 07:48:11 +02:00
<img class="compose_giphy_logo" tabindex=0 src="/static/images/GIPHY_logo.png" data-message-id=" {{ message_id }} ">
</a>
{{ / if }}
2020-10-02 07:42:00 +02:00
<a role="button" tabindex=0 class="message-control-link" data-overlay-trigger="message-formatting" > {{ t 'Help' }} </a>
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 }}
{{ # 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>
2021-04-14 03:04:02 +02:00
<span><i id="message_edit_tooltip" class="tippy-zulip-tooltip message_edit_tooltip fa fa-question-circle" aria-hidden="true" data-tippy-content=" {{ # tr }} 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>