<div class="ancBacReportForm">
  <h3 class="modalTitle" bind-html-compile="currentReportTitle"></h3>
  <div class="modalBody">
    <div class="reportBody">
      <!-- left side navigation -->
      <div
        class="reportTreeView"
      >
        <abn-tree
          tree-data="reportTree"
          tree-control="reportTreeControl"
          on-before-select="actionAvantChangementBranche(branch)"
          on-select="reportTree_handle(branch)"
          no-expand-on-label-click="true"
        >
        </abn-tree>
      </div>

      <!-- maincontent -->

      <div
        class="ancBacReportContent"
      >
        <div
          class="locked"
          ng-if="(tournee.concerne && !mobile) || (setLock.lock && !mobile)"
        >
          <div class="alert alert-warning" ng-if="tournee.concerne">
            Ce dossier est en cours de traitement dans une tournée. (agent :
            <b>{{tournee.par}}</b>).
          </div>
          <div
            class="alert alert-warning"
            ng-if="setLock.lock && !tournee.concerne"
          >
            Ce dossier est en cours de traitement par <b>{{setLock.user}}</b>.
          </div>
        </div>
        <div
          class="currentPage"
          ng-class="{'fullHeight':!currentBranch.isMainBranch}"
        >
          <div
            ng-include="currentBranch.template"
            ng-if="currentBranch.template"
          ></div>
        </div>
        <div class="ancBacReportActions" ng-show="currentBranch.isMainBranch">
          <div
            class="btn btn-success pull-{{ cfgandroid ? 'left' : 'right' }}"
            ng-click="saveReport()"
            ng-disabled="!validReport()"
          >
            <i class="fa fa-save"></i>
            <translate ng-if="!currentReport.id">common.save</translate>
            <translate ng-if="currentReport.id">common.update</translate>
          </div>

          <span class="text-danger missingInfo" ng-if="!validReport()">
            Les informations marquées d'une étoile rouge * sont requises
          </span>
        </div>
      </div>
    </div>
  </div>
</div>
