@if (organizationType) {
  <form name="deleteForm" (ngSubmit)="confirmDelete(organizationType.id!)">
    <div class="modal-header">
      <h4 class="modal-title" data-cy="organizationTypeDeleteDialogHeading" jhiTranslate="entity.delete.title">Confirme a eliminação</h4>
    </div>

    <div class="modal-body">
      <jhi-alert-error></jhi-alert-error>
      <p
        id="jhi-delete-organizationType-heading"
        jhiTranslate="resilientApp.organizationType.delete.question"
        [translateValues]="{ id: organizationType.id }"
      >
        Tem a certeza que pretende eliminar o(a) Organization Type {{ organizationType.id }}?
      </p>
    </div>

    <div class="modal-footer">
      <button type="button" class="btn btn-secondary" data-dismiss="modal" (click)="cancel()">
        <fa-icon icon="ban"></fa-icon>&nbsp;<span jhiTranslate="entity.action.cancel">Cancelar</span>
      </button>

      <button id="jhi-confirm-delete-organizationType" data-cy="entityConfirmDeleteButton" type="submit" class="btn btn-danger">
        <fa-icon icon="times"></fa-icon>&nbsp;<span jhiTranslate="entity.action.delete">Eliminar</span>
      </button>
    </div>
  </form>
}
