-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
143 lines (134 loc) · 6.67 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>DEMO - Timesheet</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/flatpickr.min.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body>
<div class="container" id="app">
<div class="row">
<div class="col">
<!-- <label class="form-control mt-3 mb-5 text-center"> Dynamic Employee Timesheet Schedule - DEMO </label> -->
<p class="text-lg-center h1 mt-3 mb-5">Dynamic Employee Timesheet Schedule - DEMO</p>
</div>
</div>
<div class="form-group row justify-content-md-center">
<div class=" row col-sm-4">
<label class="col-sm-4 form-control-label">Date Begin<span class="text-danger">*</span></label>
<div class="col-sm-8">
<input type="text" required parsley-type="text" class="form-control" id="datebegin" v-model="datefrom" placeholder="" disabled>
</div>
</div>
<div class=" row col-sm-4">
<label class="col-sm-4 form-control-label">Date End<span class="text-danger">*</span></label>
<div class="col-sm-8">
<input type="text" required parsley-type="text" class="form-control" id="dateend" v-model="dateto" placeholder="" disabled>
</div>
</div>
<div class="btn-group btn-group-sm" role="group">
<button type="button" id="btnlistaservicios" class="btn btn-outline-secondary btn-sm" disabled> New Schedule</button>
<button type="button" id="btnlistaservicios" class="btn btn-outline-secondary btn-sm" disabled>Import JSON</button>
<button type="button" id="btnlistaservicios" class="btn btn-outline-secondary btn-sm" disabled>Export JSON</button>
<button type="button" id="btnlistaservicios" @click="generateSchedule(rows, datefrom, dateto);" class="btn btn-outline-secondary btn-sm">Refresh</button>
</div>
</div>
<div class="row clearfix">
<div class="col-md-12" >
<br>
<div class=" wrapper">
<table class="table table-sm table-bordered table-hover" id="myTable">
<thead id="thead" class="thead-light"></thead>
<tbody id="tbody"></tbody>
<tfoot id="tfoot"></tfoot>
</table>
</div>
</div>
</div>
<br>
<div class="row">
<div class="col">
<label class="form-control mb-2 text-center" style="background-color: white;"> AVAILABLE </label>
</div>
<div class="col">
<label class="form-control mb-2 text-center text-white" style="background-color: red;"> FULL DAY </label>
</div>
<div class="col">
<label class="form-control mb-2 text-center text-white" style="background-color: purple;"> HALF DAY </label>
</div>
<div class="col">
<label class="form-control mb-2 text-center text-white" style="background-color: green;"> DAY OFF </label>
</div>
<div class="col">
<label class="form-control mb-2 text-center text-white" style="background-color: orange;"> VACATION </label>
</div>
<div class="col">
<label class="form-control mb-2 text-center text-white" style="background-color: blue;"> HOLIDAY </label>
</div>
</div>
<hr>
<!-- </div>
<div class="container" > -->
<table class="table table-hover table-striped table-sm">
<thead>
<tr>
<th style="width: 20px;">No.</th>
<th>Employee Name</th>
<th style="width: 130px;">From date</th>
<th style="width: 130px;">To date</th>
<th style="width: 150px;">Type</th>
<th style="width: 180px;"></th>
</tr>
</thead>
<tbody>
<tr v-for="(row, index) in rows" v-bind:key="row.index">
<td>
{{ index +1 }}
</td>
<td>
<input class="form-control" v-model="row.employee"/>
</td>
<td>
<input class="form-control text-center" id="datebegint" v-model="row.datebegin"/>
</td>
<td>
<input class="form-control text-center" id="dateendt" v-model="row.dateend"/>
</td>
<td>
<select class="form-control" v-model="row.type">
<option value="FULL DAY">FULL DAY</option>
<option value="HALF DAY">HALF DAY</option>
<option value="DAY OFF">DAY OFF</option>
<option value="VACATION">VACATION</option>
<option value="HOLIDAY">HOLIDAY</option>
</select>
</td>
<td>
<button class="btn btn-primary btn-xs" @click="addRow(index)" disabled>Add</button>
<button class="btn btn-danger btn-xs" @click="removeRow(index)" disabled>Delete</button>
</td>
</tr>
</tbody>
<tfoot>
</tfoot>
</table>
<!-- <pre>{{ $data }}</pre> -->
</div>
<!-- <script src="dayjs.min.js"></script> -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dayjs.min.js"></script>
<!-- <script src="plugin/isBetween.js"></script> -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/plugin/isBetween.js"></script>
<!-- <script src="moment.min.js"></script> -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/moment.min.js"></script>
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/flatpickr.min.js"></script>
<!-- <script src="vue.js"></script> -->
<script src="app.js"></script>
</body>
</html>