<cds-modal size="sm"
           [open]="open"
           (overlaySelected)="closeModal()">
  <cds-modal-header (closeSelect)="closeModal()">
    <h3 cdsModalHeaderHeading
        i18n>{{ titleText }}</h3>
  </cds-modal-header>
  <section cdsModalContent>
    <form name="confirmationForm"
          #formDir="ngForm"
          [formGroup]="confirmationForm"
          novalidate>
      <ng-container *ngTemplateOutlet="bodyTpl; context: bodyContext"></ng-container>
      <p *ngIf="description">
        {{description}}
      </p>
    </form>
  </section>

  <cd-form-button-panel (submitActionEvent)="onSubmit(confirmationForm.value)"
                        [form]="confirmationForm"
                        [submitText]="buttonText"
                        [cancelText]="cancelText"
                        [showCancel]="showCancel"
                        [showSubmit]="showSubmit"
                        [submitBtnType]="submitBtnType"
                        [modalForm]="true"></cd-form-button-panel>

</cds-modal>
