<h2 mat-dialog-title>{{ softwareId ? 'Editar' : 'Crear' }} software</h2>
<mat-dialog-content class="form-container">
  <form [formGroup]="formGroup" (ngSubmit)="onSubmit()" class="command-form">
    <mat-form-field appearance="fill" class="full-width">
      <mat-label>Nombre</mat-label>
      <input matInput formControlName="name" placeholder="Nombre del software" required>
    </mat-form-field>

    <mat-form-field appearance="fill" class="full-width">
      <mat-label>Descripción</mat-label>
      <input matInput formControlName="description" placeholder="Descripción del software">
    </mat-form-field>

    <mat-form-field appearance="fill" class="full-width">
      <mat-label>Tipo</mat-label>
      <mat-select formControlName="type">
        <mat-option value="application" i18n="@@organizationalUnitsOption">Aplicacion</mat-option>
        <mat-option value="operative-system" i18n="@@clientsOption">Sistema operativo</mat-option>
        <mat-option value="file" i18n="@@clientsOption">Fichero</mat-option>
      </mat-select>
    </mat-form-field>
  </form>
</mat-dialog-content>

<mat-dialog-actions class="action-container">
  <button class="ordinary-button" (click)="onCancel($event)">Cancelar</button>
  <button class="submit-button" (click)="onSubmit()" cdkFocusInitial>Guardar</button>
</mat-dialog-actions>