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

	{% if ADDITIONAL_MSG %}{{ ADDITIONAL_MSG }}{% endif %}

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

	{% if not S_APPROVE and not S_RESTORE and .reason %}
		<div class="iz-field">
			<label class="iz-label" for="reason_id">{{ L_DISAPPROVE_REASON }}{{ L_COLON }}</label>
			<select class="iz-select" name="reason_id" id="reason_id">
				{% for reason in reason %}
					<option value="{{ reason.ID }}"{% if reason.S_SELECTED %} selected="selected"{% endif %}>{{ reason.DESCRIPTION }}</option>
				{% endfor %}
			</select>
		</div>

		<div class="iz-field">
			<label class="iz-label" for="reason">{{ L_MORE_INFO }}{{ L_COLON }}</label>
			<p class="iz-help">{{ L_CAN_LEAVE_BLANK }}</p>
			<textarea class="iz-textarea"
					  placeholder="{{ L_MORE_INFO }}{{ L_ELLIPSIS }}{{ L_CAN_LEAVE_BLANK }}"
					  rows="2"
					  name="reason"
					  id="reason">{{ REASON }}</textarea>
		</div>
	{% endif %}

	{% if S_NOTIFY_POSTER %}
		<div class="iz-field iz-field--choice">
			<label class="iz-choice" for="notify_poster">
				<input class="iz-choice__input" type="checkbox" name="notify_poster" id="notify_poster" checked="checked">
				<span class="iz-choice__label">
					{% if S_APPROVE %}{{ L_NOTIFY_POSTER_APPROVAL }}{% else %}{{ L_NOTIFY_POSTER_DISAPPROVAL }}{% endif %}
				</span>
			</label>
		</div>
	{% endif %}

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

{% else %}
{% include 'overall_header.html' %}

<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-title">
		<header class="iz-card__header">
			<h2 class="iz-card__title" id="iz-mcp-title">{{ MESSAGE_TITLE }}</h2>
		</header>

		<div class="iz-card__body">
			{{ S_FORM_TOKEN }}

			{% if ADDITIONAL_MSG %}{{ ADDITIONAL_MSG }}{% endif %}

			{% if not S_APPROVE and not S_RESTORE and .reason %}
				<div class="iz-field">
					<label class="iz-label" for="reason_id">{{ L_DISAPPROVE_REASON }}{{ L_COLON }}</label>
					<select class="iz-select" name="reason_id" id="reason_id">
						{% for reason in reason %}
							<option value="{{ reason.ID }}"{% if reason.S_SELECTED %} selected="selected"{% endif %}>{{ reason.DESCRIPTION }}</option>
						{% endfor %}
					</select>
				</div>

				<div class="iz-field">
					<label class="iz-label" for="reason">{{ L_MORE_INFO }}{{ L_COLON }}</label>
					<p class="iz-help">{{ L_CAN_LEAVE_BLANK }}</p>
					<textarea class="iz-textarea"
							  placeholder="{{ L_MORE_INFO }}{{ L_ELLIPSIS }}{{ L_CAN_LEAVE_BLANK }}"
							  rows="2"
							  name="reason"
							  id="reason">{{ REASON }}</textarea>
				</div>
			{% endif %}

			{% if S_NOTIFY_POSTER %}
				<div class="iz-field iz-field--choice">
					<label class="iz-choice" for="notify_poster">
						<input class="iz-choice__input" type="checkbox" name="notify_poster" id="notify_poster" checked="checked">
						<span class="iz-choice__label">
							{% if S_APPROVE %}{{ L_NOTIFY_POSTER_APPROVAL }}{% else %}{{ L_NOTIFY_POSTER_DISAPPROVAL }}{% endif %}
						</span>
					</label>
				</div>
			{% endif %}

			<p class="iz-confirm__text">{{ 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_CANCEL }}</button>
				<button class="iz-btn iz-btn--primary" type="submit" name="confirm" value="{{ YES_VALUE }}">{{ L_SUBMIT }}</button>
			</fieldset>
		</div>
	</section>
</form>

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