2017-09-22 12:26:08 +02:00
|
|
|
<div *ngIf="isModalShown" [config]="{ show: true }" (onHidden)="onHidden()" bsModal #autoShownModal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
|
|
|
|
<div class="modal-dialog modal-md">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close pull-right" aria-label="Close" (click)="hideModal()">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
|
|
|
<h4 class="modal-title"> {{titleText}} </h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2018-01-04 16:56:22 +01:00
|
|
|
<div *ngIf="errorMessage" class="uk-alert-danger" uk-alert aria-hidden="true">{{ errorMessage }}</div>
|
2017-09-22 12:26:08 +02:00
|
|
|
<ng-content></ng-content>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<div class="confirmationModalButtons">
|
|
|
|
<a (click)="hideModal()" class="btn"><i></i> Cancel </a>
|
2018-02-06 12:06:43 +01:00
|
|
|
<a *ngIf="formGroup" (click)="saveCustom(formGroup.value)" class="btn btn-success"><i></i> {{saveText}} </a>
|
|
|
|
<a *ngIf="!formGroup" (click)="saveCustom(null)" class="btn btn-success"><i></i> {{saveText}} </a>
|
2017-09-22 12:26:08 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-12-13 12:15:19 +01:00
|
|
|
</div>
|