Skip to content

Commit 1e08c5a

Browse files
authored
fix: TT-60 Change the position of the component displaying the latest… (#885)
* fix: TT-60 Change the position of the component displaying the latest projects * Blank space removed * blank spaces elimited
1 parent 18552ec commit 1e08c5a

File tree

1 file changed

+36
-38
lines changed

1 file changed

+36
-38
lines changed
Lines changed: 36 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11

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">
1712
<div class="flex flex-wrap flex-row justify-between">
1813
<div class="p-2 text-xs">
1914
<span>{{item.customer.name}}</span> -
@@ -23,6 +18,7 @@
2318
<button
2419
*ngIf="showClockIn"
2520
class="btn btn-sm btn-primary btn-select"
21+
(click)="clockIn(item.id, item.customer.name, item.name)"
2622
>
2723
Clock In
2824
</button>
@@ -38,22 +34,27 @@
3834
</button>
3935
</div>
4036
</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>
5238
</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">
5758
<div class="flex flex-wrap flex-row justify-between">
5859
<div class="p-2 text-xs">
5960
<span>{{item.customer.name}}</span> -
@@ -63,7 +64,6 @@
6364
<button
6465
*ngIf="showClockIn"
6566
class="btn btn-sm btn-primary btn-select"
66-
(click)="clockIn(item.id, item.customer.name, item.name)"
6767
>
6868
Clock In
6969
</button>
@@ -79,10 +79,8 @@
7979
</button>
8080
</div>
8181
</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

Comments
 (0)