|
1 |
| -<div class="text-center mt-5"> |
2 |
| - <div class="card"> |
3 |
| - <div class="card-header"> |
4 |
| - <div class="row"> |
5 |
| - <div class="col-2 text-left"> |
6 |
| - <strong>Time clock</strong> |
7 |
| - </div> |
8 |
| - <div class="col-10 text-right"> |
9 |
| - <i class="far fa-question-circle"></i> |
10 |
| - </div> |
11 |
| - </div> |
| 1 | +<div class="text-center mt-3"> |
| 2 | + |
| 3 | + <div *ngIf="showAlertEnterTecnology" class="alert alert-danger" role="alert"> |
| 4 | + Field technology is requiered. Enter this field for clock out. |
| 5 | + </div> |
| 6 | + |
| 7 | + <div class="card"> |
| 8 | + <div class="card-header"> |
| 9 | + <div class="row"> |
| 10 | + <div class="col-2 text-left"> |
| 11 | + <strong>Time clock</strong> |
| 12 | + </div> |
| 13 | + <div class="col-10 text-right"> |
| 14 | + <i class="far fa-question-circle"></i> |
12 | 15 | </div>
|
| 16 | + </div> |
| 17 | + </div> |
13 | 18 |
|
14 |
| - <div class="card-body"> |
15 |
| - <p *ngIf="!isClockIn" class="card-title text-left"><strong>{{ username }}</strong> clocked <strong class="text-success">in</strong> at <strong>{{ hour | number: '2.0-2' }}:{{ minute | number: '2.0-2' }}:{{ seconds | number: '2.0-2' }}</strong></p> |
16 |
| - <p *ngIf="isClockIn" class="card-title text-left"><strong>{{ username }}</strong> clocked <strong class="text-danger">out</strong> at <strong>{{ hour | number: '2.0-2' }}:{{ minute | number: '2.0-2' }}:{{ seconds | number: '2.0-2' }}</strong></p> |
17 |
| - <h6 class="text-left"><strong>Totals</strong></h6> |
18 |
| - <hr> |
19 |
| - <div class="row"> |
20 |
| - <div class="col-4"> |
21 |
| - <h6>Current</h6> |
22 |
| - <h3>{{ hourCounterRealTime | number: '2.0-2' }}:{{ minuteCounterRealTime | number: '2.0-2' }}:{{ secondsCounterRealTime | number: '2.0-2' }}</h3> |
23 |
| - </div> |
24 |
| - <div class="col-4"> |
25 |
| - <h6>Day</h6> |
26 |
| - <h3>00:00</h3> |
27 |
| - </div> |
28 |
| - <div class="col-4"> |
29 |
| - <h6>Week</h6> |
30 |
| - <h3>00:00</h3> |
31 |
| - </div> |
32 |
| - </div> |
33 |
| - <h6 class="text-left"><strong>Projects</strong></h6> |
34 |
| - <form> |
35 |
| - <div class="form-group"> |
36 |
| - <input type="text" class="form-control" id="formGroupExampleInput" placeholder=" Search project" style="font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, FontAwesome"> |
37 |
| - </div> |
38 |
| - </form> |
39 |
| - <p class="text-left"><i class="fas fa-folder"></i><strong> Top</strong></p> |
40 |
| - <ul class="list-group"> |
41 |
| - <app-project-list-hover [projects]="projects" (showFields)="setShowFields($event)"></app-project-list-hover> |
42 |
| - </ul> |
43 |
| - <br> |
44 |
| - <form *ngIf="(!isClockIn || showFields) && !isHidenForm"> |
45 |
| - <div class="form-group row"> |
46 |
| - <label for="inputActivity" class="col-sm-2 col-form-label text-center"><strong>Activity</strong></label> |
47 |
| - <div class="col-sm-10"> |
48 |
| - <input type="text" class="form-control"> |
49 |
| - </div> |
50 |
| - </div> |
51 |
| - <div class="form-group row"> |
52 |
| - <label for="inputJiraTicket" class="col-sm-2 col-form-label text-center"><strong>Jira Ticket</strong></label> |
53 |
| - <div class="col-sm-10"> |
54 |
| - <input type="text" class="form-control"> |
55 |
| - </div> |
56 |
| - </div> |
57 |
| - <div class="form-group row"> |
58 |
| - <label for="inputTechnology" class="col-sm-2 col-form-label text-center"><strong>Technology</strong></label> |
59 |
| - <div class="col-sm-10"> |
60 |
| - <input *ngIf="!showAlertEnterTecnology" #data type="text" (keyup)="enterTechnology(data.value)" class="form-control"> |
61 |
| - <input *ngIf="showAlertEnterTecnology" #data type="text" (keyup)="enterTechnology(data.value)" class="form-control border-danger"> |
62 |
| - <div> |
63 |
| - <h6 *ngIf="showAlertEnterTecnology" class="text-danger text-left">Technology field is required. Enter this field to clock out.</h6> |
64 |
| - </div> |
65 |
| - </div> |
66 |
| - </div> |
67 |
| - </form> |
68 |
| - <hr> |
69 |
| - <div class="container"> |
70 |
| - <div class="row"> |
71 |
| - <div class="col text-left" id="optionsContainer"> |
72 |
| - <button class="btn btn-light btn-sm dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> |
73 |
| - Options |
74 |
| - </button> |
75 |
| - </div> |
76 |
| - <div class="col text-right" id="clockInOutContainer"> |
77 |
| - <button *ngIf="isClockIn" class="btn btn-success btn-sm" type="button" (click)="employeClockIn()">Clock In</button> |
78 |
| - <button *ngIf="!isClockIn" class="btn btn-danger btn-sm" type="button" (click)="employeClockOut()">Clock Out</button> |
79 |
| - </div> |
80 |
| - </div> |
81 |
| - </div> |
| 19 | + <div class="card-body"> |
| 20 | + <p *ngIf="!isClockIn" class="card-title text-left"><strong>{{ username }}</strong> clocked <strong |
| 21 | + class="text-success">in</strong> at <strong>{{ clockInUsername }}</strong></p> |
| 22 | + <p *ngIf="isClockIn" class="card-title text-left"><strong>{{ username }}</strong> clocked <strong |
| 23 | + class="text-danger">out</strong> at <strong>{{ clockOutUsername }}</strong></p> |
| 24 | + <h6 class="text-left"><strong>Totals</strong></h6> |
| 25 | + <hr> |
| 26 | + <div class="row"> |
| 27 | + <div class="col-4"> |
| 28 | + <h6>Current</h6> |
| 29 | + <h3>{{ hour | number: '2.0-2' }}:{{ minute | number: '2.0-2' }}:{{ seconds | number: '2.0-2' }}</h3> |
| 30 | + </div> |
| 31 | + <div class="col-4"> |
| 32 | + <h6>Day</h6> |
| 33 | + <h3>4:22</h3> |
| 34 | + </div> |
| 35 | + <div class="col-4"> |
| 36 | + <h6>Week</h6> |
| 37 | + <h3>14:00</h3> |
| 38 | + </div> |
| 39 | + </div> |
| 40 | + <h6 class="text-left"><strong>Projects</strong></h6> |
| 41 | + <form> |
| 42 | + <div class="form-group"> |
| 43 | + <input type="text" class="form-control" id="formGroupExampleInput" placeholder=" Search project" |
| 44 | + style="font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, FontAwesome"> |
| 45 | + </div> |
| 46 | + </form> |
| 47 | + <p class="text-left"><i class="fas fa-folder"></i><strong> Top</strong></p> |
| 48 | + <ul class="list-group"> |
| 49 | + <app-project-list-hover [projects]="projects" (showFields)="setShowFields($event)"></app-project-list-hover> |
| 50 | + </ul> |
| 51 | + <br> |
| 52 | + <form *ngIf="!isClockIn || showFields"> |
| 53 | + <div class="form-group row"> |
| 54 | + <label for="inputActivity" class="col-sm-2 col-form-label text-center"><strong>Activity</strong></label> |
| 55 | + <div class="col-sm-10"> |
| 56 | + <input type="text" class="form-control"> |
| 57 | + </div> |
| 58 | + </div> |
| 59 | + <div class="form-group row"> |
| 60 | + <label for="inputJiraTicket" class="col-sm-2 col-form-label text-center"><strong>Jira Ticket</strong></label> |
| 61 | + <div class="col-sm-10"> |
| 62 | + <input type="text" class="form-control"> |
| 63 | + </div> |
| 64 | + </div> |
| 65 | + <div class="form-group row"> |
| 66 | + <label for="inputTechnology" class="col-sm-2 col-form-label text-center"><strong>Technology</strong></label> |
| 67 | + <div class="col-sm-10"> |
| 68 | + <input #data type="text" (keyup)="enterTechnology(data.value)" class="form-control"> |
| 69 | + </div> |
| 70 | + </div> |
| 71 | + </form> |
| 72 | + <hr> |
| 73 | + <div class="container"> |
| 74 | + <div class="row"> |
| 75 | + <div class="col text-left"> |
| 76 | + <button class="btn btn-light btn-sm dropdown-toggle" type="button" data-toggle="dropdown" |
| 77 | + aria-haspopup="true" aria-expanded="false"> |
| 78 | + Options |
| 79 | + </button> |
| 80 | + </div> |
| 81 | + <div class="col text-right"> |
| 82 | + <button *ngIf="isClockIn" class="btn btn-success btn-sm" type="button" (click)="employeClockIn()">Clock |
| 83 | + In</button> |
| 84 | + <button *ngIf="!isClockIn" class="btn btn-danger btn-sm" type="button" (click)="employeClockOut()">Clock |
| 85 | + Out</button> |
| 86 | + </div> |
82 | 87 | </div>
|
| 88 | + </div> |
83 | 89 | </div>
|
| 90 | + </div> |
84 | 91 | </div>
|
0 commit comments