<form (ngSubmit)="onCancel()" #inputForm="ngForm">
  <h1 mat-dialog-title>{{ title }}</h1>
  <div mat-dialog-content>
    <section>
      {{ message }}
    </section>
  </div>
  <div mat-dialog-actions>
    <button mat-button type="submit" color="primary" [disabled]="!inputForm.form.valid">Cancel</button>
    <button mat-button type="button" (click)="onConfirm()">Continue</button>
  </div>
</form>
