|
@@ -24,96 +24,106 @@
|
|
<label for="file" class="iconUpload-w"><i class="fas fa-upload"></i></label>
|
|
<label for="file" class="iconUpload-w"><i class="fas fa-upload"></i></label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <div class="col-sm-12 col-md-12 col-lg-12">
|
|
|
|
+ <div class="row">
|
|
|
|
+
|
|
|
|
+ <fieldset class="formfieldset">
|
|
|
|
+ <legend>
|
|
|
|
+ <span>المعلومات شخصية</span>
|
|
|
|
+ </legend>
|
|
|
|
+
|
|
|
|
+ <div class="col-12 col-sm-12 col-md-6 col-lg-4">
|
|
|
|
+ <div class="form-group">
|
|
|
|
+ <label for="name" style="float:right">الأسم <span class="spanReqired-w">*</span></label>
|
|
|
|
+ <input type="text" id="name" placeholder="أدخل الاسم رباعي" class="form-control" formControlName="name" />
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="col-12 col-sm-12 col-md-6 col-lg-4">
|
|
|
|
- <div class="form-group">
|
|
|
|
- <label for="name" style="float:right">الأسم <span class="spanReqired-w">*</span></label>
|
|
|
|
- <input type="text" id="name" placeholder="أدخل الأسم رباعي" class="form-control" formControlName="name" />
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
- <div class="col-12 col-sm-12 col-md-6 col-lg-4">
|
|
|
|
- <div class="form-group">
|
|
|
|
- <label style="float:right">الجنسيه <span class="spanReqired-w">*</span></label>
|
|
|
|
- <select class="form-control" formControlName="nationality_id">
|
|
|
|
- <option *ngFor="let country of countries; let i = index" [value]="country.id">{{country.name}}</option>
|
|
|
|
- </select>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div class="col-12 col-sm-12 col-md-6 col-lg-4">
|
|
|
|
+ <div class="form-group">
|
|
|
|
+ <label style="float:right">الجنسية <span class="spanReqired-w">*</span></label>
|
|
|
|
+ <select class="form-control" formControlName="nationality_id">
|
|
|
|
+ <option *ngFor="let country of countries; let i = index" [value]="country.id">{{country.name}}</option>
|
|
|
|
+ </select>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="col-12 col-sm-12 col-md-6 col-lg-4">
|
|
|
|
- <div class="form-group">
|
|
|
|
- <label for="identity" style="float:right"> الهويه <span class="spanReqired-w">*</span></label>
|
|
|
|
- <select class="form-control select" id="identity" formControlName="identity_type_id" (change)="getSelectedOptionText($event)">
|
|
|
|
- <option *ngFor="let identity of identities" [value]="identity.id">{{identity.name}}</option>
|
|
|
|
- </select>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div class="col-12 col-sm-12 col-md-6 col-lg-4">
|
|
|
|
+ <div class="form-group">
|
|
|
|
+ <label for="identity" style="float:right"> الهويه <span class="spanReqired-w">*</span></label>
|
|
|
|
+ <select class="form-control select" id="identity" formControlName="identity_type_id" (change)="getSelectedOptionText($event)">
|
|
|
|
+ <option *ngFor="let identity of identities" [value]="identity.id">{{identity.name}}</option>
|
|
|
|
+ </select>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="col-12 col-sm-12 col-md-6 col-lg-4" *ngIf="identity_id != 4">
|
|
|
|
- <div class="form-group">
|
|
|
|
- <label for="identityNumber" style="float:right">رقم الهويه <span class="spanReqired-w">*</span></label>
|
|
|
|
- <input type="phone" class="form-control" placeholder="رقم الهويه" id="identityNumber" formControlName="identity_number" appOnlyNumber (input)="onIdentitiyChange($event.target.value)" />
|
|
|
|
- <span class="errorMessage-w" *ngIf="identity_id == 1">أدخل رقم هويه مكون من 10 أرقام يبدأ برقم 1</span>
|
|
|
|
- <span class="errorMessage-w" *ngIf="identity_id == 2">أدخل رقم هويه مكون من 10 أرقام </span>
|
|
|
|
- <span class="errorMessage-w" *ngIf="identity_id == 3">أدخل رقم الإقامه مكون من 10 أرقام يبدأ برقم 2 </span>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
- <div class="col-12 col-sm-12 col-md-6 col-lg-4" *ngIf="identity_id == 4">
|
|
|
|
- <div class="form-group">
|
|
|
|
- <label for="identityNumber" style="float:right">رقم الهويه <span class="spanReqired-w">*</span></label>
|
|
|
|
- <input type="phone" class="form-control" placeholder="رقم الهويه" id="identityNumber" formControlName="identity_number" />
|
|
|
|
- <span class="errorMessage-w"> أدخل رقم جواز السفر </span>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
|
|
|
|
- <div class="col-12 col-sm-12 col-md-6 col-lg-4">
|
|
|
|
- <div class="form-group">
|
|
|
|
- <label for="email" style="float:right">البريد الإلكتروني <span class="spanReqired-w">*</span></label>
|
|
|
|
- <input type="email" id="email" placeholder="البريد الإلكتروني" class="form-control" appEnglishCharacters formControlName="email" />
|
|
|
|
- <span class="help-block" *ngIf="!regesterForm.get('email').valid && regesterForm.get('email').touched" style="color:red">من فضلك أدخل بريد إلكتروني صحيح</span>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div class="col-12 col-sm-12 col-md-6 col-lg-4" *ngIf="identity_id != 4">
|
|
|
|
+ <div class="form-group">
|
|
|
|
+ <label for="identityNumber" style="float:right">رقم الهويه <span class="spanReqired-w">*</span></label>
|
|
|
|
+ <input type="number" class="form-control" placeholder="رقم الهويه" id="identityNumber" formControlName="identity_number" appOnlyNumber (input)="onIdentitiyChange($event.target.value)" />
|
|
|
|
+ <span class="errorMessage-w" *ngIf="identity_id == 1">أدخل رقم هويه مكون من 10 أرقام يبدأ برقم 1</span>
|
|
|
|
+ <span class="errorMessage-w" *ngIf="identity_id == 2">أدخل رقم هويه مكون من 10 أرقام </span>
|
|
|
|
+ <span class="errorMessage-w" *ngIf="identity_id == 3">أدخل رقم الإقامه مكون من 10 أرقام يبدأ برقم 2 </span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="col-12 col-sm-12 col-md-6 col-lg-4">
|
|
|
|
|
|
+ <div class="col-12 col-sm-12 col-md-6 col-lg-4" *ngIf="identity_id == 4">
|
|
|
|
+ <div class="form-group">
|
|
|
|
+ <label for="identityNumber" style="float:right">رقم الهويه <span class="spanReqired-w">*</span></label>
|
|
|
|
+ <input type="number" class="form-control" placeholder="رقم الهويه" id="identityNumber" formControlName="identity_number" />
|
|
|
|
+ <span class="errorMessage-w"> أدخل رقم جواز السفر </span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="col-12 col-sm-12 col-md-6 col-lg-4">
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
- <label for="phone" style="float:right">رقم الجوال <span class="spanReqired-w">*</span></label>
|
|
|
|
- <input type="text" id="phone" appNumberDerictive class="form-control" placeholder="رقم الجوال يبدأ ب 05 ومكون من 10 أرقام" formControlName="phone" />
|
|
|
|
|
|
+ <label for="birthday" style="float:right">تاريخ الميلاد <span class="spanReqired-w">*</span></label>
|
|
|
|
+ <input type="date" max="{{min}}" id="birthdate" placeholder="تاريخ الميلاد" class="form-control" formControlName="birthday" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
- <div class="col-12 col-sm-12 col-md-6 col-lg-4">
|
|
|
|
|
|
+ <div class="col-12 col-sm-12 col-md-6 col-lg-4">
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
- <label for="password" style="float:right">كلمه المرور <span *ngIf="checkShowSpanRequired" class="spanReqired-w">*</span></label>
|
|
|
|
- <input type="password" id="password" class="form-control" placeholder="كلمه المرور" formControlName="password" />
|
|
|
|
- <span class="help-block" *ngIf="password.errors?.minlength && regesterForm.get('password').touched" style="color:red;font-size:12px"> من فضلك , أدخل كلمه مرور لاتقل عن 6 ارقام</span>
|
|
|
|
|
|
+ <label style="float: right; margin-right:5px;margin-top:10px">النوع <span class="spanReqired-w">*</span></label>
|
|
|
|
+ <div class="custom-control custom-radio inlineBlock-w" style="padding: 2px 31px;background: #bd90592e;color: #a98559;border: 1px solid #b38553c2;">
|
|
|
|
+ <input type="radio" class="custom-control-input" id="defaultUnchecked" value="male" formControlName="gender" name="gender">
|
|
|
|
+ <label class="custom-control-label" for="defaultUnchecked" style="cursor: pointer;">ذكر</label>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="custom-control custom-radio inlineBlock-w" style="padding: 2px 31px;background: #bd90592e;color: #a98559;border: 1px solid #b38553c2;">
|
|
|
|
+ <input type="radio" class="custom-control-input" id="defaultChecked" value="female" formControlName="gender" name="gender">
|
|
|
|
+ <label class="custom-control-label" for="defaultChecked" style="cursor: pointer; margin-right:30px">انثي</label>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
- <div class="col-12 col-sm-12 col-md-6 col-lg-4">
|
|
|
|
|
|
+
|
|
|
|
+ </fieldset>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <div class="col-sm-12 col-md-12 col-lg-12">
|
|
|
|
+ <div class="row">
|
|
|
|
+
|
|
|
|
+ <fieldset class="formfieldset">
|
|
|
|
+ <legend>
|
|
|
|
+ <span>المعلومات الوظيفية</span>
|
|
|
|
+ </legend>
|
|
|
|
+
|
|
|
|
+ <div class="col-12 col-sm-12 col-md-6 col-lg-4">
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
- <label for="password_confirmation" style="float:right" >تأكيد كلمه المرور <span *ngIf="checkShowSpanRequired" class="spanReqired-w">*</span></label>
|
|
|
|
- <input type="password" id="password_confirmation" placeholder="تأكيد كلمه المرور" class="form-control" formControlName="password_confirmation" minlength="6"/>
|
|
|
|
- <span class="help-block" *ngIf="repeatPassword.errors?.minlength && regesterForm.get('password_confirmation').touched" style="color:red;font-size:12px">من فضلك , أدخل كلمه مرور لاتقل عن 6 ارقام</span>
|
|
|
|
|
|
+ <label for="phone" style="float:right">رقم الجوال <span class="spanReqired-w">*</span></label>
|
|
|
|
+ <input type="text" id="phone" appNumberDerictive class="form-control" placeholder="رقم الجوال يبدأ ب 05 ومكون من 10 أرقام" formControlName="phone" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
- <div class="col-12 col-sm-12 col-md-6 col-lg-4">
|
|
|
|
|
|
+ <div class="col-12 col-sm-12 col-md-6 col-lg-4">
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
<label for="functional_number" style="float:right"> الرقم الوظيفي <span class="spanReqired-w">*</span></label>
|
|
<label for="functional_number" style="float:right"> الرقم الوظيفي <span class="spanReqired-w">*</span></label>
|
|
<input type="number" class="form-control" min="0" id="functional_number" placeholder="الرقم الوظيفي" formControlName="functional_number" />
|
|
<input type="number" class="form-control" min="0" id="functional_number" placeholder="الرقم الوظيفي" formControlName="functional_number" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
- <div class="col-12 col-sm-12 col-md-6 col-lg-4">
|
|
|
|
- <div class="form-group">
|
|
|
|
- <label for="birthday" style="float:right">تاريخ الميلاد <span class="spanReqired-w">*</span></label>
|
|
|
|
- <input type="date" max="{{min}}" id="birthdate" placeholder="تاريخ الميلاد" class="form-control" formControlName="birthday" />
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
- <div class="col-12 col-sm-12 col-md-6 col-lg-4">
|
|
|
|
|
|
+ <div class="col-12 col-sm-12 col-md-6 col-lg-4">
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
<label for="date_employment" style="float:right">تاريخ التوظيف الميلادي <span class="spanReqired-w">*</span></label>
|
|
<label for="date_employment" style="float:right">تاريخ التوظيف الميلادي <span class="spanReqired-w">*</span></label>
|
|
<input type="date" class="form-control" id="date_employment" formControlName="date_of_employment_gre" />
|
|
<input type="date" class="form-control" id="date_employment" formControlName="date_of_employment_gre" />
|
|
@@ -195,6 +205,60 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
+ </fieldset>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <div class="col-sm-12 col-md-12 col-lg-12">
|
|
|
|
+ <div class="row">
|
|
|
|
+
|
|
|
|
+ <fieldset class="formfieldset">
|
|
|
|
+ <legend>
|
|
|
|
+ <span>معلومات الاتصال</span>
|
|
|
|
+ </legend>
|
|
|
|
+
|
|
|
|
+ <div class="col-12 col-sm-12 col-md-6 col-lg-4">
|
|
|
|
+ <div class="form-group">
|
|
|
|
+ <label for="email" style="float:right">البريد الإلكتروني <span class="spanReqired-w">*</span></label>
|
|
|
|
+ <input type="email" id="email" placeholder="البريد الإلكتروني" class="form-control" appEnglishCharacters formControlName="email" />
|
|
|
|
+ <span class="help-block" *ngIf="!regesterForm.get('email').valid && regesterForm.get('email').touched" style="color:red">من فضلك أدخل بريد إلكتروني صحيح</span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="col-12 col-sm-12 col-md-6 col-lg-4">
|
|
|
|
+ <div class="form-group">
|
|
|
|
+ <label for="password" style="float:right">كلمه المرور <span *ngIf="checkShowSpanRequired" class="spanReqired-w">*</span></label>
|
|
|
|
+ <input type="password" id="password" class="form-control" placeholder="كلمه المرور" formControlName="password" />
|
|
|
|
+ <span class="help-block" *ngIf="password.errors?.minlength && regesterForm.get('password').touched" style="color:red;font-size:12px"> من فضلك , أدخل كلمه مرور لاتقل عن 6 ارقام</span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="col-12 col-sm-12 col-md-6 col-lg-4">
|
|
|
|
+ <div class="form-group">
|
|
|
|
+ <label for="password_confirmation" style="float:right" >تأكيد كلمه المرور <span *ngIf="checkShowSpanRequired" class="spanReqired-w">*</span></label>
|
|
|
|
+ <input type="password" id="password_confirmation" placeholder="تأكيد كلمه المرور" class="form-control" formControlName="password_confirmation" minlength="6"/>
|
|
|
|
+ <span class="help-block" *ngIf="repeatPassword.errors?.minlength && regesterForm.get('password_confirmation').touched" style="color:red;font-size:12px">من فضلك , أدخل كلمه مرور لاتقل عن 6 ارقام</span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ </fieldset>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
<div class="col-12 col-sm-12 col-md-6 col-lg-4" *ngIf="showStatus">
|
|
<div class="col-12 col-sm-12 col-md-6 col-lg-4" *ngIf="showStatus">
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
<label style="float: right; margin-right:5px">الحاله</label>
|
|
<label style="float: right; margin-right:5px">الحاله</label>
|
|
@@ -206,20 +270,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <div class="col-12 col-sm-12 col-md-6 col-lg-4">
|
|
|
|
- <div class="form-group">
|
|
|
|
- <label style="float: right; margin-right:5px;margin-top:10px">النوع <span class="spanReqired-w">*</span></label>
|
|
|
|
- <div class="custom-control custom-radio inlineBlock-w">
|
|
|
|
- <input type="radio" class="custom-control-input" id="defaultUnchecked" value="male" formControlName="gender" name="gender">
|
|
|
|
- <label class="custom-control-label" for="defaultUnchecked" style="cursor: pointer;">ذكر</label>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
- <div class="custom-control custom-radio inlineBlock-w">
|
|
|
|
- <input type="radio" class="custom-control-input" id="defaultChecked" value="female" formControlName="gender" name="gender">
|
|
|
|
- <label class="custom-control-label" for="defaultChecked" style="cursor: pointer; margin-right:30px">انثي</label>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
|
|
+
|
|
|
|
|
|
<div class="col-12">
|
|
<div class="col-12">
|
|
<button type="submit" [disabled]="!regesterForm.valid" class="btn btn-success regesterBtn-w">{{userProfileId ? 'حفظ' : 'سجل'}}</button>
|
|
<button type="submit" [disabled]="!regesterForm.valid" class="btn btn-success regesterBtn-w">{{userProfileId ? 'حفظ' : 'سجل'}}</button>
|