<div class="iz-displayopts" data-iz-display-options>
	<fieldset class="iz-displayopts__fieldset">
		<div class="iz-displayopts__panel">

			{% if S_SORT_OPTIONS %}
				<div class="iz-displayopts__grid">
					<div class="iz-displayopts__item">
						<label class="iz-label" for="sk">{{ L_SORT_BY }}{{ L_COLON }}</label>
						<select class="iz-select" name="sk" id="sk">{{ S_SORT_OPTIONS }}</select>
					</div>

					<div class="iz-displayopts__item">
						<label class="iz-label" for="sd">{{ L_SORT_DIRECTION }}{{ L_COLON }}</label>
						<div class="iz-displayopts__inline">
							<select class="iz-select" name="sd" id="sd">{{ S_ORDER_SELECT }}</select>
							<button class="iz-btn iz-btn--secondary" name="sort" type="submit">{{ L_GO }}</button>
						</div>
					</div>
				</div>
			{% else %}
				<div class="iz-displayopts__grid">
					<div class="iz-displayopts__item">
						<label class="iz-label" for="st">{{ L_DISPLAY }}{{ L_COLON }}</label>
						<div class="iz-displayopts__control">{{ S_SELECT_SORT_DAYS }}</div>
					</div>

					<div class="iz-displayopts__item">
						<label class="iz-label" for="sk">{{ L_SORT_BY }}{{ L_COLON }}</label>
						<div class="iz-displayopts__control">{{ S_SELECT_SORT_KEY }}</div>
					</div>

					<div class="iz-displayopts__item">
						<label class="iz-label" for="sd">{{ L_SORT_DIRECTION }}{{ L_COLON }}</label>
						<div class="iz-displayopts__inline">
							<div class="iz-displayopts__control">{{ S_SELECT_SORT_DIR }}</div>
							<button class="iz-btn iz-btn--secondary" name="sort" type="submit">{{ L_GO }}</button>
						</div>
					</div>
				</div>
			{% endif %}

		</div>
	</fieldset>
</div>
