<?php $this->extend('block_unsearchable'); ?>
<?php $this->block('content'); ?>
<form<?php if ($this->request): ?> action="<?= $this->request ?>"<?php endif; ?> method="post">
<div class="formbody">
<input type="hidden" name="FORM_SUBMIT" value="<?= $this->formId ?>">
<input type="hidden" name="REQUEST_TOKEN" value="{{request_token}}">
<div class="widget widget-select">
<label for="ctrl_target" class="invisible"><?= $this->targetPage ?></label>
<select name="target" id="ctrl_target" class="select" onchange="this.form.submit()">
<option value=""><?= $this->title ?></option>
<?php foreach ($this->items as $item): ?>
<option value="<?= $item['href'] ?>"<?php if ($item['active']) echo ' selected'; ?>><?= str_repeat(' ', $item['level']) ?><?= $item['link'] ?></option>
<?php endforeach; ?>
</select>
</div>
<noscript>
<div class="widget widget-submit">
<button type="submit" class="submit"><?= $this->button ?></button>
</div>
</noscript>
</div>
</form>
<?php $this->endblock(); ?>