<app-common-dialog [dialogContent]="dialogContent" [dialogRef]="dialogRef">
  <ng-template #dialogContent>
    <p i18n>Select and send a notification related to this invoice.</p>
    <form [formGroup]="sendNotificationForm">
      <mat-form-field appFlex="100">
        <mat-label i18n>Notification</mat-label>
        <mat-select formControlName="templateId" placeholder="Notification" i18n-placeholder>
          <mat-option *ngFor="let template of templates" [value]="template.id">
            {{template.title}} ({{template.name}})
          </mat-option>
        </mat-select>
      </mat-form-field>
    </form>
  </ng-template>
</app-common-dialog>
