- Timestamp:
- 07/29/20 19:46:21 (4 years ago)
- Branches:
- master
- Children:
- 4e72684
- Parents:
- e42f61a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/ClientApp/src/app/dashboard/dashboard.component.html
re42f61a rde18858 12 12 <div class="navbar-collapse collapse d-sm-inline-flex flex-sm-row-reverse"> 13 13 <ul class="navbar-nav flex-grow"> 14 <li>Logged as ...</li>14 <li>Logged as <!--{{head.Name}}--> </li> 15 15 </ul> 16 16 </div> … … 19 19 <mat-menu #menu="matMenu"> 20 20 <button mat-menu-item (click)="openDialog()"><mat-icon>person_add</mat-icon>View homepage</button> 21 <button mat-menu-item (click)="test()"><mat-icon> 21 <button mat-menu-item (click)="test()"><mat-icon>directions</mat-icon>Go to homepage</button> 22 22 </mat-menu> 23 23 </div> … … 30 30 <div class="header"> 31 31 <h2>Мои аптеки</h2> 32 <p *ngIf="!mypharmacies"><em>Loading...</em></p> 32 33 </div> 33 34 <table class='table table-striped table-bordered table-sm' cellspacing="0" width="100%" aria-labelledby="tableLabel" *ngIf="true"> 34 35 <thead> 35 36 <tr> 36 <th>Placeholder1</th> 37 <th>Placeholder2</th> 38 <th>Placeholder3</th> 39 <th>Placeholder4</th> 37 <th>Име</th> 38 <th>Локација</th> 39 <th>Адреса</th> 40 <th>Работи 24/7</th> 41 <th>Actions</th> 40 42 </tr> 41 43 </thead> 42 44 <tbody> 43 <tr *ngFor="let facility of facilities"> 44 <td>data1</td> 45 <td>data2</td> 46 <td>data3</td> 47 <td>data4</td> 45 <tr *ngFor="let pharmacies of mypharmacies"> 46 <td>{{pharmacies.name}}</td> 47 <td>{{pharmacies.location}}</td> 48 <td>{{pharmacies.address}}</td> 49 <td>{{pharmacies.workAllTime}}</td> 50 <td><a (click)="works24hrs(pharmacies)">Работи 24/7</a> | <a (click)="doesntWork24hrs(pharmacies)">Не работи 24/7</a></td> 48 51 </tr> 49 52 </tbody> … … 56 59 <h2>Сите аптеки</h2> 57 60 <mat-form-field> 58 <input matInput (keyup)="applyFilter ($event.target.value)" placeholder="Пронајди аптека">61 <input matInput (keyup)="applyFilterPharmacies($event.target.value)" placeholder="Пронајди аптека"> 59 62 </mat-form-field> 60 63 </div> 61 64 <table [dataSource]="dataSource" mat-table matSort class="mat-elevation-z8"> 62 <ng-container matColumnDef="Име"> 65 <ng-container matColumnDef="Име">a 63 66 <th mat-header-cell *matHeaderCellDef mat-sort-header> Име </th> 64 <td mat-cell *matCellDef="let facilities"> {{facilities.name}} </td>67 <td mat-cell *matCellDef="let pharmacies"> {{pharmacies.name}} </td> 65 68 </ng-container> 66 69 67 <ng-container matColumnDef=" Општина">68 <th mat-header-cell *matHeaderCellDef mat-sort-header> Општина </th>69 <td mat-cell *matCellDef="let facilities"> {{facilities.municipality}} </td>70 <ng-container matColumnDef="Локација"> 71 <th mat-header-cell *matHeaderCellDef mat-sort-header> Локација </th> 72 <td mat-cell *matCellDef="let pharmacies"> {{pharmacies.location}} </td> 70 73 </ng-container> 71 74 72 75 <ng-container matColumnDef="Адреса"> 73 76 <th mat-header-cell *matHeaderCellDef mat-sort-header> Адреса </th> 74 <td mat-cell *matCellDef="let facilities"> {{facilities.address}} </td>77 <td mat-cell *matCellDef="let pharmacies"> {{pharmacies.address}} </td> 75 78 </ng-container> 76 77 <ng-container matColumnDef="Тип"> 78 <th mat-header-cell *matHeaderCellDef mat-sort-header> Тип </th> 79 <td mat-cell *matCellDef="let facilities"> {{facilities.type}} </td> 80 </ng-container> 81 82 <ng-container matColumnDef="Е-пошта"> 83 <th mat-header-cell *matHeaderCellDef mat-sort-header> Е-пошта </th> 84 <td mat-cell *matCellDef="let facilities"> {{facilities.email}} </td> 85 </ng-container> 86 87 <ng-container matColumnDef="Телефон"> 88 <th mat-header-cell *matHeaderCellDef mat-sort-header> Телефон </th> 89 <td mat-cell *matCellDef="let facilities"> {{facilities.phone}} </td> 79 80 <ng-container matColumnDef="Actions"> 81 <th mat-header-cell *matHeaderCellDef mat-sort-header> Actions </th> 82 <td mat-cell *matCellDef="let pharmacies"> <a (click)="claimPharmacy(pharmacies)">Claim Pharmacy</a> </td> 90 83 </ng-container> 91 84 92 <tr mat-header-row *matHeaderRowDef="displayedColumns "></tr>93 <tr mat-row *matRowDef="let row; columns: displayedColumns ;"></tr>85 <tr mat-header-row *matHeaderRowDef="displayedColumnsPharmacies"></tr> 86 <tr mat-row *matRowDef="let row; columns: displayedColumnsPharmacies;"></tr> 94 87 </table> 95 88 <mat-paginator #paginator [pageSize]="5" [pageSizeOptions]="[5, 10, 20, 100]"></mat-paginator> … … 97 90 </mat-tab> 98 91 </mat-tab-group> 92 93 <div class="statusbar">{{status}}</div> 99 94 100 95 <div class="wrapper"> … … 104 99 <input matInput (keyup)="applyFilter($event.target.value)" placeholder="Пронајди лек"> 105 100 </mat-form-field> 106 </div>101 </div> 107 102 <table [dataSource]="dataSource" mat-table matSort class="mat-elevation-z8"> 108 103 <ng-container matColumnDef="Име"> 109 104 <th mat-header-cell *matHeaderCellDef mat-sort-header> Име </th> 110 <td mat-cell *matCellDef="let facilities"> {{facilities.name}} </td>105 <td mat-cell *matCellDef="let mymedicines"> {{mymedicines.name}} </td> 111 106 </ng-container> 112 107 113 <ng-container matColumnDef=" Општина">114 <th mat-header-cell *matHeaderCellDef mat-sort-header> Општина </th>115 <td mat-cell *matCellDef="let facilities"> {{facilities.municipality}} </td>108 <ng-container matColumnDef="Јачина"> 109 <th mat-header-cell *matHeaderCellDef mat-sort-header> Јачина </th> 110 <td mat-cell *matCellDef="let mymedicines"> {{mymedicines.strength}} </td> 116 111 </ng-container> 117 112 118 <ng-container matColumnDef=" Адреса">119 <th mat-header-cell *matHeaderCellDef mat-sort-header> Адреса </th>120 <td mat-cell *matCellDef="let facilities"> {{facilities.address}} </td>113 <ng-container matColumnDef="Форма"> 114 <th mat-header-cell *matHeaderCellDef mat-sort-header> Форма </th> 115 <td mat-cell *matCellDef="let mymedicines"> {{mymedicines.form}} </td> 121 116 </ng-container> 122 117 123 <ng-container matColumnDef=" Тип">124 <th mat-header-cell *matHeaderCellDef mat-sort-header> Тип</th>125 <td mat-cell *matCellDef="let facilities"> {{facilities.type}} </td>118 <ng-container matColumnDef="Начин на издавање"> 119 <th mat-header-cell *matHeaderCellDef mat-sort-header> Начин на издавање </th> 120 <td mat-cell *matCellDef="let mymedicines"> {{mymedicines.wayOfIssuing}} </td> 126 121 </ng-container> 127 122 128 <ng-container matColumnDef=" Е-пошта">129 <th mat-header-cell *matHeaderCellDef mat-sort-header> Е-пошта</th>130 <td mat-cell *matCellDef="let facilities"> {{facilities.email}} </td>123 <ng-container matColumnDef="Производител"> 124 <th mat-header-cell *matHeaderCellDef mat-sort-header> Производител </th> 125 <td mat-cell *matCellDef="let mymedicines"> {{mymedicines.manufacturer}} </td> 131 126 </ng-container> 132 127 133 <ng-container matColumnDef="Телефон"> 134 <th mat-header-cell *matHeaderCellDef mat-sort-header> Телефон </th> 135 <td mat-cell *matCellDef="let facilities"> {{facilities.phone}} </td> 128 <ng-container matColumnDef="Цена"> 129 <th mat-header-cell *matHeaderCellDef mat-sort-header> Цена </th> 130 <td mat-cell *matCellDef="let mymedicines"> {{mymedicines.price}} </td> 131 </ng-container> 132 133 <ng-container matColumnDef="Пакување"> 134 <th mat-header-cell *matHeaderCellDef mat-sort-header> Пакување </th> 135 <td mat-cell *matCellDef="let mymedicines"> {{mymedicines.packaging}} </td> 136 </ng-container> 137 138 <ng-container matColumnDef="Actions"> 139 <th mat-header-cell *matHeaderCellDef mat-sort-header> Actions </th> 140 <td mat-cell *matCellDef="let mymedicines"> <a (click)="medicineExists(mymedicines)">Exists</a> | <a (click)="medicineDoesntSell(mymedicines)">Doesnt sell</a> </td> 136 141 </ng-container> 137 142
Note:
See TracChangeset
for help on using the changeset viewer.