|
|
|
|
@ -78,10 +78,12 @@
|
|
|
|
|
<td (click)="onSelectProfessor(professor)">
|
|
|
|
|
<span class="status-badge" [class.status-active]="professor?.status === WorkingStatus.ACTIVE"
|
|
|
|
|
[class.status-leave]="professor?.status === WorkingStatus.ON_LEAVE"
|
|
|
|
|
[class.status-retired]="professor?.status === WorkingStatus.RETIRED">
|
|
|
|
|
[class.status-retired]="professor?.status === WorkingStatus.RETIRED"
|
|
|
|
|
[class.status-inactive]="professor?.status === WorkingStatus.INACTIVE">
|
|
|
|
|
<i class="fa" [class.fa-check-circle]="professor?.status === WorkingStatus.ACTIVE"
|
|
|
|
|
[class.fa-pause-circle]="professor?.status === WorkingStatus.ON_LEAVE"
|
|
|
|
|
[class.fa-times-circle]="professor?.status === WorkingStatus.RETIRED"></i>
|
|
|
|
|
[class.fa-times-circle]="professor?.status === WorkingStatus.RETIRED"
|
|
|
|
|
[class.fa-ban]="professor?.status === WorkingStatus.INACTIVE"></i>
|
|
|
|
|
{{ professor?.status }}
|
|
|
|
|
</span>
|
|
|
|
|
</td>
|
|
|
|
|
@ -150,7 +152,8 @@
|
|
|
|
|
</span>
|
|
|
|
|
<span class="status-badge" [class.status-active]="selectedProfessor.status === 'ACTIVE'"
|
|
|
|
|
[class.status-leave]="selectedProfessor.status === 'ON_LEAVE'"
|
|
|
|
|
[class.status-retired]="selectedProfessor.status === 'RETIRED'">
|
|
|
|
|
[class.status-retired]="selectedProfessor.status === 'RETIRED'"
|
|
|
|
|
[class.status-inactive]="selectedProfessor.status === 'INACTIVE'">
|
|
|
|
|
{{ selectedProfessor.status }}
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
@ -205,13 +208,13 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="detail-row"
|
|
|
|
|
*ngIf="selectedProfessor.certification || (selectedProfessor.training && selectedProfessor.status !== WorkingStatus.RETIRED)">
|
|
|
|
|
*ngIf="selectedProfessor.certification || (selectedProfessor.training && selectedProfessor.status !== WorkingStatus.RETIRED && selectedProfessor.status !== WorkingStatus.INACTIVE)">
|
|
|
|
|
<div class="detail-section" *ngIf="selectedProfessor.certification">
|
|
|
|
|
<h5>Certification</h5>
|
|
|
|
|
<p>{{ selectedProfessor.certification }}</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="detail-section"
|
|
|
|
|
*ngIf="selectedProfessor.training && selectedProfessor.status !== WorkingStatus.RETIRED">
|
|
|
|
|
*ngIf="selectedProfessor.training && selectedProfessor.status !== WorkingStatus.RETIRED && selectedProfessor.status !== WorkingStatus.INACTIVE">
|
|
|
|
|
<h5>Training</h5>
|
|
|
|
|
<p>{{ selectedProfessor.training }}</p>
|
|
|
|
|
</div>
|
|
|
|
|
@ -329,6 +332,7 @@
|
|
|
|
|
<option [value]="WorkingStatus.ACTIVE">Active</option>
|
|
|
|
|
<option [value]="WorkingStatus.ON_LEAVE">On Leave</option>
|
|
|
|
|
<option [value]="WorkingStatus.RETIRED">Retired</option>
|
|
|
|
|
<option [value]="WorkingStatus.INACTIVE">Inactive</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
@ -616,6 +620,7 @@
|
|
|
|
|
<option [value]="WorkingStatus.ACTIVE">Active</option>
|
|
|
|
|
<option [value]="WorkingStatus.ON_LEAVE">On Leave</option>
|
|
|
|
|
<option [value]="WorkingStatus.RETIRED">Retired</option>
|
|
|
|
|
<option [value]="WorkingStatus.INACTIVE">Inactive</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
@ -714,9 +719,9 @@
|
|
|
|
|
</label>
|
|
|
|
|
<textarea id="editTraining" name="training" class="form-textarea" rows="2"
|
|
|
|
|
[(ngModel)]="selectedProfessor.training"
|
|
|
|
|
[disabled]="selectedProfessor.status === WorkingStatus.RETIRED"></textarea>
|
|
|
|
|
<small class="form-text text-muted" *ngIf="selectedProfessor.status === WorkingStatus.RETIRED">
|
|
|
|
|
Training field is disabled for retired faculty
|
|
|
|
|
[disabled]="selectedProfessor.status === WorkingStatus.RETIRED || selectedProfessor.status === WorkingStatus.INACTIVE"></textarea>
|
|
|
|
|
<small class="form-text text-muted" *ngIf="selectedProfessor.status === WorkingStatus.RETIRED || selectedProfessor.status === WorkingStatus.INACTIVE">
|
|
|
|
|
Training field is disabled for retired/inactive faculty
|
|
|
|
|
</small>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|