<div class="row justify-content-center">
  <div class="col-8">
    <div *ngIf="factura">
      <h2 data-cy="facturaDetailsHeading"><span jhiTranslate="dataSurveyApp.factura.detail.title">Factura</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">ID</span></dt>
        <dd>
          <span>{{ factura.id }}</span>
        </dd>
        <dt><span jhiTranslate="dataSurveyApp.factura.nombreUsuario">Nombre Usuario</span></dt>
        <dd>
          <span>{{ factura.nombreUsuario }}</span>
        </dd>
        <dt><span jhiTranslate="dataSurveyApp.factura.nombrePlantilla">Nombre Plantilla</span></dt>
        <dd>
          <span>{{ factura.nombrePlantilla }}</span>
        </dd>
        <dt><span jhiTranslate="dataSurveyApp.factura.costo">Costo</span></dt>
        <dd>
          <span>{{ factura.costo }}</span>
        </dd>
        <dt><span jhiTranslate="dataSurveyApp.factura.fecha">Fecha</span></dt>
        <dd>
          <span>{{ factura.fecha | formatMediumDatetime }}</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">Back</span>
      </button>

      <button type="button" [routerLink]="['/factura', factura.id, 'edit']" class="btn btn-primary">
        <fa-icon icon="pencil-alt"></fa-icon>&nbsp;<span jhiTranslate="entity.action.edit">Edit</span>
      </button>
    </div>
  </div>
</div>
