<div class="ancPersonne">
  <div
    ng-if="allowContract"
    ng-class="{'editable' : editable, 'contractable':allowContract,'contracted':contracted}"
  >
    <div class="col-xs-12" ng-if="editable">
      <div
        class="btn btn-info pull-right savebtn_anc_personne"
        ng-class="{'setNone': contracted }"
        ng-click="savePerson()"
      >
        <i class="fa fa-save"></i> Mettre à jour les informations de cette
        personne
      </div>
    </div>
    <!-- {'btn-default':!showFullPersonne[$index],'btn-info':showFullPersonne[$index]} -->
    <ng-include src="personneTabs[0].content"></ng-include>
  </div>
  <div
    ng-if="!allowContract"
    ng-class="{'contractable':allowContract,'contracted':contracted}"
  >
    <div ng-model="personneTabs.activeTab" bs-tabs>
      <div
        ng-repeat="tab in personneTabs"
        title="{{tab.title|translate}}"
        bs-pane
      >
        <ng-include src="tab.content" />
      </div>
    </div>
    <div class="row" ng-if="!propertiesDossier.id_point_conso_omega">
      <div class="col-xs-12">
        <hr />
        <div
          class="btn btn-default pull-right"
          ng-disabled="!canSavePersonNoOmega()"
          ng-click="savePerson()"
        >
          <i class="fa fa-save"></i>
          <translate>common.save</translate>
        </div>
      </div>
    </div>

    <div class="row" ng-if="propertiesDossier.id_point_conso_omega">
      <div class="col-xs-12">
        <hr />
        <div
          class="btn btn-default pull-right"
          ng-disabled="!personne.properties.nom || (dateDebutObligatoire && infoProp.properties.debut == null) "
          ng-click="savePerson()"
        >
          <i class="fa fa-save"></i>
          <translate>common.save</translate>
        </div>
      </div>
    </div>
  </div>
</div>
