Ontica/Empiria.Land.Intranet

View on GitHub
src/app/views/registration/registry-entry/registry-entry-editor.component.html

Summary

Maintainability
Test Coverage
<div [style.height.%]="100"
  [class.card-floating-container-gt-md]="cardFloatingEffect">

  <emp-ng-card
    [title]="cardTitle"
    [hint]="data.title"
    [class.card-floating-secondary-gt-md]="cardFloatingEffect"
    (cardClose)="onClose()">

    <mat-tab-group mat-stretch-tabs="false" (selectedTabChange)="onSelectedTabChange($event)">

      <mat-tab label="Acto Jurídico" *ngIf="displayRecordingAct">

        <emp-land-recording-act-edition
          [instrumentRecordingUID]="data.instrumentRecordingUID"
          [recordingActUID]="data.recordingActUID"
          [readonly]="!data.actions.can.editRecordableSubject"
          [displayFlat]="true"
          (recordingActEditionEventType)="onRecordingActEditionEventType($event)">

        </emp-land-recording-act-edition>

      </mat-tab>

      <mat-tab [label]="tabEditorLabel">

        <emp-land-recordable-subject-editor *ngIf="displayRecordableSubjectEditor"
          [instrumentRecordingUID]="data.instrumentRecordingUID"
          [recordingActUID]="data.recordingActUID"
          [recordableSubject]="tractIndex.recordableSubject"
          [readonly]="!data.actions.can.editRecordableSubject"
          [isLoading]="isLoading"
          (recordableSubjectEditorEvent)="onRecordableSubjectEditorEvent($event)">

        </emp-land-recordable-subject-editor>

      </mat-tab>

      <mat-tab label="Estructura" disabled *ngIf="isRealEstate">

      </mat-tab>

      <mat-tab label="Historia registral">

        <emp-land-recordable-subject-history
          [tractIndex]="tractIndex"
          [recordingActUID]="displayRecordingAct ? data.recordingActUID : null"
          [isLoading]="isLoading"
          (recordableSubjectHistoryEvent)="onRecordableSubjectHistoryEvent($event)">

        </emp-land-recordable-subject-history>

      </mat-tab>

    </mat-tab-group>

  </emp-ng-card>

</div>