|
@@ -155,21 +155,21 @@
|
|
<thead class="headBackground-w">
|
|
<thead class="headBackground-w">
|
|
<tr>
|
|
<tr>
|
|
<th> إسم المرفق</th>
|
|
<th> إسم المرفق</th>
|
|
- <th *ngIf="!isAdmin || !tookDes">رفع الملف ( بصيغه pdf )</th>
|
|
|
|
|
|
+ <th *ngIf="!isAdmin || tookDes">رفع الملف ( بصيغه pdf )</th>
|
|
<th *ngIf="isAdmin || tookDes">عرض الملف</th>
|
|
<th *ngIf="isAdmin || tookDes">عرض الملف</th>
|
|
<th *ngIf="!isAdmin || !tookDes">حذف</th>
|
|
<th *ngIf="!isAdmin || !tookDes">حذف</th>
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody>
|
|
<tbody>
|
|
<tr style="text-align:center;" *ngFor="let file of files; let i = index">
|
|
<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}" [disabled]="!isAdmin || !tookDes" required/></td>
|
|
|
|
- <td style="position: relative;" *ngIf="!isAdmin || !tookDes">
|
|
|
|
|
|
+ <td><input type="text" class="form-control" placeholder="إسم الملف" [(ngModel)]="file.title"[ngModelOptions]="{standalone: true}" [disabled]="" required/></td>
|
|
|
|
+ <td style="position: relative;" *ngIf="!isAdmin || tookDes">
|
|
<input type="file" name="file{{i}}" id="file{{i}}" class="inputfile" alife-file-to-base64 (onFileChanged)="onFileChanges($event,i)" required/>
|
|
<input type="file" name="file{{i}}" id="file{{i}}" class="inputfile" alife-file-to-base64 (onFileChanged)="onFileChanges($event,i)" required/>
|
|
<label for="file{{i}}" class="iconUpload-w"><i class="fas fa-upload"></i></label>
|
|
<label for="file{{i}}" class="iconUpload-w"><i class="fas fa-upload"></i></label>
|
|
<span class="fileName-w" *ngIf="file.nameFile" style="color:green"> <i class='fas fa-check'style=" float: left; padding-top: 4px; "></i>
|
|
<span class="fileName-w" *ngIf="file.nameFile" style="color:green"> <i class='fas fa-check'style=" float: left; padding-top: 4px; "></i>
|
|
</span>
|
|
</span>
|
|
</td>
|
|
</td>
|
|
- <td *ngIf="isAdmin || tookDes"><a href="{{authSer.pathImg + file.nameFile}}" target="_blank"><i class="fas fa-download"></i></a></td>
|
|
|
|
|
|
+ <td *ngIf="isAdmin || tookDes"><a href="{{authSer.pathImg + file.file}}" target="_blank"><i class="fas fa-download"></i></a></td>
|
|
<td *ngIf="!isAdmin || !tookDes"><button type="button" class="btn btn-danger form-control deleteRow-w" (click)="onDeleteRow(i)">حذف</button></td>
|
|
<td *ngIf="!isAdmin || !tookDes"><button type="button" class="btn btn-danger form-control deleteRow-w" (click)="onDeleteRow(i)">حذف</button></td>
|
|
</tr>
|
|
</tr>
|
|
</tbody>
|
|
</tbody>
|