Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
QLNS_N01
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nguyễn Văn Hiếu
QLNS_N01
Commits
50e259b2
Commit
50e259b2
authored
Jun 16, 2019
by
Phạm Duy Phi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
c489c098
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
38 deletions
+57
-38
src/main/resources/public/pages/timesheet/timeSheet.html
src/main/resources/public/pages/timesheet/timeSheet.html
+35
-23
src/main/resources/public/pages/timesheet/timesheet.html
src/main/resources/public/pages/timesheet/timesheet.html
+22
-15
No files found.
src/main/resources/public/pages/timesheet/timeSheet.html
View file @
50e259b2
<script>
function
showAddTimeSheetFunction
()
{
var
x
=
document
.
getElementById
(
"
addDivTS
"
);
var
n
=
document
.
getElementById
(
"
addTimeSheet
"
);
if
(
x
.
style
.
display
===
"
none
"
)
{
x
.
style
.
display
=
"
block
"
;
n
.
value
=
"
Close
"
;
}
else
{
x
.
style
.
display
=
"
none
"
;
n
.
value
=
"
Add TimeSheet
"
;
}
}
</script>
<!--<!DOCTYPE html>-->
<!--<html lang="en" ng-app="myApp" ng-controller="timesheetController">-->
<!--<head>-->
<!-- <meta charset="UTF-8">-->
<!-- <title>Time Sheet</title>-->
<!-- <meta name="viewport" content="width=device-width, initial-scale=1">-->
<!-- <script src="//unpkg.com/@uirouter/angularjs/release/angular-ui-router.min.js"></script>-->
<!-- <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"-->
<!-- integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"-->
<!-- crossorigin="anonymous"></script>-->
<!-- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"-->
<!-- integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">-->
<!-- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>-->
<!-- <script src="timeSheetController.js"></script>-->
<!--</head>-->
<!--<body>-->
<!--</body>-->
<!--</html>-->
<div
class=
"container"
>
<div
class=
"table-wrapper"
>
<div
class=
"table-title"
>
...
...
@@ -18,11 +25,11 @@
<div
class=
"col-sm-6"
>
<h2><b>
TimeSheet
</b></h2>
<label>
Search:
<input
type=
"text"
ng-model=
"search"
placeholder=
"Search"
style=
"color: black; margin: 10px
"
/>
<input
type=
"text"
ng-model=
"search"
placeholder=
"Search"
style=
"color: black
"
/>
</label>
</div>
<div
class=
"col-sm-6"
>
<input
id=
"addTimeSheet"
class=
"btn btn-success"
data-toggle=
"modal"
type=
"submit"
name=
"addTS"
value=
"Add
TimeSheet
"
onclick=
"showAddTimeSheetFunction()"
/>
<input
id=
"addTimeSheet"
class=
"btn btn-success"
data-toggle=
"modal"
type=
"submit"
name=
"addTS"
value=
"Add"
onclick=
"showAddTimeSheetFunction()"
/>
</div>
</div>
</div>
...
...
@@ -52,15 +59,21 @@
</tr>
<tr>
<td><label>
Employee Project Id
</label></td>
<!-- <td>-->
<!-- <input type="text" maxlength="10" value="" ng-model="tsdto.eprojectId" style="width: 100%;"/>-->
<!-- </td>-->
<td>
<input
type=
"text"
maxlength=
"10"
value=
""
ng-model=
"tsdto.eprojectId"
style=
"width: 100%;"
/>
<select
ng-model=
"tsdto.eprojectId"
>
<option
value=
""
>
Select Project
</option>
<option
ng-repeat=
"ep in eProjectList"
value=
"{{ep.id}}"
>
{{ep.project.name}}
</option>
</select>
</td>
</tr>
<tr>
<td><label>
Employee Id
</label></td>
<td>
<input
type=
"text"
maxlength=
"10"
value=
""
ng-model=
"tsdto.employeeId"
style=
"width: 100%;"
/>
<input
type=
"text"
maxlength=
"10"
value=
""
ng-model=
"tsdto.employeeId"
/>
</td>
</tr>
<tr>
...
...
@@ -119,7 +132,7 @@
</tr>
</thead>
<tbody>
<tr
class=
"tss"
ng-repeat=
"ts in myTimeSheets | limitTo:numLimit:start"
>
<tr
class=
"tss"
ng-repeat=
"ts in myTimeSheets | limitTo:numLimit:start
| filter: search
"
>
<td>
{{$index + 1}}
</td>
<td>
{{ts.title}}
</td>
<td>
{{ts.content}}
</td>
...
...
@@ -131,11 +144,10 @@
<td><a
ui-sref=
"timeSheet"
ng-click=
"getTs(ts);"
onclick=
"document.getElementById('updateDivTS').style.display = 'block'"
class=
"edit"
data-toggle=
"modal"
><i
class=
"material-icons"
data-toggle=
"tooltip"
title=
"Edit"
>

