<input type="hidden" value="{{ data.international.flat.count }}" id="flat_count_international" />
{% if data.international.flat.service_id is not empty %}
  {% for key,service in data.international.flat.service_id %}
    <div class="well" id="international_flat_{{ key }}">
      <div class="row form-group">
        <div class="col-sm-1 text-right"><label class="control-label">{{ text_shipping_service }}</label></div>
        <div class="col-sm-11">
          <select name="data[international][flat][service_id][{{ key }}]" class="form-control">
            {% for service_key,service_type in data.international.flat.types.service %}
              <option value="{{ service_key }}" {% if service_key == service %} selected{% endif %}>{{ service_type.description }}</option>
            {% endfor %}
          </select>
        </div>
      </div>
      <div class="row form-group">
        <div class="col-sm-1 text-right">
          <label class="control-label">{{ text_shipping_zones }}</label>
        </div>
        <div class="col-sm-10">
          <label class="checkbox-inline">
            <input type="checkbox" name="data[international][flat][shipto][{{ key }}][]" value="Worldwide"{% if "Worldwide" in data.international.flat.shipto[key] %} checked="checked"{% endif %} /> {{ text_shipping_worldwide }}
          </label>
          {% for zone in zones %}
          <label class="checkbox-inline">
            <input type="checkbox" name="data[international][flat][shipto][{{ key }}][]" value="{{ zone.shipping_location }}"{% if zone.shipping_location in data.international.flat.shipto[key] %} checked="checked"{% endif %} /> {{ zone.description }}
          </label>
          {% endfor %}
        </div>
      </div>
      <div class="row form-group">
        <div class="col-sm-1 text-right">
          <label class="control-label">{{ text_shipping_first }}</label>
        </div>
        <div class="col-sm-3">
          <input type="text" name="data[international][flat][price][{{ key }}]" class="form-control" value="{{ data.international.flat.price[key] }}" class="form-control" />
        </div>
        <div class="col-sm-2 text-right">
          <label class="control-label">{{ text_shipping_add }}</label>
        </div>
        <div class="col-sm-3">
          <input type="text" name="data[international][flat][price_additional][{{ key }}]" class="form-control" value="{{ data.international.flat.price_additional[key] }}" />
        </div>
        <div class="col-sm-3 pull-right text-right">
          <a onclick="removeShipping('international','{{ key }}', 'flat');" class="btn btn-danger"><i class="fa fa-minus-circle"></i> {{ button_delete }}</a>
        </div>
      </div>
    </div>
  {% endfor %}
{% endif %}
