2017-12-19 08:31:02 +01:00
|
|
|
<div class="dmp-criteria">
|
2017-12-14 18:13:28 +01:00
|
|
|
<mat-card class="mat-card">
|
|
|
|
<div class="row">
|
2017-12-19 08:31:02 +01:00
|
|
|
<div class="col-md-6">
|
2017-12-14 18:13:28 +01:00
|
|
|
<mat-form-field>
|
2017-12-19 08:31:02 +01:00
|
|
|
<input matInput placeholder=" {{'CRITERIA.DMP.LIKE'| translate}}" name="projectCriteriaLike" [(ngModel)]="criteria.like"
|
|
|
|
(ngModelChange)="controlModified()">
|
|
|
|
<mat-error *ngIf="baseErrorModel?.like">{{baseErrorModel['Criteria.like']}}</mat-error>
|
2017-12-14 18:13:28 +01:00
|
|
|
</mat-form-field>
|
|
|
|
</div>
|
2017-12-19 08:31:02 +01:00
|
|
|
<div class="col-md-6">
|
|
|
|
<td-chips color="accent" [items]="filteredProjects" [(ngModel)]="criteria.projects" placeholder="{{'CRITERIA.DMP.PROJECTS' | translate}}"
|
|
|
|
(inputChange)="filterProjects($event)" requireMatch>
|
|
|
|
<ng-template td-chip let-chip="chip">
|
|
|
|
<div class="tc-grey-100 bgc-teal-700" td-chip-avatar>{{chip.name.substring(0, 1).toUpperCase()}}</div>
|
|
|
|
{{chip.name}}
|
|
|
|
</ng-template>
|
|
|
|
<ng-template td-autocomplete-option let-option="option">
|
|
|
|
<div layout="row" layout-align="start center">
|
|
|
|
{{option.name}}
|
|
|
|
</div>
|
|
|
|
</ng-template>
|
|
|
|
<mat-progress-bar [style.height.px]="2" *ngIf="filteringProjectsAsync" mode="indeterminate"></mat-progress-bar>
|
|
|
|
</td-chips>
|
2017-12-14 18:13:28 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</mat-card>
|
2017-12-19 08:31:02 +01:00
|
|
|
</div>
|