<h3 translate class="modalTitle">hpo.data.exchange.get</h3>

<div style="padding: 20px;">
  <div class="col-md-12" style="margin-bottom:20px;">
    <div class="col-md-12">
      <center>
        <div class="col-md-3" style="padding:5px 0px 0 0;">
          <label style="padding-right: 10px;" translate
            >elastic.search.save.name</label
          >
        </div>
        <div class="col-md-8" style="padding:0px;">
          <select
            class="form-control"
            ng-model="saved.query"
            ng-options="query for query in saved.queries"
          >
            <option value="" disabled selected hidden translate
              >model.featuretypes.actions.choisir</option
            >
          </select>
        </div>
      </center>
    </div>
  </div>
  <div class="col-md-12" style="margin-bottom:20px;">
    <div class="col-md-12">
      <input type="checkbox" ng-model="saved.getDefaultValue" />
      <span translate>hpo.data.exchange.getdefaultValue</span>
    </div>
  </div>
  <div class="col-md-12" style="margin-bottom:20px;">
    <div class="col-md-12">
      <input type="checkbox" ng-model="saved.getdateFormat" />
      <span translate>hpo.data.exchange.getdateFormat</span>
    </div>
  </div>
  <div
    class="col-md-12"
    ng-if="saved.queries.length > 0"
    style="margin-bottom:15px;"
  >
    <div class="col-md-12">
      <strong><translate>elastic.search.save.available</translate></strong>
    </div>
  </div>
  <div
    class="col-md-12"
    ng-show="saved.queries.length > 0"
    style="margin-bottom:10px;max-height:150px;overflow-y:overlay;"
  >
    <div class="col-md-12" ng-repeat="query in saved.queries">
      <center>
        <div class="input-group" style="padding:0;width:320px;">
          <input
            type="text"
            ng-model="query"
            ng-disabled="true"
            placeholder="{{ 'layermanager.mapModelName' | translate }}"
            class="form-control"
          />
          <span class="input-group-btn">
            <a
              class="btn btn-md btn-danger remover"
              title="Delete"
              data-ng-click="removeSavedAdvanced($index , saved.queries)"
            >
              <i class="fa fa-minus"></i>
            </a>
            <span
              publish-param
              ng-hide="currentuser != saved.realNames[$index].login"
              param="saved.realNames[$index]"
            ></span>
          </span>
        </div>
      </center>
    </div>
  </div>

  <div class="row">
    <div class="col-xs-12 text-right">
      <hr />
      <div class="btn btn-primary" ng-click="confirm(saved)">ok</div>
    </div>
  </div>
</div>
