File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11< div class ="text-center mt-3 ">
2+
23 < div *ngIf ="showAlertEnterTecnology " class ="alert alert-danger " role ="alert ">
34 Field technology is requiered. Enter this field for clock out.
45 </ div >
@@ -45,7 +46,7 @@ <h6 class="text-left"><strong>Projects</strong></h6>
4546 < app-project-list-hover [projects] ="projects " (showFields) ="setShowFields($event) "> </ app-project-list-hover >
4647 </ ul >
4748 < br >
48- < form *ngIf ="!isClockIn || showFields ">
49+ < form *ngIf ="!isClockIn || showFields ">
4950 < div class ="form-group row ">
5051 < label for ="inputActivity " class ="col-sm-2 col-form-label text-center "> < strong > Activity</ strong > </ label >
5152 < div class ="col-sm-10 ">
@@ -80,4 +81,5 @@ <h6 class="text-left"><strong>Projects</strong></h6>
8081 </ div >
8182 </ div >
8283 </ div >
83- </ div >
84+ </ div >
85+ </ div >
Original file line number Diff line number Diff line change @@ -6,22 +6,22 @@ import { Component, OnInit } from '@angular/core';
66 styleUrls : [ './time-clock.component.css' ]
77} )
88export class TimeClockComponent implements OnInit {
9+
910 projects = [
1011 { id : 'P1' , name : 'Project 1' } ,
1112 { id : 'P2' , name : 'Project 2' } ,
1213 { id : 'P3' , name : 'Project 3' } ,
1314 { id : 'P4' , name : 'Project 4' }
1415 ] ;
1516
16- showFields : boolean ;
17-
1817 username = 'Dario' ;
1918 clockInUsername = 'hh:mm:ss' ;
2019 clockOutUsername = 'hh:mm:ss' ;
2120
2221 isClockIn : boolean ;
2322 isEnterTechnology : boolean ;
2423 showAlertEnterTecnology : boolean ;
24+ showFields : boolean ;
2525
2626 constructor ( ) {
2727 this . isClockIn = true ;
You can’t perform that action at this time.
0 commit comments