|
1 | 1 |
|
2 | | -<form [formGroup]="projectsForm"> |
3 | | - <div class="form-group"> |
4 | | - <label>Project:</label> |
5 | | - <div class="form-control autocomplete"> |
6 | | - <ng-select |
7 | | - formControlName="project_id" |
8 | | - bindLabel="search_field" |
9 | | - placeholder="Enter the project name" |
10 | | - notFoundText="No projects found" |
11 | | - [items]="listProjectsShowed" |
12 | | - (search)="onSearch($event)" |
13 | | - (change)="onSelect($event)" |
14 | | - (close)="loadActiveTimeEntry()"> |
15 | | - |
16 | | - <ng-template ng-option-tmp let-item="item"> |
| 2 | +<div class="table-responsive"> |
| 3 | + <table class="table table-sm table-striped table-bordered mb-0" aria-hidden="true"> |
| 4 | + <thead class="thead-blue"> |
| 5 | + <tr class="d-flex"> |
| 6 | + <th class="col md-col">Quick selections</th> |
| 7 | + </tr> |
| 8 | + </thead> |
| 9 | + <tbody> |
| 10 | + <tr class="d-flex" *ngFor="let item of listRecentProjects" > |
| 11 | + <td class="col md-col"> |
17 | 12 | <div class="flex flex-wrap flex-row justify-between"> |
18 | 13 | <div class="p-2 text-xs"> |
19 | 14 | <span>{{item.customer.name}}</span> - |
|
23 | 18 | <button |
24 | 19 | *ngIf="showClockIn" |
25 | 20 | class="btn btn-sm btn-primary btn-select" |
| 21 | + (click)="clockIn(item.id, item.customer.name, item.name)" |
26 | 22 | > |
27 | 23 | Clock In |
28 | 24 | </button> |
|
38 | 34 | </button> |
39 | 35 | </div> |
40 | 36 | </div> |
41 | | - </ng-template> |
42 | | - </ng-select> |
43 | | - </div> |
44 | | - </div> |
45 | | -</form> |
46 | | - |
47 | | -<div class="table-responsive"> |
48 | | - <table class="table table-sm table-striped table-bordered mb-0" aria-hidden="true"> |
49 | | - <thead class="thead-blue"> |
50 | | - <tr class="d-flex"> |
51 | | - <th class="col md-col">Latest projects you worked on</th> |
| 37 | + </td> |
52 | 38 | </tr> |
53 | | - </thead> |
54 | | - <tbody> |
55 | | - <tr class="d-flex" *ngFor="let item of listRecentProjects" > |
56 | | - <td class="col md-col"> |
| 39 | + </tbody> |
| 40 | + </table> |
| 41 | + <br> |
| 42 | +</div> |
| 43 | + |
| 44 | +<form [formGroup]="projectsForm"> |
| 45 | + <div class="form-group"> |
| 46 | + <label>Project:</label> |
| 47 | + <div class="form-control autocomplete"> |
| 48 | + <ng-select |
| 49 | + formControlName="project_id" |
| 50 | + bindLabel="search_field" |
| 51 | + placeholder="Enter the project name" |
| 52 | + notFoundText="No projects found" |
| 53 | + [items]="listProjectsShowed" |
| 54 | + (search)="onSearch($event)" |
| 55 | + (change)="onSelect($event)" |
| 56 | + (close)="loadActiveTimeEntry()"> |
| 57 | + <ng-template ng-option-tmp let-item="item"> |
57 | 58 | <div class="flex flex-wrap flex-row justify-between"> |
58 | 59 | <div class="p-2 text-xs"> |
59 | 60 | <span>{{item.customer.name}}</span> - |
|
63 | 64 | <button |
64 | 65 | *ngIf="showClockIn" |
65 | 66 | class="btn btn-sm btn-primary btn-select" |
66 | | - (click)="clockIn(item.id, item.customer.name, item.name)" |
67 | 67 | > |
68 | 68 | Clock In |
69 | 69 | </button> |
|
79 | 79 | </button> |
80 | 80 | </div> |
81 | 81 | </div> |
82 | | - </td> |
83 | | - </tr> |
84 | | - </tbody> |
85 | | - |
86 | | - </table> |
87 | | - <br> |
88 | | -</div> |
| 82 | + </ng-template> |
| 83 | + </ng-select> |
| 84 | + </div> |
| 85 | + </div> |
| 86 | +</form> |
0 commit comments