-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simple timesheet updating working, backend relationship seems to be w…
…orking fine, refactored some minor backend code
- Loading branch information
Showing
9 changed files
with
121 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,128 +1,65 @@ | ||
<content> | ||
<div class="row"> | ||
<h1 class="secondary col-xs-4">TimeSheet</h1> | ||
<ul class="list-inline col-xs-8 emp-info"> | ||
<li>Emp ID: A00111111</li> | ||
<li>Emp Name: John Doe</li> | ||
</ul> | ||
</div> | ||
<div class="row"> | ||
<div class="table-responsive timesheet"> | ||
<ul class="list-inline timesheet-nav"> | ||
<li>< Week</li> | ||
<li class="bg-tertiary">Today</li> | ||
<li>Week ></li> | ||
<div ng-controller="TimesheetController"> | ||
<div class="row"> | ||
<h1 class="secondary col-xs-4">TimeSheet</h1> | ||
<ul class="list-inline col-xs-8 emp-info"> | ||
<li>Emp ID: {{user.id}}</li> | ||
<li>Emp Name: {{user.firstName}} {{user.lastName}}</li> | ||
</ul> | ||
|
||
<table class="table table-hover table-striped table-bordered"> | ||
<tbody> | ||
<tr> | ||
<th>Project No</th> | ||
<th>WP No</th> | ||
<th>Sat</th> | ||
<th>Sun</th> | ||
<th>Mon</th> | ||
<th>Tue</th> | ||
<th>Wed</th> | ||
<th>Thu</th> | ||
<th>Fri</th> | ||
<th>Total</th> | ||
<th>Delete</th> | ||
</tr> | ||
<tr> | ||
<td><select><option>Foo</option><option>Bar</option></select></td> | ||
<td><select><option>Foo</option><option>Bar</option></select></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td><a href="#">Delete</a></td> | ||
</tr> | ||
<tr> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td><a href="#">Delete</a></td> | ||
</tr> | ||
<tr> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td><a href="#">Delete</a></td> | ||
</tr> | ||
<tr> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td><a href="#">Delete</a></td> | ||
</tr> | ||
<tr> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td><a href="#">Delete</a></td> | ||
</tr> | ||
<tr> | ||
<td>Total</td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<footer> | ||
<p class="col-xs-4">Overtime: </p> | ||
<p class="col-xs-4">Flextime: </p> | ||
<button class="btn btn-primary">Add new row</button> | ||
</footer> | ||
</div> | ||
</div> | ||
<footer class="row"> | ||
<div class="col-xs-6"> | ||
<p><input type="checkbox" /><span> Signature</span></p> | ||
<p><input type="checkbox" /><span> Approve</span></p> | ||
<div class="row"> | ||
<div class="table-responsive timesheet"> | ||
<ul class="list-inline timesheet-nav"> | ||
<li>< Week</li> | ||
<li class="bg-tertiary">Today</li> | ||
<li>Week ></li> | ||
</ul> | ||
|
||
<table class="table table-hover table-striped table-bordered"> | ||
<tbody> | ||
<tr> | ||
<th>Project No</th> | ||
<th>WP No</th> | ||
<th>Sat</th> | ||
<th>Sun</th> | ||
<th>Mon</th> | ||
<th>Tue</th> | ||
<th>Wed</th> | ||
<th>Thu</th> | ||
<th>Fri</th> | ||
<th>Total</th> | ||
<th>Delete</th> | ||
</tr> | ||
<tr ng-repeat="r in timesheet.timesheetRows"> | ||
<td><select ng-model="r.projectNumber" ng-change="listWP(r.projectNumber)" ng-options="p for p in projectNumbers"></select></td> | ||
<td><select ng-model="r.workPackageNumber" ng-options="w for w in workPackageNumbers[r.projectNumber]"></select></td> | ||
<td><input type="text" class="form-control" ng-model="r.saturday" /></td> | ||
<td><input type="text" class="form-control" ng-model="r.sunday" /></td> | ||
<td><input type="text" class="form-control" ng-model="r.monday" /></td> | ||
<td><input type="text" class="form-control" ng-model="r.tuesday" /></td> | ||
<td><input type="text" class="form-control" ng-model="r.wednesday" /></td> | ||
<td><input type="text" class="form-control" ng-model="r.thursday" /></td> | ||
<td><input type="text" class="form-control" ng-model="r.friday" /></td> | ||
<td>{{total}}</td> | ||
<td><a href="#">Delete</a></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<footer> | ||
<p class="col-xs-4">Overtime: {{timesheet.overTime}} </p> | ||
<p class="col-xs-4">Flextime: {{timesheet.flexTime}} </p> | ||
<button class="btn btn-primary">Add new row</button> | ||
</footer> | ||
</div> | ||
</div> | ||
<div class="col-xs-6"> | ||
<button class="btn btn-primary">Save</button> | ||
</div> | ||
</footer> | ||
<footer class="row"> | ||
<div class="col-xs-6"> | ||
<p><input type="checkbox" ng-model="timesheet.signed" /><span> Signature</span></p> | ||
<p><input type="checkbox" ng-model="timesheet.approved" /><span> Approve</span></p> | ||
</div> | ||
<div class="col-xs-6"> | ||
<button class="btn btn-primary" ng-click="save()">Save</button> | ||
</div> | ||
</footer> | ||
</div> | ||
</content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.