|
@@ -59,7 +59,7 @@
|
|
|
<div class="col-12 col-sm-12 col-md-6 col-lg-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" (input)="onIdentitiyChange($event.target.value)" ngModel name="identity_number" [(ngModel)]="userData.identity_number" [disabled]="disabledInput" required/>
|
|
|
+ <input type="number" class="form-control" placeholder="رقم الهويه" (keypress)="authSer.onKeydown($event)" id="identityNumber" (input)="onIdentitiyChange($event.target.value)" ngModel name="identity_number" [(ngModel)]="userData.identity_number" [disabled]="disabledInput" min="0" required/>
|
|
|
<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>
|
|
@@ -100,7 +100,7 @@
|
|
|
<div class="col-12 col-sm-12 col-md-6 col-lg-4">
|
|
|
<div class="form-group">
|
|
|
<label for="phone" style="float:right">رقم الجوال <span class="spanReqired-w">*</span></label>
|
|
|
- <input type="text" id="phone" appOnlyNumber class="form-control" placeholder="رقم الجوال يبدأ ب 05 ومكون من 10 أرقام" ngModel name="phone" [(ngModel)]="userData.phone" [disabled]="disabledInput" required/>
|
|
|
+ <input type="text" id="phone" appOnlyNumber class="form-control" (keypress)="authSer.onKeydown($event)" placeholder="رقم الجوال يبدأ ب 05 ومكون من 10 أرقام" ngModel name="phone" [(ngModel)]="userData.phone" [disabled]="disabledInput" required/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-12 col-md-4">
|
|
@@ -113,184 +113,189 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="col-12">
|
|
|
- <h2 class="title">معلومات التدريب</h2>
|
|
|
- <div class="row">
|
|
|
- <div class="wrapper">
|
|
|
-
|
|
|
- <div class="col-12" *ngIf="typeMode">
|
|
|
- <div class="form-group">
|
|
|
- <h2 class="titleStatus">{{formData.status == 'pending' ? 'تحت الإجراء'
|
|
|
+
|
|
|
+ <div class="col-12">
|
|
|
+ <h2 class="title">المرفقات</h2>
|
|
|
+ <div class="row">
|
|
|
+ <div class="wrapper">
|
|
|
+
|
|
|
+ <div class="col-12">
|
|
|
+ <button type="button" class="btn btn-default" (click)="plusImage()" style="margin:20px 0; float:right;">إضافه مرفق</button>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <table class="table table-bordered">
|
|
|
+ <thead class="headBackground-w">
|
|
|
+ <tr>
|
|
|
+ <th> إسم المرفق</th>
|
|
|
+ <th>رفع املف ( بصيغه pdf )</th>
|
|
|
+ <th>حذف</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <tr style="text-align:center;" *ngFor="let file of files; let i = index">
|
|
|
+ <td><input type="text" class="form-control" placeholder="إسم الملف" [(ngModel)]="file.title" [ngModelOptions]="{standalone: true}"/></td>
|
|
|
+ <td style="position: relative;">
|
|
|
+ <input type="file" name="file{{i}}" id="file{{i}}" class="inputfile" alife-file-to-base64 (onFileChanged)="onFileChanges($event,i)" />
|
|
|
+ <label for="file{{i}}" class="iconUpload-w"><i class="fas fa-upload"></i></label>
|
|
|
+ <span class="fileName-w">{{file.nameFile}}</span>
|
|
|
+ </td>
|
|
|
+ <td><button type="button" class="btn btn-danger form-control deleteRow-w" (click)="onDeleteRow(i)">حذف</button></td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="col-12">
|
|
|
+ <h2 class="title">معلومات التدريب</h2>
|
|
|
+ <div class="row">
|
|
|
+ <div class="wrapper">
|
|
|
+
|
|
|
+ <div class="col-12" *ngIf="typeMode">
|
|
|
+ <div [className]="formData.status == 'accepted' ? 'alert-success' : formData.status == 'refused' ? 'alert-danger' : 'alert-dark'" class="alert" style="height:40px; padding:6px 0;"ole="alert">
|
|
|
+ <h2 class="titleStatus">حاله الطلب : {{formData.status == 'pending' ? 'تحت الإجراء'
|
|
|
: formData.status == 'accepted' ? 'مقبول'
|
|
|
: formData.status == 'replayed_opinion' ? 'رأي القسم'
|
|
|
: formData.status == 'refused' ? 'مرفوض'
|
|
|
: formData.status == 'canceled' ? 'ملغي'
|
|
|
: formData.status == 'asked_for_opinion' ? 'طلب رأي'
|
|
|
- : formData.status == 'asked_for_opinion' ? 'طلب رأي' : 'لايوجد'}}</h2>
|
|
|
+ : 'لم يتم تسجيل حاله الطلب'}}</h2>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ <!-- <div class="form-group">
|
|
|
+
|
|
|
+ </div> -->
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="col-12 col-sm-12 col-md-4 col-lg-4">
|
|
|
- <div class="form-group">
|
|
|
- <label style="float:right">نوع الطلب <span class="spanReqired-w">*</span></label>
|
|
|
- <select class="form-control selectStyle-w" ngModel name="type" [(ngModel)]="formData.type" (input)="changeType($event)" required>
|
|
|
- <option value="trainees">المتدربين</option>
|
|
|
- <option value="fellowship"> زماله(البورد السعودي) </option>
|
|
|
- <option value="university_administrators">مشرفي الجامعات</option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
+ <div class="col-12 col-sm-12 col-md-4 col-lg-4">
|
|
|
+ <div class="form-group">
|
|
|
+ <label style="float:right">نوع الطلب <span class="spanReqired-w">*</span></label>
|
|
|
+ <select class="form-control selectStyle-w" ngModel name="type" [(ngModel)]="formData.type" (input)="changeType($event)" required>
|
|
|
+ <option value="trainees">المتدربين</option>
|
|
|
+ <option value="fellowship"> زماله(البورد السعودي) </option>
|
|
|
+ <option value="university_administrators">مشرفي الجامعات</option>
|
|
|
+ </select>
|
|
|
</div>
|
|
|
-
|
|
|
- <div class="col-12 col-sm-12 col-md-4 col-lg-4">
|
|
|
- <div class="form-group">
|
|
|
- <label for="order" style="float:right">اسم التخصص <span class="spanReqired-w">*</span></label>
|
|
|
- <input type="text" id="order" placeholder=" إسم التخصص" ngModel name="specialization_name" [(ngModel)]="formData.specialization_name" class="form-control" required/>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="col-12 col-sm-12 col-md-4 col-lg-4">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="order" style="float:right">اسم التخصص <span class="spanReqired-w">*</span></label>
|
|
|
+ <input type="text" id="order" placeholder=" إسم التخصص" ngModel name="specialization_name" [(ngModel)]="formData.specialization_name" class="form-control" required/>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="col-12 col-sm-12 col-md-4 col-lg-4">
|
|
|
- <div class="form-group">
|
|
|
- <label for="spec" style="float:right">التخصص الدقيق <span class="spanReqired-w">*</span></label>
|
|
|
- <input type="text" id="spec" class="form-control" placeholder="التخصص الدقيق" name="specific_specialization" [(ngModel)]="formData.specific_specialization" ngModel required/>
|
|
|
- </div>
|
|
|
+ <div class="col-12 col-sm-12 col-md-4 col-lg-4">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="spec" style="float:right">التخصص الدقيق <span class="spanReqired-w">*</span></label>
|
|
|
+ <input type="text" id="spec" class="form-control" placeholder="التخصص الدقيق" name="specific_specialization" [(ngModel)]="formData.specific_specialization" ngModel required/>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="col-12 col-sm-12 col-md-4 col-lg-4 ">
|
|
|
- <div class="form-group">
|
|
|
- <label for="universty" style="float:right">الجامعه <span class="spanReqired-w">*</span></label>
|
|
|
- <input type="text" id="universty" placeholder="الجامعه" class="form-control" name="univeristy" ngModel [(ngModel)]="formData.university" required/>
|
|
|
- </div>
|
|
|
+ <div class="col-12 col-sm-12 col-md-4 col-lg-4 ">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="universty" style="float:right">الجامعه <span class="spanReqired-w">*</span></label>
|
|
|
+ <input type="text" id="universty" placeholder="الجامعه" class="form-control" name="univeristy" ngModel [(ngModel)]="formData.university" required/>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="col-12 col-sm-12 col-md-4 col-lg-4">
|
|
|
- <div class="form-group">
|
|
|
- <label for="level" style="float:right">المستوي <span class="spanReqired-w">*</span></label>
|
|
|
- <input type="text" id="level" placeholder="المستوي" class="form-control" name="level" ngModel [(ngModel)]="formData.level" required/>
|
|
|
- </div>
|
|
|
+ <div class="col-12 col-sm-12 col-md-4 col-lg-4">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="level" style="float:right">المستوي <span class="spanReqired-w">*</span></label>
|
|
|
+ <input type="text" id="level" placeholder="المستوي" class="form-control" name="level" ngModel [(ngModel)]="formData.level" required/>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="col-12 col-sm-12 col-md-4 col-lg-4">
|
|
|
- <div class="form-group">
|
|
|
- <label for="trainning" style="float:right">الفتره التدريبيه <span class="spanReqired-w">*</span></label>
|
|
|
- <input type="text" id="trainning" placeholder="الفتره التدريبيه" class="form-control" name="training_period" ngModel [(ngModel)]="formData.training_period" required />
|
|
|
- </div>
|
|
|
+ <div class="col-12 col-sm-12 col-md-4 col-lg-4">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="trainning" style="float:right">الفتره التدريبيه <span class="spanReqired-w">*</span></label>
|
|
|
+ <input type="text" id="trainning" placeholder="الفتره التدريبيه" class="form-control" name="training_period" ngModel [(ngModel)]="formData.training_period" required />
|
|
|
</div>
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="col-12 col-sm-12 col-md-4 col-lg-4" *ngIf="formData.type == 'fellowship'">
|
|
|
- <div class="form-group">
|
|
|
- <label for="regester" style="float:right">رقم التسجيل <span class="spanReqired-w">*</span></label>
|
|
|
- <input type="number" id="regester" placeholder="رقم التسجيل" class="form-control" name="training_period" ngModel [(ngModel)]="formData.registration_number" required/>
|
|
|
- </div>
|
|
|
+ <div class="col-12 col-sm-12 col-md-4 col-lg-4" *ngIf="formData.type == 'fellowship'">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="regester" style="float:right">رقم التسجيل <span class="spanReqired-w">*</span></label>
|
|
|
+ <input type="number" id="regester" min="0" (keypress)="authSer.onKeydown($event)" placeholder="رقم التسجيل" class="form-control" name="training_period" ngModel [(ngModel)]="formData.registration_number" required/>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="col-12 col-sm-12 col-md-4 col-lg-4" *ngIf="formData.type == 'fellowship'">
|
|
|
- <div class="form-group">
|
|
|
- <label for="card" style="float:right">رقم البطاقه الهينه <span class="spanReqired-w">*</span></label>
|
|
|
- <input id="card" type="number" placeholder="رقم البطاقه الهينه" class="form-control" name="authority_card_number" ngModel [(ngModel)]="formData.authority_card_number" required/>
|
|
|
- </div>
|
|
|
+ <div class="col-12 col-sm-12 col-md-4 col-lg-4" *ngIf="formData.type == 'fellowship'">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="card" style="float:right">رقم البطاقه الهينه <span class="spanReqired-w">*</span></label>
|
|
|
+ <input id="card" type="number" min="0" (keypress)="authSer.onKeydown($event)" placeholder="رقم البطاقه الهينه" class="form-control" name="authority_card_number" ngModel [(ngModel)]="formData.authority_card_number" required/>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="col-12 col-sm-12 col-md-4 col-lg-4" *ngIf="formData.type == 'fellowship'">
|
|
|
- <div class="form-group">
|
|
|
- <label for="job" style="float:right"> البطاقه الوظيفي <span class="spanReqired-w">*</span></label>
|
|
|
- <input type="number" id="job" placeholder="البطاقه الوظيفي" class="form-control" name="functional_number" ngModel [(ngModel)]="formData.functional_number" required/>
|
|
|
- </div>
|
|
|
+ <div class="col-12 col-sm-12 col-md-4 col-lg-4" *ngIf="formData.type == 'fellowship'">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="job" style="float:right"> البطاقه الوظيفي <span class="spanReqired-w">*</span></label>
|
|
|
+ <input type="number" id="job" min="0" (keypress)="authSer.onKeydown($event)" placeholder="البطاقه الوظيفي" class="form-control" name="functional_number" ngModel [(ngModel)]="formData.functional_number" required/>
|
|
|
</div>
|
|
|
- <div class="col-12 col-sm-12 col-md-4 col-lg-4" *ngIf="formData.type == 'fellowship'">
|
|
|
- <div class="form-group">
|
|
|
- <label for="contract" style="float:right">نوع التعاقد <span class="spanReqired-w">*</span></label>
|
|
|
- <input type="text" id="contract" placeholder="نوع التعاقد" class="form-control" name="contract_type" ngModel [(ngModel)]="formData.contract_type" required/>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ <div class="col-12 col-sm-12 col-md-4 col-lg-4" *ngIf="formData.type == 'fellowship'">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="contract" style="float:right">نوع التعاقد <span class="spanReqired-w">*</span></label>
|
|
|
+ <input type="text" id="contract" placeholder="نوع التعاقد" class="form-control" name="contract_type" ngModel [(ngModel)]="formData.contract_type" required/>
|
|
|
</div>
|
|
|
- <div class="col-12 col-sm-12 col-md-4 col-lg-4" *ngIf="formData.type == 'fellowship'">
|
|
|
- <div class="form-group">
|
|
|
- <label for="field" style="float:right">الجهه التابع لها المتدرب <span class="spanReqired-w">*</span></label>
|
|
|
- <input type="text" id="field" placeholder="الجهه التابع لها المتدرب" class="form-control" name="organization_affiliated_with" ngModel [(ngModel)]="formData.organization_affiliated_with" required/>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ <div class="col-12 col-sm-12 col-md-4 col-lg-4" *ngIf="formData.type == 'fellowship'">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="field" style="float:right">الجهه التابع لها المتدرب <span class="spanReqired-w">*</span></label>
|
|
|
+ <input type="text" id="field" placeholder="الجهه التابع لها المتدرب" class="form-control" name="organization_affiliated_with" ngModel [(ngModel)]="formData.organization_affiliated_with" required/>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
|
|
|
- <!-- <h2 class="departmentHeading-w">أختر الأقسام <span>(قم بإختيار قسم كحد أدني)</span></h2> -->
|
|
|
- <div class="col-12 col-sm-12 col-md-4 col-lg-4" *ngIf="!editMode">
|
|
|
- <div class="form-group">
|
|
|
- <label for="department1" style="float:right;">القسم الأول</label>
|
|
|
- <select class="form-control selectStyle-w" id="department1" name="department1" (input)="changeDepartment($event , 1)" [(ngModel)]="formData.department1">
|
|
|
- <option *ngFor="let department of departments" [value]="department.id">{{department.name}}</option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
+ <!-- <h2 class="departmentHeading-w">أختر الأقسام <span>(قم بإختيار قسم كحد أدني)</span></h2> -->
|
|
|
+ <div class="col-12 col-sm-12 col-md-4 col-lg-4" *ngIf="!editMode">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="department1" style="float:right;">القسم الأول</label>
|
|
|
+ <select class="form-control selectStyle-w" id="department1" name="department1" (input)="changeDepartment($event , 1)" [(ngModel)]="formData.department1">
|
|
|
+ <option *ngFor="let department of departments" [value]="department.id">{{department.name}}</option>
|
|
|
+ </select>
|
|
|
</div>
|
|
|
- <div class="col-12 col-sm-12 col-md-4 col-lg-4" *ngIf="!editMode">
|
|
|
- <div class="form-group">
|
|
|
- <label for="department2" style="float:right;">القسم الثاني</label>
|
|
|
- <select class="form-control selectStyle-w" id="department2" name="department2" (input)="changeDepartment($event , 2)" [(ngModel)]="formData.department2">
|
|
|
- <option *ngFor="let department of departments" [value]="department.id">{{department.name}}</option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ <div class="col-12 col-sm-12 col-md-4 col-lg-4" *ngIf="!editMode">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="department2" style="float:right;">القسم الثاني</label>
|
|
|
+ <select class="form-control selectStyle-w" id="department2" name="department2" (input)="changeDepartment($event , 2)" [(ngModel)]="formData.department2">
|
|
|
+ <option *ngFor="let department of departments" [value]="department.id">{{department.name}}</option>
|
|
|
+ </select>
|
|
|
</div>
|
|
|
- <div class="col-12 col-sm-12 col-md-4 col-lg-4" *ngIf="!editMode">
|
|
|
- <div class="form-group">
|
|
|
- <label for="department3" style="float:right;">القسم الثالث</label>
|
|
|
- <select class="form-control selectStyle-w" id="department3" name="department3" (input)="changeDepartment($event , 3)" [(ngModel)]="formData.department3">
|
|
|
- <option *ngFor="let department of departments" [value]="department.id">{{department.name}}</option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ <div class="col-12 col-sm-12 col-md-4 col-lg-4" *ngIf="!editMode">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="department3" style="float:right;">القسم الثالث</label>
|
|
|
+ <select class="form-control selectStyle-w" id="department3" name="department3" (input)="changeDepartment($event , 3)" [(ngModel)]="formData.department3">
|
|
|
+ <option *ngFor="let department of departments" [value]="department.id">{{department.name}}</option>
|
|
|
+ </select>
|
|
|
</div>
|
|
|
- <div class="col-12 col-sm-12 col-md-4 col-lg-4" *ngIf="editMode">
|
|
|
- <div class="form-group">
|
|
|
- <label for="department4" style="float:right;">القسم المناسب</label>
|
|
|
- <select class="form-control selectStyle-w" id="department4" name="department4" [(ngModel)]="formData.department4">
|
|
|
- <option *ngFor="let department of departments" [value]="department.department_id">{{department.department_name}}</option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ <div class="col-12 col-sm-12 col-md-4 col-lg-4" *ngIf="editMode">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="department4" style="float:right;">القسم المناسب</label>
|
|
|
+ <select class="form-control selectStyle-w" id="department4" name="department4" [(ngModel)]="formData.department4">
|
|
|
+ <option *ngFor="let department of departments" [value]="department.department_id">{{department.department_name}}</option>
|
|
|
+ </select>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
|
|
|
|
|
|
- <div class="col-12 col-sm-12 col-md-12 col-lg-12" *ngIf="editMode">
|
|
|
- <div class="form-group">
|
|
|
- <label for="status" style="float:right; display:block"> الأوامر <span class="spanReqired-w">*</span></label>
|
|
|
- <button type="button" class="btn btn-success statusBtn-w" (click)="statusShow('accepted')">قبول</button>
|
|
|
- <button type="button" class="btn btn-danger statusBtn-w" (click)="statusShow('refused')">رفض</button>
|
|
|
- <button type="button" class="btn btn-default statusBtn-w" (click)="statusShow('asked_for_opinion')">طلب رأي</button>
|
|
|
- <input type="text" placeholder="سبب الرفض" class="form-control" name="status_description" ngModel [(ngModel)]="formData.status_description" *ngIf="showRefusedCause" required>
|
|
|
- </div>
|
|
|
+ <div class="col-12 col-sm-12 col-md-12 col-lg-12" *ngIf="editMode">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="status" style="float:right; display:block"> الأوامر <span class="spanReqired-w">*</span></label>
|
|
|
+ <button type="button" class="btn btn-success statusBtn-w" (click)="statusShow('accepted')">قبول</button>
|
|
|
+ <button type="button" class="btn btn-danger statusBtn-w" (click)="statusShow('refused')">رفض</button>
|
|
|
+ <button type="button" class="btn btn-default statusBtn-w" (click)="statusShow('asked_for_opinion')">طلب رأي</button>
|
|
|
+ <input type="text" placeholder="سبب الرفض" class="form-control" name="status_description" ngModel [(ngModel)]="formData.status_description" *ngIf="showRefusedCause" required>
|
|
|
</div>
|
|
|
-
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
|
|
|
- <div class="col-12">
|
|
|
- <h2 class="title">المرفقات</h2>
|
|
|
- <div class="row">
|
|
|
- <div class="wrapper">
|
|
|
-
|
|
|
- <div class="col-12">
|
|
|
- <button type="button" class="btn btn-default" (click)="plusImage()" style="margin:20px 0; float:right;">إضافه مرفق</button>
|
|
|
- </div>
|
|
|
-
|
|
|
- <table class="table table-bordered">
|
|
|
- <thead class="headBackground-w">
|
|
|
- <tr>
|
|
|
- <th> إسم المرفق</th>
|
|
|
- <th>رفع املف ( بصيغه pdf )</th>
|
|
|
- <th>حذف</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- <tr style="text-align:center;" *ngFor="let file of files; let i = index">
|
|
|
- <td><input type="text" class="form-control" placeholder="إسم الملف" [(ngModel)]="file.title" [ngModelOptions]="{standalone: true}"/></td>
|
|
|
- <td style="position: relative;">
|
|
|
- <input type="file" name="file{{i}}" id="file{{i}}" class="inputfile" alife-file-to-base64 (onFileChanged)="onFileChanges($event,i)" />
|
|
|
- <label for="file{{i}}" class="iconUpload-w"><i class="fas fa-upload"></i></label>
|
|
|
- <span class="fileName-w">{{file.nameFile}}</span>
|
|
|
- </td>
|
|
|
- <td><button type="button" class="btn btn-danger form-control deleteRow-w" (click)="onDeleteRow(i)">حذف</button></td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
-
|
|
|
- </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
+
|
|
|
|
|
|
<div class="col-12">
|
|
|
<button type="submit" class="btn btn-success rightW" [disabled]="!f.valid || checkSaveClick">حفظ</button>
|