<h3 class="modalTitle">
  Statut des dossiers
</h3>
<div class="modalBody">
  <div class="row">
    <div class="col-xs-12">
      <span
        class="label label-success pull-right"
        style="margin: 15px 15px 0 0;"
      >
        {{ dossierFilterBtn.v | translate}}
      </span>
      <label> Statut Actuel </label>
    </div>
  </div>

  <div class="row">
    <div class="col-xs-12">
      <div class="radio" ng-show="dossierFilterBtn.v!='en_cours'">
        <label ng-if="dossierFilterBtn.v!='ouvert'">
          <input
            type="radio"
            name="actionstatut"
            value="en_cours"
            ng-model="newDossierStatut.etat_dossier"
          />
          Ré-ouvrir les dossiers.
        </label>
      </div>
      <div class="radio" ng-show="dossierFilterBtn.v!='archive'">
        <label>
          <input
            type="radio"
            name="actionstatut"
            value="archive"
            ng-model="newDossierStatut.etat_dossier"
          />
          Archiver les dossiers.
        </label>
      </div>
      <div class="radio" ng-show="dossierFilterBtn.v!='sans_suite'">
        <label>
          <input
            type="radio"
            name="actionstatut"
            value="sans_suite"
            ng-model="newDossierStatut.etat_dossier"
          />
          Classer les dossiers sans suite.
        </label>
      </div>
      <div
        class="radio"
        ng-show="dossierFilterBtn.v!='raccorde'"
        ng-if="apptype === 'anc'"
      >
        <label>
          <input
            type="radio"
            name="actionstatut"
            value="raccorde"
            ng-model="newDossierStatut.etat_dossier"
          />
          Raccordés à l'assainissement collectif le
          <div
            javautildate
            gcatt="{name:'date_raccordement'}"
            result="newDossierStatut"
          ></div>
        </label>
      </div>
    </div>
  </div>

  <div class="row">
    <div class="col-xs-12 text-right">
      <hr />
      <div
        class="btn btn-default"
        ng-disabled="!newDossierStatut.etat_dossier || (newDossierStatut.etat_dossier=='raccorde' && !newDossierStatut.date_raccordement)"
        ng-click="pre_updateDossierStatut()"
      >
        Mettre à jour le statut des dossiers
      </div>
    </div>
  </div>
</div>
