added notes.comments field
This commit is contained in:
@ -139,6 +139,10 @@
|
||||
[disabled]="!sampleForm.form.valid">
|
||||
Save sample
|
||||
</rb-icon-button>
|
||||
<rb-icon-button class="delete-sample" icon="delete" mode="danger" *ngIf="samples.length > 1"
|
||||
(click)="deleteConfirm(modalDeleteConfirm)">
|
||||
Delete samples
|
||||
</rb-icon-button>
|
||||
</div>
|
||||
<ng-template #generateSamples>
|
||||
<rb-form-input type="number" name="sample-count" label="number of samples" pattern="^\d+?$" required
|
||||
@ -285,15 +289,10 @@
|
||||
[disabled]="!cmForm.form.valid">
|
||||
Summary
|
||||
</rb-icon-button>
|
||||
<rb-icon-button class="delete-sample" icon="delete" mode="danger" *ngIf="mode !== 'new'"
|
||||
<rb-icon-button class="delete-sample" icon="delete" mode="danger" *ngIf="samples.length === 1"
|
||||
(click)="deleteConfirm(modalDeleteConfirm)">
|
||||
Delete sample
|
||||
</rb-icon-button>
|
||||
<ng-template #modalDeleteConfirm>
|
||||
<rb-alert alertTitle="Are you sure?" type="danger" okBtnLabel="Delete sample" cancelBtnLabel="Cancel">
|
||||
Do you really want to delete this sample?
|
||||
</rb-alert>
|
||||
</ng-template>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@ -322,3 +321,9 @@
|
||||
</rb-icon-button>
|
||||
</div>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #modalDeleteConfirm>
|
||||
<rb-alert alertTitle="Are you sure?" type="danger" [okBtnLabel]="'Delete sample' + (samples.length > 1 ? 's' : '')" cancelBtnLabel="Cancel">
|
||||
Do you really want to delete {{samples.length > 1 ? 'these samples' : 'this sample'}}?
|
||||
</rb-alert>
|
||||
</ng-template>
|
||||
|
Reference in New Issue
Block a user