{% if S_DISPLAY_JUMPBOX %}
<div class="iz-jumpbox">
	<form class="iz-jumpbox__form"
		  method="post"
		  id="jumpbox"
		  action="{{ S_JUMPBOX_ACTION }}"
		  onsubmit="if(this.f.value == -1){return false;}">

		{% if $CUSTOM_FIELDSET_CLASS %}
		<fieldset class="iz-jumpbox__fieldset {{ CUSTOM_FIELDSET_CLASS }}">
		{% else %}
		<fieldset class="iz-jumpbox__fieldset">
		{% endif %}

			<label class="iz-label" for="jumpbox-forum" accesskey="j">
				{% if S_IN_MCP and S_MERGE_SELECT %}
					{{ L_SELECT_TOPICS_FROM }}
				{% elseif S_IN_MCP %}
					{{ L_MODERATE_FORUM }}
				{% else %}
					{{ L_JUMP_TO }}
				{% endif %}
				{{ L_COLON }}
			</label>

			<div class="iz-jumpbox__controls">
				<select class="iz-select"
						name="f"
						id="jumpbox-forum"
						onchange="if(this.options[this.selectedIndex].value != -1){ document.forms['jumpbox'].submit(); }">
					{% for jumpbox_forums in jumpbox_forums %}
						{% if jumpbox_forums.S_FORUM_COUNT == 1 %}
							<option value="-1">------------------</option>
						{% endif %}
						<option value="{{ jumpbox_forums.FORUM_ID }}"{{ jumpbox_forums.SELECTED }}>
							{% for level in level %}&nbsp;&nbsp;{% endfor %}{{ jumpbox_forums.FORUM_NAME }}
						</option>
					{% endfor %}
				</select>

				<button class="iz-btn iz-btn--secondary" type="submit">{{ L_GO }}</button>
			</div>

		</fieldset>
	</form>
</div>
{% else %}
	<!-- Intentionally empty when jumpbox is disabled -->
{% endif %}
