<div class="iz-panel__body" id="posting-poll-html">
	{% if S_SHOW_POLL_BOX %}
		<p class="iz-hint">{{ L_ADD_POLL_EXPLAIN }}</p>
	{% endif %}

	<fieldset class="iz-fieldset">
		{% if S_SHOW_POLL_BOX %}

			<div class="iz-field">
				<label class="iz-label" for="poll_title">{{ L_POLL_QUESTION }}{{ L_COLON }}</label>
				<input
					type="text"
					class="iz-input"
					name="poll_title"
					id="poll_title"
					maxlength="100"
					value="{{ POLL_TITLE }}"
				/>
			</div>

			<div class="iz-field">
				<label class="iz-label" for="poll_option_text">{{ L_POLL_OPTIONS }}{{ L_COLON }}</label>
				<p class="iz-hint">{{ L_POLL_OPTIONS_EXPLAIN }}</p>
				<textarea
					rows="4"
					name="poll_option_text"
					id="poll_option_text"
					class="iz-textarea"
				>{{ POLL_OPTIONS }}</textarea>
			</div>

			<div class="iz-grid iz-grid--3">
				<div class="iz-field">
					<label class="iz-label" for="poll_max_options">{{ L_POLL_MAX_OPTIONS }}{{ L_COLON }}</label>
					<p class="iz-hint">{{ L_POLL_MAX_OPTIONS_EXPLAIN_ALT }}</p>

					<div class="iz-inputgroup">
						<input
							type="number"
							min="0"
							max="999"
							name="poll_max_options"
							id="poll_max_options"
							value="{{ POLL_MAX_OPTIONS }}"
							class="iz-input"
						/>
						<span class="iz-inputgroup__addon">{{ L_OPTIONS }}</span>
					</div>
				</div>

				<div class="iz-field">
					<label class="iz-label" for="poll_length">{{ L_POLL_FOR }}{{ L_COLON }}</label>
					<p class="iz-hint">{{ L_POLL_FOR_EXPLAIN }}</p>

					<div class="iz-inputgroup">
						<input
							type="number"
							name="poll_length"
							id="poll_length"
							size="3"
							value="{{ POLL_LENGTH }}"
							min="0"
							max="999"
							class="iz-input"
						/>
						<span class="iz-inputgroup__addon">{{ L_DAYS }}</span>
					</div>
				</div>

				<div class="iz-field">
					{% if S_POLL_VOTE_CHANGE %}
						<div class="iz-label">{{ L_POLL_VOTE_CHANGE }}{{ L_COLON }}</div>
						<p class="iz-hint">{{ L_POLL_VOTE_CHANGE_EXPLAIN }}</p>

						<div class="iz-choice">
							<input type="checkbox" id="poll_vote_change" name="poll_vote_change"{{ VOTE_CHANGE_CHECKED }}>
							<label for="poll_vote_change">{{ L_POLL_VOTE_CHANGE_LABEL }}</label>
						</div>
					{% endif %}
				</div>
			</div>

		{% endif %}

		{% EVENT posting_poll_body_options_after %}

		{% if S_POLL_DELETE %}
			<div class="iz-field">
				<div class="iz-label">{{ L_DELETE_POLL }}{{ L_COLON }}</div>
				<p class="iz-hint">{{ L_POLL_DELETE_HELPER }}</p>

				<div class="iz-choice">
					<input type="checkbox" name="poll_delete" id="poll_delete"{% if S_POLL_DELETE_CHECKED %} checked="checked"{% endif %}>
					<label for="poll_delete">{{ L_POLL_DELETE }}</label>
				</div>
			</div>
		{% endif %}
	</fieldset>
</div>
