<div class="elasticFilterResultCfg">
  <div>
    <div
      class="btn btn-sm btn-default pull-right"
      ng-click="doResetDashboard()"
    >
      <i class="fa fa-refresh"></i> Réinitialiser
    </div>
  </div>

  <div class="row">
    <div class="col-xs-12">
      <h4>Ordre initial</h4>
    </div>
    <div class="col-xs-8">
      <select
        class="form-control"
        ng-model="resultsConfiguration.sort.attribute"
        ng-options="o.identifiant as o.displayAlias for o in resultsConfiguration.attributes"
      ></select>
    </div>
    <div class="col-xs-4">
      <input
        type="radio"
        name="wuut"
        ng-model="resultsConfiguration.sort.order"
        value="asc"
      />
      Croissant <br />
      <input
        type="radio"
        name="wuut"
        ng-model="resultsConfiguration.sort.order"
        value="desc"
      />
      Décroissant
    </div>
  </div>

  <div class="row">
    <div class="col-xs-12">
      <h4>Ordre et intitulé des colonnes</h4>
      <small>
        Glisser/déposer les colonnes dans l'ordre souhaité. Utiliser le champ de
        saisie pour éditer le titre affiché.</small
      >

      <div ng-show="usedFtis.length>1">
        <span class="badge legende" ng-repeat="fti in usedFtis">{{fti}}</span>
      </div>
    </div>
    <div class="col-xs-12">
      <div id="colOrdering">
        <div
          class="resultCol l{{getClasseAttribut(attr)}}"
          ng-repeat="attr in resultsConfiguration.attributes"
          data-identifiant="{{attr.identifiant}}"
        >
          <div class="alias">{{ attr.displayAlias }}</div>
          <div class="editAlias">
            <input
              type="text"
              ng-model="attr.newAlias"
              ng-init="attr.newAlias = attr.newAlias ? attr.newAlias : attr.displayAlias"
            />
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
