-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex-new.html
140 lines (137 loc) · 7.8 KB
/
index-new.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/vis-timeline-graph2d.min.css">
<link rel="stylesheet" href="app.css">
<title>Campanario's System</title>
</head>
<body>
<div id="app">
<!-- Modal -->
<div class="modal fade" id="employeeModal" tabindex="15" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">{{employeeName}}'s Timesheet</h5>
<button type="button" class="close" data-dismiss="modal"><span>×</span></button>
</div>
<div class="modal-body">
<div v-if="employeeNote != ''" class="form-group">
<textarea class="form-control" readonly id="exampleFormControlTextarea1"
rows="3">{{employeeNote}}</textarea>
</div>
<div v-for="item of items">
<div
v-bind:class="{ 'input-group shadow p-3 mb-5 bg-white rounded': item.open, 'input-group': !item.open }">
<input class="form-control" type="checkbox" id="selecionado" v-model="item.selecionado"
v-if="item.type != 'Scheduled'">
<select class="form-control" v-model="item.type" v-if="item.type != 'Scheduled'">
<option>Push</option>
<option>Work</option>
<option>Break</option>
<option>Lunch</option>
<option>Home</option>
</select>
<input type="text" readonly class="form-control" v-model="item.type"
v-if="item.type === 'Scheduled'">
<input type="text" class="form-control" v-model="item.start">
<input type="text" class="form-control" v-model="item.end" v-if="item.type != 'Home'">
<input type="text" readonly class="form-control" v-model="item.end"
v-if="item.type === 'Home'">
<input type="text" readonly class="form-control" v-model="item.elapsedTime">
</div>
</div>
</div>
<div class="modal-footer">
<div class="btn-group btn-group-sm" role="group" aria-label="Basic example">
<button type="button" class="btn btn-secondary"
v-on:click="removerSheets(modalIdGroup)">Remove</button>
<button type="button" class="btn btn-info"
v-on:click="atualizarSheets(modalIdGroup)">Update</button>
<button type="button" class="btn btn-light btn-sm"
onclick="pushback(modalIdGroup)">Pushback</button>
<button type="button" class="btn btn-success" onclick="startme(modalIdGroup)">Start or
Back</button>
<button type="button" class="btn btn-danger" onclick="breakme(modalIdGroup)">Break</button>
<button type="button" class="btn btn-warning" onclick="lunchme(modalIdGroup)">Lunch</button>
<button type="button" class="btn btn-dark" onclick="homeme(modalIdGroup)">Go Home</button>
</div>
</div>
</div>
</div>
</div>
<form>
<div class="form-row">
<div class="col">
<input v-model="form.nome" type="text" class="form-control" id="nome" placeholder="Employee's name">
</div>
<div class="col">
<select class="form-control" v-model="form.grupo">
<option>Wipedown</option>
<option>Prep</option>
<option>Detail</option>
<option>Cash and Sale</option>
</select>
</div>
<div class="col">
<button type="button" v-on:click="adicionar" class="btn btn-primary">Add</button>
</div>
<div class="col">
Version 4.0 Test
</div>
</div>
<div>
<div class="col">
<button type="button" v-on:click="orderGroupsBySumWork()" class="btn btn-primary">Order
ByWork</button>
<button type="button" v-on:click="orderGroupsByLastWork()" class="btn btn-primary">Order
ByLast</button>
<button type="button" v-on:click="filterWork()" class="btn btn-primary">Filter Work</button>
<button type="button" v-on:click="filterNotHome()" class="btn btn-primary">Filter not Home</button>
<button type="button" v-on:click="subOffSet()" class="btn btn-primary">-</button>
<button type="button" v-on:click="addOffSet()" class="btn btn-primary">+</button>
</div>
</div>
</form>
<div id="TimeLine"></div>
<form>
<div class="form-row">
<div class="col">
<button type="button" v-on:click="apagarSelecionados()" class="btn btn-primary">X</button>
<button type="button" v-on:click="mover()" class="btn btn-primary">Move selected to</button>
</div>
<div class="col">
<select class="form-control" v-model="form.moverPara">
<option>Wipedown</option>
<option>Prep</option>
<option>Detail</option>
<option>Cash and Sale</option>
</select>
</div>
<div class="col">
<button type="button" class="btn btn-dark" onclick="javascript:load();">Load</button>
</div>
</div>
</form>
</div>
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/vis-timeline-graph2d.min.js"></script>
<script src="jquery.mask.min.js"></script>
<script src="app.js"></script>
</body>
</html>