<app-common-dialog [dialogContent]="dialogContent" [dialogRef]="dialogRef">
  <ng-template #dialogContent>
    <form [formGroup]="snapshotForm">
      <app-form-errors #formErrors [formGroup]="snapshotForm"></app-form-errors>
      <mat-form-field class="full-width">
        <mat-label i18n>New state</mat-label>
        <mat-select placeholder="New state" i18n-placeholder formControlName="status" required>
          <mat-option value="available" i18n>Available</mat-option>
          <mat-option value="error" i18n>Error</mat-option>
        </mat-select>
        <mat-error i18n>{{backendErrors['state'] | fieldRequired }}</mat-error>
      </mat-form-field>
    </form>
  </ng-template>
</app-common-dialog>
