Last change
on this file since 6e6f04b was 28d7d35, checked in by Mile Jankuloski <mile.jankuloski@…>, 4 years ago |
Maps, geolocation api, dialogs & more
|
-
Property mode
set to
100644
|
File size:
2.2 KB
|
Line | |
---|
1 |
|
---|
2 | <app-nav-menu></app-nav-menu>
|
---|
3 |
|
---|
4 | <mat-tab-group dynamicHeight mat-stretch-tabs>
|
---|
5 | <mat-tab class="tab" label="Здравствени установи">
|
---|
6 | <div class="wrapper">
|
---|
7 | <div class="header">
|
---|
8 | <h2>Здравствени установи
|
---|
9 | <button mat-icon-button color="primary" (click)="refreshMap()" [disabled]="!showMap">
|
---|
10 | <mat-icon>refresh</mat-icon>Освежи
|
---|
11 | </button>
|
---|
12 | <button mat-icon-button color="accent" [disabled]="clicked" (click)="toggleMap(); clicked = true">
|
---|
13 | <mat-icon>map</mat-icon>Активирај
|
---|
14 | </button>
|
---|
15 | </h2>
|
---|
16 | <div class="map-wrapper" *ngIf="showMap">
|
---|
17 | <div class="map-frame">
|
---|
18 | <div id="map" style="height: 400px;" leaflet [leafletOptions]="options"></div>
|
---|
19 | </div>
|
---|
20 | </div>
|
---|
21 |
|
---|
22 | <mat-form-field>
|
---|
23 | <input matInput (keyup)="applyFilterFacilities($event.target.value)" placeholder="Пронајди установа">
|
---|
24 | </mat-form-field>
|
---|
25 | </div>
|
---|
26 | <table class='table table-striped' aria-labelledby="tableLabel" *ngIf="true">
|
---|
27 | <thead>
|
---|
28 | <tr>
|
---|
29 | <th>Име</th>
|
---|
30 | <th>Општина</th>
|
---|
31 | <th>Тип</th>
|
---|
32 | </tr>
|
---|
33 | </thead>
|
---|
34 | <tbody>
|
---|
35 | <tr *ngFor="let facility of filteredFacilities" (click)="openFacilityDialog(facility)" class="tableRow">
|
---|
36 | <td>{{ facility.name }}</td>
|
---|
37 | <td>{{ facility.municipality }}</td>
|
---|
38 | <td>{{ facility.type }}</td>
|
---|
39 | </tr>
|
---|
40 | </tbody>
|
---|
41 | </table>
|
---|
42 | </div>
|
---|
43 | </mat-tab>
|
---|
44 | <mat-tab class="tab" label="Здравствени работници">
|
---|
45 | <div class="wrapper">
|
---|
46 | <div class="header">
|
---|
47 | <h2>Здравствени работници</h2>
|
---|
48 | <mat-form-field>
|
---|
49 | <input matInput (keyup)="applyFilterWorkers($event.target.value)" placeholder="Пронајди работник">
|
---|
50 | </mat-form-field>
|
---|
51 | </div>
|
---|
52 | <table class='table table-striped' aria-labelledby="tableLabel" *ngIf="true">
|
---|
53 | <thead>
|
---|
54 | <tr>
|
---|
55 | <th>Име</th>
|
---|
56 | <th>Гранка</th>
|
---|
57 | </tr>
|
---|
58 | </thead>
|
---|
59 | <tbody>
|
---|
60 | <tr *ngFor="let worker of filteredWorkers" (click)="openWorkerDialog(worker)" class="tableRow">
|
---|
61 | <td>{{ worker.name }}</td>
|
---|
62 | <td>{{ worker.branch }}</td>
|
---|
63 | </tr>
|
---|
64 | </tbody>
|
---|
65 | </table>
|
---|
66 | </div>
|
---|
67 | </mat-tab>
|
---|
68 | </mat-tab-group>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.