<div class="d-flex justify-content-center">
  <div class="col-8">
    @if (metadataValue()) {
      <div>
        <h2 data-cy="metadataValueDetailsHeading"><span jhiTranslate="resilientApp.metadataValue.detail.title">Metadata Value</span></h2>

        <hr />

        <jhi-alert-error></jhi-alert-error>

        <jhi-alert></jhi-alert>

        <dl class="row-md jh-entity-details">
          <dt><span jhiTranslate="global.field.id">Código</span></dt>
          <dd>
            <span>{{ metadataValue()!.id }}</span>
          </dd>
          <dt>
            <span
              [ngbTooltip]="'resilientApp.metadataValue.help.metadataPropertyCode' | translate"
              jhiTranslate="resilientApp.metadataValue.metadataPropertyCode"
              >Metadata Property Code</span
            >
          </dt>
          <dd>
            <span>{{ metadataValue()!.metadataPropertyCode }}</span>
          </dd>
          <dt>
            <span
              [ngbTooltip]="'resilientApp.metadataValue.help.targetDomainKey' | translate"
              jhiTranslate="resilientApp.metadataValue.targetDomainKey"
              >Target Domain Key</span
            >
          </dt>
          <dd>
            <span>{{ metadataValue()!.targetDomainKey }}</span>
          </dd>
          <dt>
            <span
              [ngbTooltip]="'resilientApp.metadataValue.help.targetDomainId' | translate"
              jhiTranslate="resilientApp.metadataValue.targetDomainId"
              >Target Domain Id</span
            >
          </dt>
          <dd>
            <span>{{ metadataValue()!.targetDomainId }}</span>
          </dd>
          <dt>
            <span [ngbTooltip]="'resilientApp.metadataValue.help.value' | translate" jhiTranslate="resilientApp.metadataValue.value"
              >Value</span
            >
          </dt>
          <dd>
            <span>{{ metadataValue()!.value }}</span>
          </dd>
          <dt>
            <span [ngbTooltip]="'resilientApp.metadataValue.help.version' | translate" jhiTranslate="resilientApp.metadataValue.version"
              >Version</span
            >
          </dt>
          <dd>
            <span>{{ metadataValue()!.version }}</span>
          </dd>
        </dl>

        <button type="submit" (click)="previousState()" class="btn btn-info" data-cy="entityDetailsBackButton">
          <fa-icon icon="arrow-left"></fa-icon>&nbsp;<span jhiTranslate="entity.action.back">Voltar</span>
        </button>

        <button type="button" [routerLink]="['/metadata-value', metadataValue()!.id, 'edit']" class="btn btn-primary">
          <fa-icon icon="pencil-alt"></fa-icon>&nbsp;<span jhiTranslate="entity.action.edit">Editar</span>
        </button>
      </div>
    }
  </div>
</div>
