<div class="d-flex justify-content-center">
  <div class="col-8">
    @if (outputData()) {
      <div>
        <h2 data-cy="outputDataDetailsHeading"><span jhiTranslate="resilientApp.outputData.detail.title">Output Data</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>{{ outputData()!.id }}</span>
          </dd>
          <dt>
            <span [ngbTooltip]="'resilientApp.outputData.help.value' | translate" jhiTranslate="resilientApp.outputData.value">Value</span>
          </dt>
          <dd>
            <span>{{ outputData()!.value }}</span>
          </dd>
          <dt>
            <span [ngbTooltip]="'resilientApp.outputData.help.version' | translate" jhiTranslate="resilientApp.outputData.version"
              >Version</span
            >
          </dt>
          <dd>
            <span>{{ outputData()!.version }}</span>
          </dd>
          <dt><span jhiTranslate="resilientApp.outputData.variable">Variable</span></dt>
          <dd>
            @if (outputData()!.variable) {
              <div>
                <a [routerLink]="['/variable', outputData()!.variable?.id, 'view']">{{ outputData()!.variable?.name }}</a>
              </div>
            }
          </dd>
          <dt><span jhiTranslate="resilientApp.outputData.period">Period</span></dt>
          <dd>
            @if (outputData()!.period) {
              <div>
                <a [routerLink]="['/period', outputData()!.period?.id, 'view']">{{ outputData()!.period?.name }}</a>
              </div>
            }
          </dd>
          <dt><span jhiTranslate="resilientApp.outputData.periodVersion">Period Version</span></dt>
          <dd>
            @if (outputData()!.periodVersion) {
              <div>
                <a [routerLink]="['/period-version', outputData()!.periodVersion?.id, 'view']">{{ outputData()!.periodVersion?.name }}</a>
              </div>
            }
          </dd>
          <dt><span jhiTranslate="resilientApp.outputData.baseUnit">Base Unit</span></dt>
          <dd>
            @if (outputData()!.baseUnit) {
              <div>
                <a [routerLink]="['/unit', outputData()!.baseUnit?.id, 'view']">{{ outputData()!.baseUnit?.name }}</a>
              </div>
            }
          </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>
      </div>
    }
  </div>
</div>
