<div
  ng-controller="AVICtrl"
  class="wrapper"
  anc-bac-controle-common-logic
  apptype="bac"
>
  <controle-form-cfg
    type="currentControle.properties.type"
    ng-if="!ctrl_clos"
    form-data="cdata"
    validation="ctrlCfgValid.values"
  ></controle-form-cfg>
  <div class="mainFormTitle">
    <span ng-bind="title"> </span>
  </div>

  <div class="mainFormSubTitle condensedInfos">
    <div class="row">
      <div class="col-xs-4">
        <label data-for="cdata.datesDossier.date_depot"> Date de dépot </label>
      </div>
      <div class="col-xs-8">
        <div
          javautildate
          model-date-format="'no_hours'"
          gcatt="{name:'date_depot'}"
          result="cdata.datesDossier"
          ng-init="cdata.datesDossier.date_depot = cdata.datesDossier.date_depot ? cdata.datesDossier.date_depot : {}"
          data-ng-model="cdata.datesDossier.date_depot"
          data-type="date"
          field-data="{disabled:ctrl_clos}"
        ></div>
      </div>
    </div>
    <div class="row">
      <div class="col-xs-4">
        <label data-for="cdata.datesDossier.date_reception">
          Date de réception
        </label>
      </div>
      <div class="col-xs-8">
        <div
          javautildate
          model-date-format="'no_hours'"
          gcatt="{name:'date_reception'}"
          result="cdata.datesDossier"
          ng-init="cdata.datesDossier.date_reception = cdata.datesDossier.date_reception ? cdata.datesDossier.date_reception : {}"
          data-ng-model="cdata.datesDossier.date_reception"
          data-type="date"
          field-data="{disabled:ctrl_clos}"
        ></div>
      </div>
    </div>
    <div class="row">
      <div class="col-xs-4">
        <label data-for="cdata.informations_generales.objet"> Objet </label>
      </div>
      <div class="col-xs-8">
        <input
          type="text"
          class="form-control"
          ng-model="cdata.informations_generales.objet"
          ng-disabled="ctrl_clos"
        />
      </div>
    </div>
  </div>
  <anc-bac-extra-form-fields
    apptype="'bac'"
    cdata="cdata"
    current-controle="currentControle"
    ctrl-clos="ctrl_clos"
  ></anc-bac-extra-form-fields>

  <div
    class="panel-group"
    data-allow-multiple="true"
    data-start-collapsed="true"
    bs-collapse
  >
    <div class="panel panel-info ">
      <div class="panel-heading">
        <a bs-collapse-toggle> Informations générales </a>
      </div>
      <div class="panel-collapse" bs-collapse-target>
        <div class="panel-body">
          <ng-include
            src="'js/XG/widgets/bacapp/main/views/controle/AVI/informations_generales.html'"
          />
        </div>
      </div>
    </div>
    <div class="panel panel-info">
      <div class="panel-heading">
        <a bs-collapse-toggle> Données du dossier </a>
      </div>
      <div class="panel-collapse" bs-collapse-target>
        <div class="panel-body">
          <ng-include
            src="'js/XG/widgets/bacapp/main/views/controle/AVI/donnees_dossier.html'"
          />
        </div>
      </div>
    </div>
    <div class="panel panel-info">
      <div class="panel-heading">
        <a bs-collapse-toggle> Avis </a>
      </div>
      <div class="panel-collapse" bs-collapse-target>
        <div class="panel-body">
          <ng-include
            src="'js/XG/widgets/bacapp/main/views/controle/AVI/avis_tech.html'"
          />
        </div>
      </div>
    </div>
  </div>
</div>
