<!-- GUIPropertiesViewAndSortCustomizer -->
<div class="d-flex justify-content-center">
  <div class="col-8">
    @if (unitType()) {
      <div>
        <h2 data-cy="unitTypeDetailsHeading"><span jhiTranslate="resilientApp.unitType.detail.title">Unit Type</span></h2>

        <hr />

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

        <jhi-alert></jhi-alert>

        <dl class="row-md jh-entity-details">
          <dt><span jhiTranslate="resilientApp.unitType.name">Name</span></dt>
          <dd>
            <span>{{ unitType()!.name }}</span>
          </dd>
          <dt><span jhiTranslate="resilientApp.unitType.description">Description</span></dt>
          <dd>
            <span>{{ unitType()!.description }}</span>
          </dd>
          <dt><span jhiTranslate="resilientApp.unitType.valueType">Value Type</span></dt>
          <dd>
            <span [jhiTranslate]="'resilientApp.UnitValueType.' + (unitType()!.valueType ?? 'null')">{{
              { null: '', DECIMAL: 'DECIMAL', BOOLEAN: 'BOOLEAN', STRING: 'STRING' }[unitType()!.valueType ?? 'null']
            }}</span>
          </dd>

<!-- HIDDEN Properties 
          <dt><span jhiTranslate="global.field.id">Código</span></dt>
          <dd>
            <span>{{ unitType()!.id }}</span>
          </dd>
          <dt>
            <span [ngbTooltip]="'resilientApp.unitType.help.version' | translate" jhiTranslate="resilientApp.unitType.version"
              >Version</span
            >
          </dt>
          <dd>
            <span>{{ unitType()!.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]="['/unit-type', unitType()!.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>
