<div class="documentsSousParties" ng-if="!mobile">
  <div class="documentsSousPartie">
    <div class="row spbrow">
      <div class="buttonPlaceholderDocuments"></div>
      <div class="col-xs-12">
        <h4>Documents types</h4>
      </div>
    </div>
    <div class="row">
      <div class="col-xs-12">
        <div
          ng-repeat="item in dossierCfg.templates"
          class="documentTypeItem"
          title="{{item.fileExists === false?'Fichier indisponible':''}}"
        >
          <div
            ng-class="item.fileExists === false?'title fileDoesntExist':'title'"
          >
            {{item.label}}
          </div>
          <div class="desc" ng-if="item.detail!=''">
            <p>{{ item.detail }}</p>
          </div>
          <div
            ng-click="getDocxDossier(item.fichier)"
            ng-disabled="item.fileExists === false"
            class="btn btn-default visibleTournee"
            title="Télécharger"
          >
            <i class="fa fa-print"></i>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="documentsSousPartie">
    <div class="row spbrow">
      <div class="col-xs-12">
        <h4>
          <span>Documents joints</span>
          <button
            type="button"
            title="Envoyer"
            class="btn btn-default btn-xs"
            ng-disabled="documentsCheckedForMail.length === 0"
            ng-click="prepareDocumentsForMail()"
          >
            <i class="fa fa-envelope"></i>{{documentsCheckedForMail.length > 0?'
            (' + documentsCheckedForMail.length + ')':''}}
          </button>
        </h4>
      </div>
    </div>
    <div class="row">
      <div class="col-xs-12">
        <div ng-model="documentLiesTousTabs.activeTab" bs-tabs>
          <div
            ng-repeat="tab in documentLiesTousTabs track by $index"
            title="{{tab.title}}"
            bs-pane
          >
            <ng-include src="tab.content" />
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<div class="documentsSousParties" ng-if="mobile">
  <div class="documentsSousPartie">
    <div class="row spbrow">
      <div class="col-xs-12">
        <h4>Documents joints</h4>
      </div>
    </div>
    <div class="row">
      <div class="col-xs-12">
        <div
          gc-featureattachment
          dossier="currentReport"
          feature="dossierAttachmentData"
        ></div>
      </div>
    </div>
  </div>
</div>
