{% if S_AJAX_REQUEST %}

<div class="iz-confirm iz-confirm--mcp">
	<h3 class="iz-confirm__title">{{ MESSAGE_TITLE }}</h3>

	{% if ADDITIONAL_MSG %}
		<p class="iz-confirm__text">{{ ADDITIONAL_MSG }}</p>
	{% endif %}

	<div class="iz-field">
		<label class="iz-label" for="to_forum_id">{{ L_SELECT_DESTINATION_FORUM }}{{ L_COLON }}</label>
		<select class="iz-select" name="to_forum_id" id="to_forum_id">
			{{ S_FORUM_SELECT }}
		</select>
	</div>

	{% if S_CAN_LEAVE_SHADOW %}
		<div class="iz-field iz-field--choice">
			<label class="iz-choice" for="move_leave_shadow">
				<input class="iz-choice__input" type="checkbox" name="move_leave_shadow" id="move_leave_shadow" checked="checked">
				<span class="iz-choice__label">{{ L_LEAVE_SHADOW }}</span>
			</label>
		</div>
	{% endif %}

	{% if S_CAN_LOCK_TOPIC %}
		<div class="iz-field iz-field--choice">
			<label class="iz-choice" for="move_lock_topics">
				<input class="iz-choice__input" type="checkbox" name="move_lock_topics" id="move_lock_topics">
				<span class="iz-choice__label">{{ L_LOCK_TOPIC }}</span>
			</label>
		</div>
	{% endif %}

	<p class="iz-help">{{ MESSAGE_TEXT }}</p>

	<fieldset class="iz-confirm__actions">
		<input class="iz-btn iz-btn--primary" type="submit" name="confirm" value="{{ YES_VALUE }}">
		<input class="iz-btn iz-btn--secondary" type="submit" name="cancel" value="{{ L_NO }}">
	</fieldset>
</div>

{% else %}

{% include 'overall_header.html' %}
{% EVENT mcp_move_before %}

<form id="confirm" class="iz-confirm iz-confirm--mcp" action="{{ S_CONFIRM_ACTION }}" method="post">
	<section class="iz-card iz-card--confirm" aria-labelledby="iz-mcp-move-title">
		<header class="iz-card__header">
			<h2 class="iz-card__title" id="iz-mcp-move-title">{{ MESSAGE_TITLE }}</h2>
		</header>

		<div class="iz-card__body">
			{% if ADDITIONAL_MSG %}
				<p class="iz-confirm__text">{{ ADDITIONAL_MSG }}</p>
			{% endif %}

			{% EVENT mcp_move_destination_forum_before %}

			<div class="iz-field">
				<label class="iz-label" for="to_forum_id">{{ L_SELECT_DESTINATION_FORUM }}{{ L_COLON }}</label>
				<select class="iz-select" name="to_forum_id" id="to_forum_id">
					{{ S_FORUM_SELECT }}
				</select>
			</div>

			{% if S_CAN_LEAVE_SHADOW %}
				<div class="iz-field iz-field--choice">
					<label class="iz-choice" for="move_leave_shadow">
						<input class="iz-choice__input" type="checkbox" name="move_leave_shadow" id="move_leave_shadow" checked="checked">
						<span class="iz-choice__label">{{ L_LEAVE_SHADOW }}</span>
					</label>
				</div>
			{% endif %}

			{% if S_CAN_LOCK_TOPIC %}
				<div class="iz-field iz-field--choice">
					<label class="iz-choice" for="move_lock_topics">
						<input class="iz-choice__input" type="checkbox" name="move_lock_topics" id="move_lock_topics">
						<span class="iz-choice__label">{{ L_LOCK_TOPIC }}</span>
					</label>
				</div>
			{% endif %}

			{% EVENT mcp_move_destination_forum_after %}

			<p class="iz-help">{{ MESSAGE_TEXT }}</p>

			<fieldset class="iz-confirm__actions">
				{{ S_HIDDEN_FIELDS }}
				<button class="iz-btn iz-btn--secondary" type="submit" name="cancel" value="{{ L_NO }}">{{ L_NO }}</button>
				<button class="iz-btn iz-btn--primary" type="submit" name="confirm" value="{{ YES_VALUE }}">{{ YES_VALUE }}</button>
				{{ S_FORM_TOKEN }}
			</fieldset>
		</div>
	</section>
</form>

{% include 'overall_footer.html' %}
{% endif %}
