Changeset 28d7d35 for Farmatiko/ClientApp/src/app/dialogs/worker-dialog
- Timestamp:
- 01/31/21 06:27:26 (4 years ago)
- Branches:
- master
- Children:
- de9d697
- Parents:
- 7520f88
- Location:
- Farmatiko/ClientApp/src/app/dialogs/worker-dialog
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/ClientApp/src/app/dialogs/worker-dialog/worker-dialog.component.css
r7520f88 r28d7d35 1 button { 2 float: right; 3 } -
Farmatiko/ClientApp/src/app/dialogs/worker-dialog/worker-dialog.component.html
r7520f88 r28d7d35 1 <h3>Повеќе инфо </h3>1 <h3>Повеќе информации</h3> 2 2 <br> 3 <p>ИД: {{worker.id}}</p> 4 <p>Име: {{worker.name}}</p> 5 <p>Гранка: {{worker.branch}}</p> 6 <p>Титула: {{worker.title}}</p> 7 <br> 8 <p>Институција: {{worker.facility.name}}</p> 9 <p>{{worker.facility.municipality}}</p> 10 <p>{{worker.facility.type}}</p> 11 <br> 12 <p><a (click)="close()">Затвори</a></p> 3 <table class="table table-striped"> 4 <tbody> 5 <tr> 6 <td>Име</td> 7 <td>{{worker?.name}}</td> 8 </tr> 9 <tr> 10 <td>Гранка</td> 11 <td>{{worker?.branch}}</td> 12 </tr> 13 <tr> 14 <td>Титула</td> 15 <td>{{worker?.title}}</td> 16 </tr> 17 </tbody> 18 <br> 19 <tbody *ngIf="worker?.facility"> 20 <tr> 21 <td>Институција</td> 22 <td>{{worker?.facility?.name}}</td> 23 </tr> 24 <tr *ngIf="isExpanded"> 25 <td>Општина</td> 26 <td>{{worker?.facility?.municipality}}</td> 27 </tr> 28 <tr *ngIf="isExpanded"> 29 <td>Тип</td> 30 <td>{{worker?.facility?.type}}</td> 31 </tr> 32 <tr *ngIf="isExpanded"> 33 <td>Адреса</td> 34 <td>{{worker.facility?.address}}</td> 35 </tr> 36 <tr *ngIf="isExpanded"> 37 <td>Е-пошта</td> 38 <td>{{worker.facility?.email}}</td> 39 </tr> 40 <tr *ngIf="isExpanded"> 41 <td>Телефон</td> 42 <td>{{worker.facility?.phone}}</td> 43 </tr> 44 </tbody> 45 <tbody *ngIf="!worker?.facility"> 46 <tr> 47 <td>Институција</td> 48 <td>Нема податок</td> 49 </tr> 50 <tr *ngIf="isExpanded"> 51 <td>Општина</td> 52 <td>Нема податок</td> 53 </tr> 54 <tr *ngIf="isExpanded"> 55 <td>Тип</td> 56 <td>Нема податок</td> 57 </tr> 58 <tr *ngIf="isExpanded"> 59 <td>Адреса</td> 60 <td>Нема податок</td> 61 </tr> 62 <tr *ngIf="isExpanded"> 63 <td>Е-пошта</td> 64 <td>Нема податок</td> 65 </tr> 66 <tr *ngIf="isExpanded"> 67 <td>Телефон</td> 68 <td>Нема податок</td> 69 </tr> 70 </tbody> 71 </table> 72 <button mat-icon-button color="primary" *ngIf="!isExpanded" (click)="toggleExpansion()" style="min-width: 100%"> 73 <mat-icon>expand_more</mat-icon> 74 </button> 75 <button mat-icon-button color="primary" *ngIf="isExpanded" (click)="toggleExpansion()" style="min-width: 100%"> 76 <mat-icon>expand_less</mat-icon> 77 </button> 78 <p><button mat-button color="primary" (click)="close()">Затвори</button></p> -
Farmatiko/ClientApp/src/app/dialogs/worker-dialog/worker-dialog.component.ts
r7520f88 r28d7d35 10 10 export class WorkerDialogComponent implements OnInit { 11 11 worker: IHealthcareWorkers; 12 isExpanded: boolean = false; 12 13 13 14 constructor(private dialogRef: MatDialogRef<WorkerDialogComponent>, @Inject(MAT_DIALOG_DATA) data) { … … 22 23 } 23 24 25 toggleExpansion() { 26 this.isExpanded = !this.isExpanded; 27 } 28 24 29 }
Note:
See TracChangeset
for help on using the changeset viewer.