{{ 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 href="{{ cancel }}" class="btn-default btn-medium btn-outline right-margin-small">
              <span>Cancelar</span></a>
            <button class="btn-default btn-medium btn-primary js-submit-main-form">
              <span>Salvar</span>
            </button>
          </div>
          {% if error_warning %}
          <div class="warning full-width top-margin-medium">{{ error_warning }}</div>
          {% endif %}
          {% if success %}
          <div class="success full-width top-margin-medium">{{ success }}</div>
          {% endif %}
        </div>
      </div>
    </div>
  </div>
</header>
<div class="container-fluid">
  <form action="{{ action }}" method="post" class="row js-main-form">
    <div class="col-xs-12 col-md-8">
      <div class="content-box background-white padding-large shadow-small">
        <div class="field-group content-box">
          {% if warning_url %}
          <span class="text-small text-warning js-copy-content">
          <i class="fas fa-exclamation-triangle right-margin-small"></i>{{warning_url}}
          </span>
          {% else %}
          <span class="text-small text-dark visible-block">{{ entry_data_feed }}</span>
          <span class="text-small text-gray js-copy-content">{{ data_feed }}</span>
          <span class="js-copy-action text-medium rel">
            <i class="far fa-clone" aria-hidden="true" title="Copiar"></i>
          </span>
          {% endif %}
        </div>
      </div>
    </div>
    <div class="col-xs-12 col-md-4">
      <div class="content-box background-white padding-large shadow-small">
        <div class="field-group bottom-margin-large">
          <label for="name" class="field-label">{{ entry_status }}</label>
          <select name="google_base_status" class="field-entry field-entry-medium">
            <option value="1" {{ (google_base_status) ? 'selected="selected"' : '' }}>{{ text_enabled }}</option>
            <option value="0" {{ ( not google_base_status) ? 'selected="selected"' : '' }}>{{ text_disabled }}</option>
          </select>
        </div>
        <hr class="bottom-border-gray vertical-margin-large">
        <span class="text-gray text-x-small bottom-padding-small visible-block">{{ text_optional }}</span>
        <div class="field-group top-padding-large">
          <div class="flex between-xs">
            <label class="field-label">{{ entry_store_code }}</label>
            <a
              class="text-info visible-inline-block cursor-pointer text-decoration-none"
              target="_blank"
              href="https://support.google.com/business/answer/4542487?hl=pt-BR#:~:text=Para%20alterar%20um%20c%C3%B3digo%20de,existente%2C%20esse%20lugar%20ser%C3%A1%20duplicado."
            >
              {{ text_help }}
            </a>
          </div>
          <input
            type="text"
            name="google_store_code"
            placeholder="Código do google meu negócio"
            class="field-entry field-entry-medium"
            value="{{ google_store_code }}"
          >
        </div>
      </div>
    </div>
  </form>
</div>
{{ footer }}