/
project.html
233 lines (223 loc) · 8.5 KB
/
project.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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Project Locomotive</title>
<link rel="stylesheet" type="text/css" href="semantic/dist/semantic.min.css">
<link rel="stylesheet" href="/node_modules/semantic-ui-calendar/dist/calendar.min.css" />
<script
src="https://code.jquery.com/jquery-3.1.1.min.js"
integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
crossorigin="anonymous"></script>
<script src="semantic/dist/semantic.min.js"></script>
<script type="text/javascript" src="/node_modules/semantic-ui-calendar/dist/calendar.min.js"></script>
</head>
<body onload="Load()" >
<div class="ui secondary pointing menu" id="navbarUtama">
<a class="active item" onclick="location.href = '/'">
Home
</a>
<div class="right menu">
<!--<a class="ui item">-->
<!--Logout-->
<!--</a>-->
</div>
</div>
<div class="ui active inverted dimmer" id="projectLoader">
<div class="ui text loader">Loading</div>
</div>
<div class="ui text container" style="padding: 2em">
<div class="ui segment">
<div class="content">
<div class="header" style="padding: 8px"><h1 id="pName">Project Name</h1></div>
</div>
<div class="content" style="padding: 2em" id="projectPageContent">
<!--<div>Project ID : </div>-->
<!--<div>Description : </div>-->
<!--<div>Start Date : </div>-->
<!--<div>End Date : </div>-->
<!--<div>Budget : </div>-->
<!--<div>Expense : </div>-->
<!--<div>Sisa : </div>-->
<table>
<tbody>
<tr>
<td><strong>Project ID </strong></td>
<td id="pId" ></td>
</tr>
<tr>
<td width="100"><strong>Description </strong></td>
<td id="pDesc"></td>
</tr>
<tr>
<td width="100"><strong>Start Date </strong></td>
<td id="pStartDate"></td>
</tr>
<tr>
<td width="100"><strong>End Date </strong></td>
<td id="pEndDate"></td>
</tr>
<tr>
<td width="100"><strong>Budget </strong></td>
<td id="pBudget"></td>
</tr>
<tr>
<td width="100"><strong>Expense </strong></td>
<td id="pExpense"></td>
</tr>
<tr>
<td width="100"><strong>Sisa </strong></td>
<td id="pSisa"></td>
</tr>
</tbody>
</table>
</div>
<button class="ui button" id="projectEditButton" href="/"><i class="edit icon"></i>Edit</button>
<button class="ui button blue" id="projectReportButton"><i class="icon check circle"></i>Report</button>
<button class="ui right floated button positive " onclick="projectDone()">Done</button>
<button class="ui right floated button negative " onclick="projectDelete()">Delete</button>
</div>
</div>
<div class="ui text container" style="padding: 2em">
<h1>Project Schedule</h1>
<form class="ui form equal width" id="projectScheduleForm">
<div class="fields">
<div class="field">
<h3>Masukan Tanggal</h3>
<div class="ui calendar" id="pCalendarDate">
<div class="ui input left icon">
<i class="calendar icon"></i>
<input type="text" placeholder="Date">
</div>
</div>
</div>
<div class="field">
<h3>Masukan Jam</h3>
<div class="ui calendar" id="pCalendarTime">
<div class="ui input left icon">
<i class="time icon"></i>
<input type="text" placeholder="Time">
</div>
</div>
</div>
</div>
<div class="field">
<label>Deskripsi Jadwal</label>
<textarea id="pScheduleDesc" rows="3" ></textarea>
</div>
<button type="submit" class="ui button" >Add Schedule</button>
</form>
</div>
<div class="ui text container" style="padding: 1em" >
<table class="ui selectable celled table">
<thead>
<tr>
<th>No</th>
<th>Tanggal</th>
<th>Jam</th>
<th>Desc</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody id="pDateBody">
<tr class="">
<td>1</td>
<td>August 8, 2018</td>
<td>9:00 AM</td>
<td>Take di RS</td>
<td class="selectable positive" style="text-align: center">
<i class="icon check circle"></i>
</td>
<td class="selectable negative" style="text-align: center">
<i class="icon close"></i>
</td>
</tr>
</tbody>
</table>
</div>
<div class="ui text container" style="padding: 2em">
<h1>Project Budget</h1>
<form class="ui form" id="projectAddExpense" >
<div class="field">
<label>Pengeluaran</label>
<input type="text" placeholder="Masukan nominal pengeluaran" id="pInputExpense">
</div>
<div class="field">
<label>Expense Type</label>
<div class="ui selection dropdown">
<input id="pInputExpenseType">
<i class="dropdown icon"></i>
<div class="default text"></div>
<div class="menu">
<div class="item" data-value="Direct Rent">Direct Rent</div>
<div class="item" data-value="Direct Labor">Direct Labor</div>
<div class="item" data-value="FOH">FOH</div>
<div class="item" data-value="Other">Other</div>
</div>
</div>
</div>
<div class="field">
<label>Deskripsi Pengeluaran</label>
<textarea rows="3" id="pInputExpenseDesc"></textarea>
</div>
<button type="submit" class="ui button" >Tambah Pengeluaran</button>
</form>
</div>
<div class="ui text container" style="padding: 1em">
<table class="ui selectable celled table">
<thead>
<tr>
<th>No</th>
<th>Expense Desc</th>
<th>Expense Type</th>
<th style="text-align: center">Amount</th>
<th></th>
</tr>
</thead>
<tbody id="pBudgetBody">
<tr>
<td>1</td>
<td>Sewa Super Kamera</td>
<td>20000</td>
<td class="selectable negative" style="text-align: center">
<a href="#">Delete</a>
</td>
</tr>
</tbody>
</table>
</div>
<div class="ui text container" style="padding: 1em">
<h1>Project Attachment</h1>
<table class="ui selectable celled table">
<thead>
<tr>
<th>No</th>
<th style="text-align: center">View</th>
<th style="text-align: center">Delete</th>
</tr>
</thead>
<tbody id="pAttachmentBody">
<tr>
<td>1</td>
<td>Link</td>
<td class="selectable negative" style="text-align: center">
<a href="#">Delete</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<script src="https://www.gstatic.com/firebasejs/4.12.1/firebase.js"></script>
<script src="firebase_config.js"></script>
<script src="https://www.gstatic.com/firebasejs/4.12.1/firebase-database.js"></script>
<script src="http://chancejs.com/chance.min.js"></script>
<script src="budget.js"></script>
<script src="project.js"></script>
<script src="schedule.js"></script>
</body>
</html>