mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
* 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
28 lines
1.0 KiB
HTML
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>
|