</i></a></td>
<td><a
ui-sref=
"timeSheet"
ng-click=
"delete(ts);"
class=
"delete"
data-toggle=
"modal"
><i
class=
"material-icons"
data-toggle=
"tooltip"
title=
"Delete"
>

</i></a></td>
</tr>
<tr>
<td
colspan=
"9"
style=
'text-align: center'
><span>
Page# {{currentPage}} of {{pages}}
</span>
<span
style=
"float:left;padding:5px"
><a
ng-hide=
"hidePrev()"
href=
""
ng-click=
"PrevPage()"
>
Prev
</a></span>
<span
style=
"float:right;padding:5px"
><a
ng-hide=
"hideNext()"
href=
""
ng-click=
"nextPage()"
>
Next
</a></span></td>
</tr>
<!-- <tr>-->
<!-- <h6><code>rotate</code> defaulted to <code>true</code> and <code>force-ellipses</code> set to <code>true</code>:</h6>-->
<!-- <ul uib-pagination total-items="getAllTimesheet()" ng-model="currentPage" max-size="maxSize" class="pagination-sm" boundary-link-number="true" ng-change ="pageChangedIndex()" items-per-page = "timesheetPerPage" ></ul>-->
<!-- </tr>-->
</tbody>
</table>
</div>
...
...
src/main/resources/public/pages/timesheet/timesheet.html
View file @
50e259b2
<script>
function
showAddTimeSheetFunction
()
{
var
x
=
document
.
getElementById
(
"
addDivTS
"
);
var
n
=
document
.
getElementById
(
"
addTimeSheet
"
);
if
(
x
.
style
.
display
===
"
none
"
)
{
x
.
style
.
display
=
"
block
"
;
n
.
value
=
"
Close
"
;
}
else
{
x
.
style
.
display
=
"
none
"
;
n
.
value
=
"
Add TimeSheet
"
;
}
}
</script>
<!--<!DOCTYPE html>-->
<!--<html lang="en" ng-app="myApp" ng-controller="timesheetController">-->
<!--<head>-->
<!-- <meta charset="UTF-8">-->
<!-- <title>Time Sheet</title>-->
<!-- <meta name="viewport" content="width=device-width, initial-scale=1">-->
<!-- <script src="//unpkg.com/@uirouter/angularjs/release/angular-ui-router.min.js"></script>-->
<!-- <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"-->
<!-- integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"-->
<!-- crossorigin="anonymous"></script>-->
<!-- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"-->
<!-- integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">-->
<!-- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>-->
<!-- <script src="timeSheetController.js"></script>-->
<!--</head>-->
<!--<body>-->
<!--</body>-->
<!--</html>-->
<div
class=
"container"
>
<div
class=
"table-wrapper"
>
<div
class=
"table-title"
>
...
...
@@ -18,11 +25,11 @@
<div
class=
"col-sm-6"
>
<h2><b>
TimeSheet
</b></h2>
<label>
Search:
<input
type=
"text"
ng-model=
"search"
placeholder=
"Search"
style=
"color: black; margin: 10px
"
/>
<input
type=
"text"
ng-model=
"search"
placeholder=
"Search"
style=
"color: black
"
/>
</label>
</div>
<div
class=
"col-sm-6"
>
<input
id=
"addTimeSheet"
class=
"btn btn-success"
data-toggle=
"modal"
type=
"submit"
name=
"addTS"
value=
"Add
TimeSheet
"
onclick=
"showAddTimeSheetFunction()"
/>
<input
id=
"addTimeSheet"
class=
"btn btn-success"
data-toggle=
"modal"
type=
"submit"
name=
"addTS"
value=
"Add"
onclick=
"showAddTimeSheetFunction()"
/>
</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment