<div class="d-flex justify-content-center">
  <div class="col-8">
    @if (inputDataUploadLog()) {
      <div>
        <h2 data-cy="inputDataUploadLogDetailsHeading">
          <span jhiTranslate="resilientApp.inputDataUploadLog.detail.title">Input Data Upload Log</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>{{ inputDataUploadLog()!.id }}</span>
          </dd>
          <dt>
            <span
              [ngbTooltip]="'resilientApp.inputDataUploadLog.help.logMessage' | translate"
              jhiTranslate="resilientApp.inputDataUploadLog.logMessage"
              >Log Message</span
            >
          </dt>
          <dd>
            <span>{{ inputDataUploadLog()!.logMessage }}</span>
          </dd>
          <dt>
            <span
              [ngbTooltip]="'resilientApp.inputDataUploadLog.help.creationDate' | translate"
              jhiTranslate="resilientApp.inputDataUploadLog.creationDate"
              >Creation Date</span
            >
          </dt>
          <dd>
            <span>{{ inputDataUploadLog()!.creationDate | formatMediumDatetime }}</span>
          </dd>
          <dt>
            <span
              [ngbTooltip]="'resilientApp.inputDataUploadLog.help.creationUsername' | translate"
              jhiTranslate="resilientApp.inputDataUploadLog.creationUsername"
              >Creation Username</span
            >
          </dt>
          <dd>
            <span>{{ inputDataUploadLog()!.creationUsername }}</span>
          </dd>
          <dt>
            <span
              [ngbTooltip]="'resilientApp.inputDataUploadLog.help.version' | translate"
              jhiTranslate="resilientApp.inputDataUploadLog.version"
              >Version</span
            >
          </dt>
          <dd>
            <span>{{ inputDataUploadLog()!.version }}</span>
          </dd>
          <dt><span jhiTranslate="resilientApp.inputDataUploadLog.inputDataUpload">Input Data Upload</span></dt>
          <dd>
            @if (inputDataUploadLog()!.inputDataUpload) {
              <div>
                <a [routerLink]="['/input-data-upload', inputDataUploadLog()!.inputDataUpload?.id, 'view']">{{
                  inputDataUploadLog()!.inputDataUpload?.title
                }}</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>

        <button type="button" [routerLink]="['/input-data-upload-log', inputDataUploadLog()!.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>
