<h3 class="modalTitle">Configuration de Majic</h3>

<div style="padding: 5px;">
  <div>
    <h3>Noms des rapports</h3>
    <label class="descBatiMidField">Matrice cadastrale</label>
    <input
      type="text"
      ng-model="config.reports['MatCad']"
      class="descBatiMidField"
    />
    <label class="descBatiMidField">Relevé de propriété</label>
    <input
      type="text"
      ng-model="config.reports['RelProp']"
      class="descBatiMidField"
    />
  </div>
  <div>
    <h3>Identifiants de couches (uid)</h3>
    <label class="descBatiMidField">Parcelles</label>
    <!--           <input  type="text" ng-model="object.value" class="descBatiLongField" />           -->
    <select
      class="descBatiMidField"
      ng-init="getFeatureAttributes(config.parcelles_uid)"
      ng-change="getFeatureAttributes(config.parcelles_uid)"
      ng-model="config.parcelles_uid"
      ng-options="f.uid as f.name for f in features"
    >
      <option value="">-- feature parcelle --</option>
    </select>
  </div>
  <div>
    <h3>Attribut utilisé en tant qu'identifiant de parcelle</h3>
    <label class="descBatiMidField">Nom (different de 'id') </label>
    <!--           <input  type="text" ng-model="object.value" class="descBatiLongField" />           -->
    <select
      class="descBatiMidField"
      ng-model="config.parcelleIdName"
      ng-options="a.name as a.name for a in parcAttributes"
    >
      <option value="">-- attribut parcelle --</option>
    </select>
  </div>

  <br />
  <div class="row">
    <div class="col-xs-12 text-right">
      <hr />
      <!--<div class="btn btn-default" ng-click="closeThisDialog('Annulation')">
                <translate>geolocalisation.ConfigCancel</translate>
            </div>-->
      <div class="btn btn-primary" ng-click="confirm('Confirmation')">
        <translate>geolocalisation.ConfigSave</translate>
      </div>
    </div>
  </div>
</div>
