Files
alfresco-ng2-components/lib/content-services/search/components/search-number-range/search-number-range.component.html
Denys Vuika 3a51c27f66 [ADF-2189] new search facets (#3230)
* slider facet

* number range facet

* unit tests

* remove fdescribe

* remove old demo-only content

* remove old tests

* Support "include" and "field" values with app config

* exclude deprecated demo content from export checks
2018-04-25 17:45:14 +01:00

28 lines
1.0 KiB
HTML

<form [formGroup]="form" novalidate (ngSubmit)="apply(form.value, form.valid)">
<mat-form-field>
<input
matInput [formControl]="from" [errorStateMatcher]="matcher"
placeholder="{{ 'SEARCH.FILTER.RANGE.FROM' | translate }}">
<mat-error *ngIf="from.hasError('pattern')">Invalid format</mat-error>
<mat-error *ngIf="from.hasError('required')">Required value</mat-error>
</mat-form-field>
<mat-form-field >
<input
matInput [formControl]="to" [errorStateMatcher]="matcher"
placeholder="{{ 'SEARCH.FILTER.RANGE.TO' | translate }}">
<mat-error *ngIf="to.invalid">Invalid format</mat-error>
</mat-form-field>
<div>
<button mat-button color="primary" (click)="reset()">
{{ 'SEARCH.FILTER.ACTIONS.CLEAR' | translate }}
</button>
<button mat-button color="primary" type="submit" [disabled]="!form.valid">
{{ 'SEARCH.FILTER.ACTIONS.APPLY' | translate }}
</button>
</div>
</form>