{include file="_partials/head.tpl"}

<div class="page-head">
  <div>
    <h1>Новое меню</h1>
    <p class="muted"><a href="/admin/menus">← К списку меню</a></p>
  </div>
</div>

<form method="post" action="{form_action}" class="card">
  {csrf}

  <div class="form-row">
    <div class="form-group">
      <label>Название *</label>
      <input type="text" name="title" value="{row.title}" required placeholder="Главное меню">
    </div>
    <div class="form-group">
      <label>Slug</label>
      <input type="text" name="slug" value="{row.slug}" placeholder="header">
      <small class="help">Используется в шаблоне темы.</small>
    </div>
  </div>

  <div class="form-actions">
    <button type="submit" class="btn btn-primary">{lang key="admin.save"}</button>
    <a href="/admin/menus" class="btn btn-secondary">{lang key="admin.cancel"}</a>
  </div>
</form>

{include file="_partials/foot.tpl"}
