<h1><?=$this->getTrans('settings') ?></h1>
<form class="form-horizontal" method="POST" action="">
    <?=$this->getTokenField() ?>
    <div class="form-group <?=$this->validation()->hasError('warsPerPage') ? 'has-error' : '' ?>">
        <label for="warsPerPageInput" class="col-lg-2 control-label">
            <?=$this->getTrans('warsPerPage') ?>:
        </label>
        <div class="col-lg-1">
            <input type="number"
                   class="form-control"
                   id="warsPerPageInput"
                   name="warsPerPage"
                   min="1"
                   value="<?=$this->escape($this->originalInput('warsPerPage', $this->get('warsPerPage'))) ?>" />
        </div>
    </div>
    <div class="form-group <?=$this->validation()->hasError('enemiesPerPage') ? 'has-error' : '' ?>">
        <label for="enemiesPerPageInput" class="col-lg-2 control-label">
            <?=$this->getTrans('enemiesPerPage') ?>:
        </label>
        <div class="col-lg-1">
            <input type="number"
                   class="form-control"
                   id="enemiesPerPageInput"
                   name="enemiesPerPage"
                   min="1"
                   value="<?=$this->escape($this->originalInput('enemiesPerPage', $this->get('enemiesPerPage'))) ?>" />
        </div>
    </div>
    <div class="form-group <?=$this->validation()->hasError('groupsPerPage') ? 'has-error' : '' ?>">
        <label for="groupsPerPageInput" class="col-lg-2 control-label">
            <?=$this->getTrans('groupsPerPage') ?>:
        </label>
        <div class="col-lg-1">
            <input type="number"
                   class="form-control"
                   id="groupsPerPageInput"
                   name="groupsPerPage"
                   min="1"
                   value="<?=$this->escape($this->originalInput('groupsPerPage', $this->get('groupsPerPage'))) ?>" />
        </div>
    </div>

    <h1><?=$this->getTrans('boxSettings') ?></h1>
    <div class="form-group <?=$this->validation()->hasError('boxNextWarLimit') ? 'has-error' : '' ?>">
        <label for="limitNextWarInput" class="col-lg-2 control-label">
            <?=$this->getTrans('nextWarLimit') ?>:
        </label>
        <div class="col-lg-1">
            <input type="number"
                   class="form-control"
                   id="limitNextWarInput"
                   name="boxNextWarLimit"
                   min="1"
                   value="<?=$this->escape($this->originalInput('boxNextWarLimit', $this->get('boxNextWarLimit'))) ?>" />
        </div>
    </div>
    <div class="form-group <?=$this->validation()->hasError('boxLastWarLimit') ? 'has-error' : '' ?>">
        <label for="limitLastWarInput" class="col-lg-2 control-label">
            <?=$this->getTrans('lastWarLimit') ?>:
        </label>
        <div class="col-lg-1">
            <input type="number"
                   class="form-control"
                   id="limitLastWarInput"
                   name="boxLastWarLimit"
                   min="1"
                   value="<?=$this->escape($this->originalInput('boxLastWarLimit', $this->get('boxLastWarLimit'))) ?>" />
        </div>
    </div>
    <?=$this->getSaveBar() ?>
</form>
