{{ header }}
<header class="background-white bottom-margin-large">
  <div class="container-fluid">
    <div class="row">
      <div class="col-xs-12">
        <div class="content-box vertical-padding-large flex between-xs middle-xs">
          <div>
            <span class="text-x-large text-dark">{{ heading_title }}</span>
            <div class="adm-breadcrumb">
              {% for breadcrumb in breadcrumbs %}
                <i class="fas fa-angle-right text-x-small text-gray horizontal-padding-small"></i>
                <a class="text-x-small text-gray text-decoration-none" href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a>
              {% endfor %}
            </div>
          </div>
          <div class="flex flex-row middle-xs">
            <a href="{{ cancel }}" class="btn-default btn-medium btn-outline right-margin-small">
              <span>{{ button_cancel }}</span>
            </a>
            <button class="btn-default btn-primary btn-medium js-submit-main-form">
              <span>{{ button_save }}</span>
            </button>
          </div>
        </div>
        {% if error_warning %}
          <div class="warning">{{ error_warning }}</div>
        {% endif %}
      </div>
    </div>
  </div>
</header>
<div class="container-fluid">
  <div class="row">
    <div class="col-xs-12 col-md-8">
      <div class="content-box visible-block text-decoration-none background-white shadow-small padding-large">
        <form action="{{ action }}" method="post" class="js-main-form">
          <div class="row">
            <div class="col-xs-12">
              <label class="field field-medium">
                <span class="field-label required">{{ entry_name }}</span>
                <input class="field-entry" type="text" name="name" value="{{ name }}" />
                {% if error_name %}
                  <span class="text-error">{{ error_name }}</span>
                {% endif %}
              </label>
            </div>
            <div class="col-xs-12">
              <label class="field field-medium">
                <span class="field-label">{{ entry_code }}</span>
                <input class="field-entry" type="text" name="code" value="{{ code }}" />
              </label>
            </div>
            <div class="col-xs-12">
              <label class="field field-medium">
                <span class="field-label">{{ entry_country }}</span>
                <select class="field-entry" name="country_id">
                  {% for country in countries %}
                    <option value="{{ country.country_id }}" {{ (country.country_id == country_id) ? 'selected="selected"' : '' }}>{{ country.name }}</option>
                  {% endfor %}
                </select>
              </label>
            </div>
            <div class="col-xs-12">
              <label class="field field-medium">
                <span class="field-label">{{ entry_status }}</span>
                <select class="field-entry" name="status">
                  <option value="1" {{ (status) ? 'selected="selected"' : '' }}>{{ text_enabled }}</option>
                  <option value="0" {{ ( not status) ? 'selected="selected"' : '' }}>{{ text_disabled }}</option>
                </select>
              </label>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
{{ footer }}