{{ 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">
        {% for language in languages %}
          <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="return_action[{{ language.language_id }}][name]"
                    value="{{ return_action[language.language_id] is defined ? return_action[language.language_id]['name'] : '' }}"
                  />
                  {% if error_name[language.language_id] is defined %}
                    <span class="text-error text-x-small">{{ error_name[language.language_id] }}</span>
                  {% endif %}
                </label>
              </div>
            </div>
          </form>
        {% endfor %}
      </div>
    </div>
  </div>
</div>
{{ footer }}