{{ 'labels.inputs.Username' | translate }} @if (userForm.controls.username.hasError('required')) { {{ 'labels.inputs.Username' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }} } {{ 'labels.inputs.Email' | translate }} @if (userForm.controls.email.hasError('email')) { {{ 'labels.inputs.Email' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.invalid' | translate }} } @if (userForm.controls.email.hasError('required')) { {{ 'labels.inputs.Email' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }} } {{ 'labels.inputs.First Name' | translate }} {{ 'labels.inputs.Last Name' | translate }} {{ 'labels.inputs.Language' | translate }} @for (lang of languageCodes; track lang) { {{ 'languages.' + lang.key | translate }} } {{ 'labels.inputs.Gender' | translate }} {{ 'labels.catalogs.male' | translate }} {{ 'labels.catalogs.female' | translate }} {{ 'labels.catalogs.other' | translate }}
{{ 'labels.inputs.Code' | translate }} @for (country of countryCodes; track country) { {{ 'countries.' + country.key | translate }} ({{ country.code }}) } {{ 'labels.inputs.Phone Number' | translate }}
{{ 'labels.inputs.Office' | translate }} @for (office of officesData; track office) { {{ office.name }} } @if (userForm.controls.officeId.hasError('required')) { {{ 'labels.inputs.Office' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }} } {{ 'labels.inputs.Staff' | translate }} @for (staff of staffData; track staff) { {{ staff.displayName }} } {{ 'labels.inputs.Password' | translate }} @if (userForm.get('password')?.hasError('required')) { {{ 'labels.inputs.Password' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }} } @if (userForm.get('password')?.hasError('minlength')) { {{ 'labels.commons.Password should be at least' | translate }} {{ 'labels.commons.12 characters long' | translate }} } @if (userForm.get('password')?.hasError('maxlength')) { {{ 'labels.commons.Password should not be more than' | translate }} {{ 'labels.commons.50 characters long' | translate }} } @if ( userForm.get('password')?.hasError('pattern') && !userForm.get('password')?.hasError('minlength') && !userForm.get('password')?.hasError('maxlength') ) { {{ 'labels.commons.Password should include a' | translate }} {{ 'labels.commons.numeral' | translate }} {{ 'labels.commons.and at' | translate }} {{ 'labels.commons.least one uppercase' | translate }}, {{ 'labels.commons.lowercase and special character' | translate }} } {{ 'labels.inputs.Repeat Password' | translate }} @if (userForm.get('repeatPassword')?.hasError('required')) { {{ 'labels.inputs.Password' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }} } @if ( userForm.errors?.passwordsDoNotMatch && !userForm.get('password')?.hasError('required') && !userForm.get('repeatPassword')?.hasError('required') ) {

{{ 'labels.inputs.Passwords' | translate }} {{ 'labels.commons.do not match' | translate }}

} {{ 'labels.inputs.Roles' | translate }} @for (role of rolesData; track role) { {{ role.name }} } @if (userForm.controls.roles.hasError('required')) { {{ 'labels.commons.At least one role' | translate }} {{ 'labels.commons.must be selected' | translate }} }

{{ 'labels.heading.Create User' | translate }}

{{ 'labels.text.Filling Details' | translate }}: {{ 'labels.inputs.Users' | translate }}