<div class="row spbrow">
  <div class="col-xs-2">
    <div class="row">
      <div class="col-xs-12">
        <h4>Documents types</h4>
      </div>

      <div class="col-xs-12">
        <form class="form-inline">
          <div class="form-group">
            <input
              type="text"
              class="form-control"
              ng-model="searchText.label"
              placeholder="filtrer"
            />
          </div>
          <br /><br />
        </form>
      </div>

      <div class="col-xs-12 mails_documents">
        <div
          class="checkbox"
          ng-repeat="item in listTemplates | filter: searchText:strict"
          title="{{item.fileExists === false?'Fichier indisponible':''}}"
        >
          <label ng-class="item.fileExists === false?'fileDoesntExist':''">
            <input
              type="checkbox"
              ng-model="checkboxSelected[item.fichier]"
              ng-true-value="'1'"
              ng-disabled="item.fileExists === false"
            />
            {{ item.label }}<br />
            <small><i>{{ item.detail }}</i></small>
          </label>
          <label class="control-label"> </label>
        </div>
      </div>

      <div class="col-xs-12 text-center">
        <hr />

        <button
          type="button"
          class="btn btn-primary pull-right"
          ng-disabled="!canGenerate()"
          ng-click="getDocumentsZip()"
        >
          Générer les documents<br />
          et télécharger une archive docx
        </button>
      </div>
    </div>
  </div>
  <div class="col-xs-10" style="padding-left: 20px;">
    <div class="row">
      <div class="col-xs-12">
        <div
          class="btn btn-sm btn-default pull-right"
          style="margin-top: 21px;"
          ng-click="toggleAdvancedFilters()"
        >
          Filtres avancés
        </div>
        <h4>Dossiers</h4>
      </div>
      <div class="col-xs-12" ng-show="showAdvanced">
        <div
          res="advancedFiltersResult.res"
          place="'widget'"
          ftid="filtertfuid"
          fti="filterfti.data"
          restrict-ftids="restrictFtids"
          elastic-filter
        ></div>
      </div>
      <div class="col-xs-12">
        <div
          id="bacListeDossiers"
          class="ancBacListeDossiers"
          fti="dossierFti"
          attributes="dossierAttributes"
          where="listeDossiersWhere"
          res="selected.dossiers"
          datawebservice="getReports(params)"
          height="450px"
          table-fill-page="true"
          rendu-title-colonne="renduTitleColonneDossier"
          rendu-colonnes="renduColonnesEtatDossier"
          rendu-filters="filterRender"
          date-format="'dd-MM-yyyy'"
          display-total-number="true"
          no-default-action="true"
          hide-act-label="true"
          tooltip="tooltipTitle"
          gcdata-datatable
        ></div>
      </div>
    </div>
  </div>
</div>
