2023-04-14 18:58:10 +02:00
{{ # unless ( or from_message_actions_popover only_topic_edit ) }}
2021-07-18 11:18:03 +02:00
<p> {{ # tr }} Move all messages in <strong> { topic_name}</strong> {{ / tr }} to:</p>
2022-10-03 09:41:13 +02:00
{{ / unless }}
2021-07-18 11:18:03 +02:00
<form class="new-style" id="move_topic_form">
2023-04-14 18:58:10 +02:00
{{ # if only_topic_edit }}
<p> {{ t "Rename topic to:" }} </p>
{{ else }}
2024-04-18 15:20:36 +02:00
<p> {{ t "Select a channel below or change topic name." }} </p>
2023-04-14 18:58:10 +02:00
{{ / if }}
2021-07-18 11:18:03 +02:00
<div class="topic_stream_edit_header">
2023-04-14 18:58:10 +02:00
{{ # unless only_topic_edit }}
2024-02-04 18:55:46 +01:00
{{ > dropdown_widget_wrapper widget_name = "move_topic_to_stream" }}
2021-07-18 11:18:03 +02:00
<i class="fa fa-angle-right" aria-hidden="true"></i>
2023-04-14 18:58:10 +02:00
{{ / unless }}
2023-04-18 17:24:55 +02:00
<input name="new_topic_name" type="text" class="move_messages_edit_topic modal_text_input" autocomplete="off" value=" {{ topic_name }} " {{ # if disable_topic_input }} disabled {{ / if }} />
<input name="old_topic_name" type="hidden" class="move_messages_edit_topic" value=" {{ topic_name }} " />
2021-07-18 11:18:03 +02:00
<input name="current_stream_id" type="hidden" value=" {{ current_stream_id }} " />
2022-10-03 09:41:13 +02:00
{{ # if from_message_actions_popover }}
2023-02-16 11:20:07 +01:00
<select class="message_edit_topic_propagate modal_select bootstrap-focus-style">
2023-10-22 23:36:26 +02:00
<option value="change_one" {{ # if ( eq message_placement "last" ) }} selected {{ / if }} > {{ t "Move only this message" }} </option>
<option value="change_later" {{ # if ( eq message_placement "intermediate" ) }} selected {{ / if }} > {{ t "Move this and all following messages in this topic" }} </option>
<option value="change_all" {{ # if ( eq message_placement "first" ) }} selected {{ / if }} > {{ t "Move all messages in this topic" }} </option>
2022-10-03 09:41:13 +02:00
</select>
{{ / if }}
2021-07-18 11:18:03 +02:00
<div class="topic_move_breadcrumb_messages">
<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>
2022-07-28 15:38:32 +02:00
{{ t "Send automated notice to new topic" }}
2021-07-18 11:18:03 +02:00
</label>
<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>
2022-07-28 15:38:32 +02:00
{{ t "Send automated notice to old topic" }}
2021-07-18 11:18:03 +02:00
</label>
</div>
2020-02-19 01:38:34 +01:00
</div>
2021-07-18 11:18:03 +02:00
</form>