{include file="_partials/head.tpl"}
<link rel="stylesheet" href="/public/assets/account/account.css">

<div class="acc-container">
  <nav class="acc-breadcrumbs" aria-label="Навигация"><a href="/">Главная</a> <span>/</span> <a href="/account">Кабинет</a> <span>/</span> <span>Адреса</span></nav>

  <div class="acc-layout">
    {include file="account/_nav.tpl"}

    <main class="acc-main">
      {include file="account/_flash.tpl"}

      <header class="acc-head">
        <h1 class="acc-head__title">Адреса и контакты</h1>
        <p class="acc-head__sub">Эти данные подставятся при оформлении заказа.</p>
      </header>

      <form method="post" action="/account/addresses" class="acc-form acc-card-box">
        {csrf}
        <div class="acc-field">
          <label for="acc-cname">Имя получателя</label>
          <input id="acc-cname" type="text" name="name" value="{cust.name}" maxlength="191">
        </div>
        <div class="acc-grid2">
          <div class="acc-field">
            <label for="acc-phone">Телефон</label>
            <input id="acc-phone" type="tel" name="phone" value="{cust.phone}" maxlength="32">
          </div>
          <div class="acc-field">
            <label for="acc-zip">Индекс</label>
            <input id="acc-zip" type="text" name="zip" value="{cust.zip}" maxlength="20">
          </div>
        </div>
        <div class="acc-grid2">
          <div class="acc-field">
            <label for="acc-country">Страна</label>
            <input id="acc-country" type="text" name="country" value="{cust.country}" maxlength="100">
          </div>
          <div class="acc-field">
            <label for="acc-city">Город</label>
            <input id="acc-city" type="text" name="city" value="{cust.city}" maxlength="100">
          </div>
        </div>
        <div class="acc-field">
          <label for="acc-address">Адрес</label>
          <input id="acc-address" type="text" name="address" value="{cust.address}" maxlength="255">
        </div>
        <div class="acc-form__actions">
          <button type="submit" class="acc-btn acc-btn--primary">Сохранить</button>
        </div>
      </form>
    </main>
  </div>
</div>

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