Files
maptology/web-angular/src/app/widgets/name-field.component.html
T
Marcus Handte ca6ce85dd1
LocationBasedServices/maptology/master There was a failure building this commit
Switch build system to gradle.
Update wildfly to latest version.
Update android project to latest version.
Add support for Java 11.
2019-07-22 12:36:04 +02:00

10 lines
788 B
HTML

<mat-form-field [hintLabel]="res.strings('name_field_hint')" fxFlex="1 1 100%" use-parent-form>
<input matInput #nameField="ngModel" maxlength="64" name="name" [placeholder]="res.strings('name_field_placeholder')" [(ngModel)]="name" pattern="([A-Za-z]|[\u00C0-\u00FF]| ){0,64}" required [disabled]="disabled">
<mat-hint align="end">{{nameField.value?.length || 0}}/64</mat-hint>
<mat-error *ngIf="nameField.invalid">
<ng-container [ngSwitch]="encode(nameField.errors)">
<ng-container *ngSwitchCase="FormErrorCode.REQUIRED">{{ res.strings('name_field_required') }}</ng-container>
<ng-container *ngSwitchCase="FormErrorCode.PATTERN">{{ res.strings('name_field_pattern') }}</ng-container>
</ng-container>
</mat-error>
</mat-form-field>