<?php

/** @var \Ilch\View $this */

/** @var \Modules\War\Models\Maps $entry */
$entry = $this->get('map');
?>
<h1><?=(!$entry->getId()) ? $this->getTrans('manageNewMaps') : $this->getTrans('treatMaps') ?></h1>
<form id="article_form" method="POST" action="">
    <?=$this->getTokenField() ?>
    <div class="row mb-3<?=$this->validation()->hasError('mapsName') ? ' has-error' : '' ?>">
        <label for="mapsNameInput" class="col-xl-2 col-form-label">
            <?=$this->getTrans('mapsName') ?>:
        </label>
        <div class="col-xl-4">
            <input type="text"
                   class="form-control"
                   id="mapsNameInput"
                   name="mapsName"
                   value="<?=$this->escape($this->originalInput('mapsName', ($entry->getId() ? $entry->getName() : ''))) ?>" />
        </div>
    </div>
    <?=($entry->getId()) ? $this->getSaveBar('updateButton') : $this->getSaveBar('addButton') ?>
</form>
