<?php

/** @var \Ilch\View $this */
?>
<h1><?=$this->getTrans('settings') ?></h1>
<form method="POST" action="">
    <div class="row">
        <?=$this->getTokenField() ?>
        <div class="row mb-3">
            <label for="downloadsPerPageInput" class="col-xl-2 col-form-label">
                <?=$this->getTrans('downloadsPerPage') ?>:
            </label>
            <div class="col-xl-1">
                <input type="number"
                       class="form-control"
                       id="downloadsPerPageInput"
                       name="downloadsPerPage"
                       min="1"
                       value="<?=$this->escape($this->get('downloadsPerPage')) ?>" />
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-xl-2 col-form-label"></label>
            <div class="col-xl-6">
                <a class="btn btn-outline-secondary" href="<?=$this->getUrl(['module' => 'media', 'controller' => 'settings', 'action' => 'index'], 'admin') ?>"><?=$this->getTrans('moreSettings') ?></a>
            </div>
        </div>
        <?=$this->getSaveBar() ?>
    </div>
</form>
