Browse Source

add grade

master
drfelfel 1 year ago
parent
commit
fd832269e6
2 changed files with 19 additions and 1 deletions
  1. +18
    -0
      src/routes/panel/volunteer/table/table.component.html
  2. +1
    -1
      src/routes/panel/volunteer/table/table.component.ts

+ 18
- 0
src/routes/panel/volunteer/table/table.component.html View File

@ -113,11 +113,29 @@
<td mat-cell *matCellDef="let element">{{ element.nationalcode }}</td>
</ng-container>
<ng-container matColumnDef="entrynumber">
<th mat-header-cell *matHeaderCellDef mat-sort-header="entrynumber">
شماره داوطلبی
</th>
<td mat-cell *matCellDef="let element">{{ element.entrynumber }}</td>
</ng-container>
<ng-container matColumnDef="step">
<th mat-header-cell *matHeaderCellDef mat-sort-header="step">مرحله</th>
<td mat-cell *matCellDef="let element">{{ element.step }}</td>
</ng-container>
<ng-container matColumnDef="status">
<th mat-header-cell *matHeaderCellDef >وضعیت داوطلب</th>
<td mat-cell *matCellDef="let element">
<b style="color: rgb(151, 9, 9)(145, 142, 142);" *ngIf="element.status == 'reject'">رد شده</b>
<b style="color: rgb(1, 87, 27)(145, 142, 142);" *ngIf="element.status == 'resolve'">تایید شده</b>
<b style="color: rgb(212, 176, 14)(145, 142, 142);" *ngIf="element.status == 'wait'">در انتظار تایید</b>
</td>
</ng-container>
<ng-container matColumnDef="grade">
<th mat-header-cell *matHeaderCellDef mat-sort-header="grade">مقطع</th>
<td mat-cell *matCellDef="let element">

+ 1
- 1
src/routes/panel/volunteer/table/table.component.ts View File

@ -11,7 +11,7 @@ import * as moment from 'jalali-moment'
})
export class TableComponent implements OnInit {
public columns: string[] = ['position', 'uid', 'firstname', 'lastname', 'fathername', 'major', 'grade', 'nationalcode', 'step', 'done', 'options'];
public columns: string[] = ['position', 'uid', 'firstname', 'lastname', 'fathername', 'major', 'grade', 'nationalcode','entrynumber','status', 'step', 'done', 'options'];
public data: MatTableDataSource<object> = new MatTableDataSource<object>();
public loading: boolean = false;
public search: string = '';

Loading…
Cancel
Save