Browse Source

add grade

master
drfelfel 1 year ago
parent
commit
5ba473b426
2 changed files with 38 additions and 7 deletions
  1. +21
    -6
      src/routes/panel/volunteer/table/table.component.html
  2. +17
    -1
      src/routes/panel/volunteer/table/table.component.ts

+ 21
- 6
src/routes/panel/volunteer/table/table.component.html View File

@ -15,12 +15,27 @@
</mat-panel-title>
<mat-panel-description> فیلتر ها و جستجو </mat-panel-description>
</mat-expansion-panel-header>
<mat-form-field appearance="outline">
<mat-label>آموزشکده</mat-label>
<mat-select [(ngModel)]="university">
<mat-option value="فعلی"> فعلی </mat-option>
</mat-select>
</mat-form-field>
<div class="selector" *ngIf="uid == 'tvu'">
<mat-form-field appearance="outline">
<mat-label>انتخاب مرکز / دانشگاه</mat-label>
<mat-select [(ngModel)]="namespace" multiple (selectionChange)="subscribe()">
<mat-optgroup
*ngFor="let group of univeristygroups"
[label]="group.name"
[disabled]="group.disabled"
>
<mat-option
*ngFor="let university of group.universities"
[value]="university.value"
>
{{ university.viewValue }}
</mat-option>
</mat-optgroup>
</mat-select>
</mat-form-field>
</div>
<mat-form-field appearance="outline">
<mat-label>مقطع</mat-label>

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

@ -20,11 +20,27 @@ export class TableComponent implements OnInit {
public grade = "کاردانی";
public page = 0;
public uuid = "";
public university = "فعلی"
public namespace = "فعلی"
public sort = 'nationalcode'
public sortDirection = 'asc'
uid = ""
univeristygroups: any[] = [
{
name: 'مرکزی',
value: "fani.markazi",
universities: [
{ value: 'fani.markazi.arak.athar', viewValue: 'اطهر' },
{ value: 'fani.markazi.arak.amirkabir', viewValue: 'امیر کبیر' },
{ value: 'fani.markazi.khomein.pkhomein', viewValue: 'دکتر حسابی خمین' },
{ value: 'fani.markazi.saveh.psaveh', viewValue: 'مرکز پسران ساوه' }
]
}
];
public filters = {
university: ""
}

Loading…
Cancel
Save