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

Account Details

{{ 'labels.inputs.Username' | translate }} person @if (userForm.controls.username.hasError('required')) { {{ 'labels.inputs.Username' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }} } {{ 'labels.inputs.First Name' | translate }} badge @if (userForm.controls.firstname.hasError('pattern')) { {{ 'labels.inputs.First Name' | translate }} {{ 'labels.commons.cannot begin with a special character or number' | translate }} } @if (userForm.controls.firstname.hasError('required')) { {{ 'labels.inputs.First Name' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }} } {{ 'labels.inputs.Last Name' | translate }} person_outline @if (userForm.controls.lastname.hasError('pattern')) { {{ 'labels.inputs.Last Name' | translate }} {{ 'labels.commons.cannot begin with a special character or number' | translate }} } @if (userForm.controls.lastname.hasError('required')) { {{ 'labels.inputs.Last Name' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }} } {{ 'labels.inputs.Email' | translate }} email @if (userForm.controls.email.hasError('email') || userForm.controls.email.hasError('pattern')) { {{ '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 }} } Mobile Number phone_android +91 @if (userForm.controls.mobileNo.hasError('required')) { Mobile number {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }} } @if (userForm.controls.mobileNo.hasError('pattern')) { Enter a valid 10-digit mobile number }
Email Mobile @if (userForm.controls.otpDeliveryMethod.hasError('required')) { Choose how this user will receive their first-login OTP. }

Security

{{ 'labels.inputs.Password never expires' | translate }} {{ 'labels.inputs.Send password to email address' | translate }}
@if (!userForm.controls.sendPasswordToEmail.value) { {{ 'labels.inputs.Password' | translate }} @if (userForm.controls.password.hasError('required')) { {{ 'labels.inputs.Password' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }} } @if (userForm.controls.password.hasError('minlength')) { {{ 'labels.commons.Password should be at least' | translate }} {{ 'labels.commons.12 characters long' | translate }} } @if (userForm.controls.password.hasError('maxlength')) { {{ 'labels.commons.Password should not be more than' | translate }} {{ 'labels.commons.50 characters long' | translate }} } @if ( userForm.controls.password.hasError('pattern') && !(userForm.controls.password.hasError('minlength') || userForm.controls.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.controls.repeatPassword.hasError('required')) { {{ 'labels.inputs.Password' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }} } } @if ( userForm.errors?.passwordsDoNotMatch && !userForm.controls.password.hasError('required') && !userForm.controls.repeatPassword.hasError('required') ) {

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

}

Assignment

{{ 'labels.inputs.Office' | translate }} business @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 }} work @for (staff of staffData; track staff) { {{ staff.displayName }} } {{ 'labels.inputs.Roles' | translate }} verified_user @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 }}