zulip/static/templates/message_edit_form.handlebars

46 lines
2.5 KiB
Handlebars
Raw Normal View History

{{! Client-side Mustache template for rendering the message edit form. }}
<form id="message_edit_form" class="form-horizontal">
{{#if is_stream}}
<div class="control-group no-margin">
<label class="edit-control-label" for="message_edit_topic">{{t "Topic" }}</label>
<div class="controls edit-controls">
<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>
</div>
</div>
{{/if}}
<div class="control-group no-margin">
<div class="controls edit-controls">
<label class="edit-control-label" for="message_edit_topic">{{t "Content" }}</label>
<textarea class="message_edit_content" id="message_edit_content">{{content}}</textarea>
</div>
</div>
<div class="control-group action-buttons">
<div class="controls edit-controls">
{{#if is_editable}}
<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>
{{else}}
<button type="button" class="message_edit_close btn btn-primary btn-small">{{t "Close" }}</button>
{{/if}}
{{#if has_been_editable}}
<div class="message-edit-timer-control-group">
<span class="message_edit_countdown_timer"></span>
<div class="message-edit-timer-control-group">
<a class="message-control-button icon-vector-font" title="{{t 'Formatting' }}" data-overlay-trigger="markdown-help" ></a>
</div>
<span><i id="message_edit_tooltip" class="message_edit_tooltip icon-vector-question-sign" data-toggle="tooltip"
title="{{#tr this}}This organization is configured to restrict editing of message content to __minutes_to_edit__ minutes after it is sent.{{/tr}}"></i>
</span>
</div>
{{/if}}
</div>
</div>
<div class="alert alert-error edit_error hide"></div>
</form>