<div class="d-flex justify-content-center">
  <div class="col-8">
    @if (variableScope()) {
      <div>
        <h2 data-cy="variableScopeDetailsHeading"><span jhiTranslate="resilientApp.variableScope.detail.title">Variable Scope</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>{{ variableScope()!.id }}</span>
          </dd>
          <dt>
            <span [ngbTooltip]="'resilientApp.variableScope.help.code' | translate" jhiTranslate="resilientApp.variableScope.code"
              >Code</span
            >
          </dt>
          <dd>
            <span>{{ variableScope()!.code }}</span>
          </dd>
          <dt>
            <span [ngbTooltip]="'resilientApp.variableScope.help.name' | translate" jhiTranslate="resilientApp.variableScope.name"
              >Name</span
            >
          </dt>
          <dd>
            <span>{{ variableScope()!.name }}</span>
          </dd>
          <dt>
            <span
              [ngbTooltip]="'resilientApp.variableScope.help.description' | translate"
              jhiTranslate="resilientApp.variableScope.description"
              >Description</span
            >
          </dt>
          <dd>
            <span>{{ variableScope()!.description }}</span>
          </dd>
          <dt>
            <span [ngbTooltip]="'resilientApp.variableScope.help.version' | translate" jhiTranslate="resilientApp.variableScope.version"
              >Version</span
            >
          </dt>
          <dd>
            <span>{{ variableScope()!.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]="['/variable-scope', variableScope()!.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>
