Commit f5ca8c2d authored by Open Source Developer's avatar Open Source Developer
Browse files

trans

parent 1131f9c0
...@@ -23,16 +23,16 @@ import { ...@@ -23,16 +23,16 @@ import {
<form [formGroup]="formGroup"> <form [formGroup]="formGroup">
<div class="form-group" > <div class="form-group" >
<label for="name">Τάξη</label><br/> <label for="name">Τάξη</label><br/>
<select class="form-control" formControlName="taxi" (change)="verifyclass()"> <select #txoption [(ngModel)]="taxi" [ngModelOptions]="{standalone: true}" (change)="verifyclass(txoption)" >
<option value="1" >Α' Λυκείου</option> <option value="1" >Α' Λυκείου</option>
<option value="2" >Β' Λυκείου</option> <option value="2" >Β' Λυκείου</option>
<option value="3" >Γ' Λυκείου</option> <option value="3" >Γ' Λυκείου</option>
</select> </select>
<div> <div>
<div class="form-group" *ngIf="(StudentSelected$ | async).size > 0" > <div class="form-group" *ngIf="(StudentSelected$ != {}) && (bclassenabled === true)">
<label for="tomeas">Τομέας</label><br/> <label for="tomeas">Τομέας</label><br/>
<select #cblst [(ngModel)]="tomeas" [ngModelOptions]="{standalone: true}" (change)="verifyclass(cblst)" > <select #tmop [(ngModel)]="tomeas" [ngModelOptions]="{standalone: true}" >
<option *ngFor="let SectorSelection$ of StudentSelected$ | async" [ngValue]="SectorSelection$.id">{{SectorSelection$.sector_id}}</option> <option *ngFor="let SectorSelection$ of StudentSelected$ | async" [ngValue]="SectorSelection$.id">{{SectorSelection$.sector_id}}</option>
</select> </select>
<div> <div>
...@@ -58,7 +58,7 @@ import { ...@@ -58,7 +58,7 @@ import {
this.StudentSelected$ = new BehaviorSubject([{}]); this.StudentSelected$ = new BehaviorSubject([{}]);
this.formGroup = this.fb.group({ this.formGroup = this.fb.group({
taxi:[], taxi:[],
tomeas: []
}); });
} }
...@@ -79,19 +79,20 @@ import { ...@@ -79,19 +79,20 @@ import {
} }
verifyclass() verifyclass(txop)
{ {
console.log(txop.value);
if (this.formGroup.value.taxi === "1") if (txop.value === "1")
{ this.bClassEnabled = false; { this.bClassEnabled = false;
this.gClassEnabled = false; this.gClassEnabled = false;
} }
else if (this.formGroup.value.taxi === "2") else if (txop.value === "2")
{ {
console.log(txop.value,"aaaaaa");
this.bClassEnabled = true; this.bClassEnabled = true;
this.gClassEnabled = false; this.gClassEnabled = false;
} }
else if (this.formGroup.value.taxi === "3") else if (txop.value === "3")
{ this.bClassEnabled = true; { this.bClassEnabled = true;
this.gClassEnabled = true; this.gClassEnabled = true;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment