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
|
|
|
|
2013-05-21 19:12:27 +02:00
|
|
|
<form id="message_edit_form" class="form-horizontal">
|
2013-05-15 00:22:16 +02:00
|
|
|
{{#if is_stream}}
|
2016-08-26 21:36:10 +02:00
|
|
|
<div class="control-group no-margin">
|
2017-01-31 22:01:49 +01:00
|
|
|
<label class="edit-control-label" for="message_edit_topic">{{t "Topic" }}</label>
|
2013-05-21 19:12:27 +02:00
|
|
|
<div class="controls edit-controls">
|
2016-12-28 02:59:59 +01:00
|
|
|
<input type="text" placeholder="{{topic}}" value="{{topic}}" class="message_edit_topic" id="message_edit_topic" />
|
2013-09-13 18:12:29 +02:00
|
|
|
<select class='message_edit_topic_propagate' style='display:none;'>
|
2016-05-12 13:53:41 +02:00
|
|
|
<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>
|
2013-09-13 18:12:29 +02:00
|
|
|
</select>
|
2013-05-21 19:12:27 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-05-15 00:22:16 +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-03-26 11:02:37 +02:00
|
|
|
<button class="btn pull-right copy_message" data-toggle="tooltip" title="{{t "Copy and close" }}" data-clipboard-target="#message_edit_content">
|
2017-03-26 12:15:50 +02:00
|
|
|
<img src="/static/images/clippy.svg" id="clipboard_image" />
|
2017-01-17 20:51:30 +01:00
|
|
|
</button>
|
2017-01-31 22:01:49 +01:00
|
|
|
<label class="edit-control-label" for="message_edit_topic">{{t "Content" }}</label>
|
2013-05-21 19:12:27 +02:00
|
|
|
<textarea class="message_edit_content" id="message_edit_content">{{content}}</textarea>
|
|
|
|
</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}}
|
2016-05-12 13:53:41 +02:00
|
|
|
<button type="button" class="message_edit_save btn btn-primary btn-small">{{t "Save" }}</button>
|
|
|
|
<button type="button" class="message_edit_cancel btn btn-default btn-small">{{t "Cancel" }}</button>
|
2016-10-22 02:38:56 +02:00
|
|
|
{{else}}
|
|
|
|
<button type="button" class="message_edit_close btn btn-primary btn-small">{{t "Close" }}</button>
|
|
|
|
{{/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>
|
2016-12-14 05:38:59 +01:00
|
|
|
<div class="message-edit-timer-control-group">
|
2017-02-15 08:22:37 +01:00
|
|
|
<a class="message-control-button icon-vector-font" title="{{t 'Formatting' }}" data-overlay-trigger="markdown-help" ></a>
|
2016-12-14 05:38:59 +01:00
|
|
|
</div>
|
2016-07-08 02:25:55 +02:00
|
|
|
<span><i id="message_edit_tooltip" class="message_edit_tooltip icon-vector-question-sign" data-toggle="tooltip"
|
2016-12-15 10:11:05 +01: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>
|