<!-- GUIPropertiesViewAndSortCustomizer -->
<div class="d-flex justify-content-center">
  <div class="col-8">
    @if (variableCategory()) {
      <div>
        <h2 data-cy="variableCategoryDetailsHeading">
          <span jhiTranslate="resilientApp.variableCategory.detail.title">Variable Category</span>
        </h2>

        <hr />

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

        <jhi-alert></jhi-alert>

        <dl class="row-md jh-entity-details">
          <dt><span jhiTranslate="resilientApp.variableCategory.variableScope">Variable Scope</span></dt>
          <dd>
            @if (variableCategory()!.variableScope) {
              <div>
                <a [routerLink]="['/variable-scope', variableCategory()!.variableScope?.id, 'view']">{{
                  variableCategory()!.variableScope?.name
                }}</a>
              </div>
            }
          </dd>
          <dt>
            <span [ngbTooltip]="'resilientApp.variableCategory.help.code' | translate" jhiTranslate="resilientApp.variableCategory.code"
              >Code</span
            >
          </dt>
          <dd>
            <span>{{ variableCategory()!.code }}</span>
          </dd>
          <dt>
            <span [ngbTooltip]="'resilientApp.variableCategory.help.name' | translate" jhiTranslate="resilientApp.variableCategory.name"
              >Name</span
            >
          </dt>
          <dd>
            <span>{{ variableCategory()!.name }}</span>
          </dd>
          <dt>
            <span
              [ngbTooltip]="'resilientApp.variableCategory.help.description' | translate"
              jhiTranslate="resilientApp.variableCategory.description"
              >Description</span
            >
          </dt>
          <dd>
            <span>{{ variableCategory()!.description }}</span>
          </dd>
          <dt><span jhiTranslate="resilientApp.variableCategory.hiddenForData">Hidden for Data ?</span></dt>
          <dd>
            <span>{{ variableCategory()!.hiddenForData }}</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]="['/variable-category', variableCategory()!.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>
