<section class="iz-card iz-card--preview" id="preview" role="region" aria-label="{{ L_PREVIEW }}">
	{% if S_HAS_POLL_OPTIONS %}
		<div class="iz-card__body">
			<header class="iz-card__header">
				<h2 class="iz-h3">{{ L_PREVIEW }}{{ L_COLON }}&nbsp;{{ POLL_QUESTION }}</h2>
			</header>

			<p class="iz-hint">
				{% if L_POLL_LENGTH %}{{ L_POLL_LENGTH }}<br />{% endif %}
				{{ L_MAX_VOTES }}
			</p>

			<fieldset class="iz-fieldset">
				<legend class="iz-legend iz-visually-hidden">{{ POLL_QUESTION }}</legend>

				<div class="iz-choicegroup">
					{% for poll_option in poll_option %}
						<div class="iz-choice">
							{% if S_IS_MULTI_CHOICE %}
								<input
									type="checkbox"
									name="vote_id[]"
									id="vote_{{ poll_option.POLL_OPTION_ID }}"
									value="{{ poll_option.POLL_OPTION_ID }}"
									{% if poll_option.POLL_OPTION_VOTED %} checked="checked"{% endif %}
								>
							{% else %}
								<input
									type="radio"
									name="vote_id[]"
									id="vote_{{ poll_option.POLL_OPTION_ID }}"
									value="{{ poll_option.POLL_OPTION_ID }}"
									{% if poll_option.POLL_OPTION_VOTED %} checked="checked"{% endif %}
								>
							{% endif %}

							<label for="vote_{{ poll_option.POLL_OPTION_ID }}">{{ poll_option.POLL_OPTION_CAPTION }}</label>
						</div>
					{% endfor %}
				</div>
			</fieldset>
		</div>
	{% endif %}

	{% EVENT posting_preview_poll_after %}

	<div class="iz-card__body">
		<header class="iz-card__header">
			<h3 class="iz-h3">{{ L_PREVIEW }}{{ L_COLON }}&nbsp;{{ PREVIEW_SUBJECT }}</h3>
		</header>

		<div class="iz-prose iz-preview__message">{{ PREVIEW_MESSAGE }}</div>

		{% if attachment %}
			<section class="iz-attachments" aria-label="{{ L_ATTACHMENTS }}">
				<h4 class="iz-h4">{{ L_ATTACHMENTS }}</h4>

				{% EVENT ss_posting_preview_attachment_row_before %}
				{% for attachment in attachment %}{{ attachment.DISPLAY_ATTACHMENT }}{% endfor %}
				{% EVENT ss_posting_preview_attachment_row_after %}
			</section>
		{% endif %}

		{% if PREVIEW_SIGNATURE %}
			<hr class="iz-divider" />
			<div class="iz-post-signature">{{ PREVIEW_SIGNATURE }}</div>
		{% endif %}
	</div>
</section>
