<!--Widget Import/Export - Import - Popup de confirmation de l'import d'entités au clic sur le bouton "Valider"-->
<h3 class="modalTitle">{{ 'importexportwidget.confirmImport.title' | translate }}</h3>
<div class="modal-import-confirm-content">
  <div ng-switch="toImportFeaturesCount > 0">
    <p ng-switch-when="true">{{ toImportFeaturesCount + ('importexportwidget.confirmImport.text' | translate) }}</p>
    <p ng-switch-when="false">
      <span>{{'importexportwidget.noFeature' | translate}}</span>
      <span ng-if="importFilters.attribute">{{'importexportwidget.checkDataFilter' | translate}}</span>
    </p>
  </div>

  <div class="buttons">
    <button
      type="button"
      class="btn btn-default"
      ng-click="closeThisDialog()"
    >
      {{'common.' + (toImportFeaturesCount > 0 ? 'no' : 'ok') | translate}}
    </button>
    <button
      type="button"
      class="btn btn-success"
      ng-click="validateCorrespondence();closeThisDialog()"
      ng-if="toImportFeaturesCount > 0"
    >
      {{'common.yes' | translate}}
    </button>
  </div>
</div>