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
2021-04-21 16:20:16 +02:00
<form id="edit_form_ {{ message_id }} " 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">
2021-06-03 19:22:23 +02:00
<div class="stream_header_colorblock" {{ # unless is_stream_editable }} style="display:none" {{ / unless }} ></div>
2021-05-12 21:41:14 +02:00
<div class="select_stream_dropdown" {{ # unless is_stream_editable }} style="display:none" {{ / unless }} >
{{ > settings / dropdown_list_widget
widget_name=select_move_stream_widget_name
list_placeholder=(t 'Filter streams')}}
</div>
2021-06-03 19:22:23 +02:00
<i class="fa fa-angle-right" aria-hidden="true" {{ # unless is_stream_editable }} style="display:none" {{ / unless }} ></i>
2021-07-07 22:56:58 +02:00
<input type="text" placeholder=" {{ topic }} " value=" {{ topic }} " class="message_edit_topic" id="message_edit_topic" autocomplete="off" />
2020-06-03 16:44:57 +02:00
<div class="message_edit_breadcrumb_messages" style='display:none;'>
2021-07-21 15:41:25 +02:00
{{ > settings / settings_checkbox
setting_name="send_notification_to_new_thread"
prefix="id_"
is_checked=notify_new_thread
label=(t 'Send notification to new topic')}}
{{ > settings / settings_checkbox
setting_name="send_notification_to_old_thread"
prefix="id_"
is_checked=notify_old_thread
label=(t 'Send notification to old topic')}}
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 }}
2021-04-20 19:50:01 +02:00
<textarea class="message_edit_content" maxlength="10000"> {{ 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;">
2021-04-20 19:50:01 +02:00
<div class="markdown_preview_spinner"></div>
<div 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 }}
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>
2019-02-24 20:27:53 +01:00
{{ # if is_content_editable }}
<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 }}
{{ # 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-01-31 18:23:48 +01:00
<span><i id="message_edit_tooltip" class="tippy-zulip-tooltip message_edit_tooltip fa fa-question-circle" aria-hidden="true"
{{ # if is_widget_message }} data-tippy-content=" {{ # tr }} Widgets cannot be edited. {{ / tr }} " {{ else }} data-tippy-content=" {{ # tr }} This organization is configured to restrict editing of message content to { minutes_to_edit} minutes after it is sent. {{ / tr }} " {{ / if }} ></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>