<?php

/** @var \Ilch\View $this */
?>
<h1><?=$this->getTrans('settings') ?></h1>
<form method="POST">
    <?=$this->getTokenField() ?>
    <div class="row mb-3<?=$this->validation()->hasError('showallonstart') ? ' has-error' : '' ?>">
        <label for="threadsPerPageInput" class="col-xl-2 col-form-label">
            <?=$this->getTrans('showallonstart') ?>:
        </label>
        <div class="col-xl-4">
            <div class="flipswitch">
                <input type="radio" class="flipswitch-input" id="showallonstart-on" name="showallonstart" value="1" <?=$this->originalInput('showallonstart', $this->get('showallonstart')) ? 'checked="checked"' : '' ?> />
                <label for="showallonstart-on" class="flipswitch-label flipswitch-label-on"><?=$this->getTrans('on') ?></label>
                <input type="radio" class="flipswitch-input" id="showallonstart-off" name="showallonstart" value="0" <?=!$this->originalInput('showallonstart', $this->get('showallonstart')) ? 'checked="checked"' : '' ?> />
                <label for="showallonstart-off" class="flipswitch-label flipswitch-label-off"><?=$this->getTrans('off') ?></label>
                <span class="flipswitch-selection"></span>
            </div>
        </div>
    </div>
    <?=$this->getSaveBar() ?>
</form>
