<div style="max-height: 300px;overflow-y: auto">
  <div class="alert alert-info inlinealert" ng-if="!controleExternes.length">
    Aucun contrôle habitant est annulé
  </div>
  <table class="table table-bordered" ng-if="controleExternes.length">
    <tr>
      <th class="col-xs-2">Nom complet</th>
      <th class="col-xs-4">Adresse</th>
      <th class="col-xs-2">Date</th>
      <th class="col-xs-2">Utilisateur</th>
      <th class="col-xs-2">Activer</th>
    </tr>
    <tr ng-repeat="x in controleExternes track by $index">
      <td>
        {{x.info_generales.proprietaire.nom + ' '
        +x.info_generales.proprietaire.prenom}}
      </td>
      <td>
        {{x.info_generales.proprietaire.adresse_num_rue + ' '+
        x.info_generales.proprietaire.adresse_rue +' '+
        x.info_generales.proprietaire.adresse_ville}}
      </td>
      <td class="text-center">
        {{x.action_history.date}}
      </td>
      <td class="text-center">
        {{renderTrueUserName(x.action_history.user)}}
      </td>
      <td class="text-center">
        <div
          class="btn btn-xs btn-default"
          ng-click="activerAnnuleControleHabitant(x)"
        >
          Activer
        </div>
      </td>
    </tr>
  </table>
</div>
