{{ header }}
<header class="background-white bottom-margin-large">
  <div class="container-fluid">
    <div class="row no-space-xs">
      <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 class="btn-default btn-medium btn-outline right-margin-small" href="{{ cancel }}">
              <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 full-width">{{ error_warning }}</div>
        {% endif %}
      </div>
    </div>
  </div>
</header>
<div class="container-fluid">
  <div class="row no-space-xs middle-xs">
    <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">
              <div class="field-group-join">
                <label class="field field-medium">
                  <span class="field-label">{{ entry_iso_code_2 }}</span>
                  <input class="field-entry" type="text" name="iso_code_2" value="{{ iso_code_2 }}" />
                </label>
                <label class="field field-medium">
                  <span class="field-label">{{ entry_iso_code_3 }}</span>
                  <input class="field-entry" type="text" name="iso_code_3" value="{{ iso_code_3 }}" />
                </label>
              </div>
            </div>
            <div class="col-xs-12">
              <label class="field field-medium">
                <span class="field-label">{{ entry_address_format }}</span>
                <textarea class="field-entry" name="address_format" cols="10" rows="10">{{ address_format }}</textarea>
              </label>
            </div>
            <div class="col-xs-12">
              <span class="text-small text-dark text-bold visible-block">{{ entry_postcode_required }}</span>
              <label class="radio radio-medium radio-inline">
                <input class="radio-entry" type="radio" name="postcode_required" value="1" {{ (postcode_required) ? 'checked' : '' }} />
                <span class="radio-text">{{ text_yes }}</span>
              </label>
              <label class="radio radio-medium radio-inline">
                <input class="radio-entry" type="radio" name="postcode_required" value="0" {{ ( not postcode_required) ? 'checked' : '' }} />
                <span class="radio-text">{{ text_no }}</span>
              </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 }}