-
Notifications
You must be signed in to change notification settings - Fork 1
/
cmisApp-customer.html
214 lines (184 loc) · 6.14 KB
/
cmisApp-customer.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
<!DOCTYPE html>
<html>
<head>
<title>Update Insurance Claim Form</title>
<link rel="stylesheet" href="css/login.css" />
<link rel="stylesheet" href="css/cmisApp-common.css" />
<link rel="stylesheet" href="css/cmisApp-customer.css" />
<!-- This is mainly used to get the document ID from the URL. -->
<script src="lib/util.js"></script>
<!-- This is required by cmis.js, from https://github.com/visionmedia/superagent -->
<script src="lib/superagent.js"></script>
<!-- CMIS client from https://github.com/agea/CmisJS -->
<script src="lib/cmis.js"></script>
<!-- My custom app -->
<script src="lib/login.js"></script>
<script src="lib/cmisApp-common.js"></script>
<script src="lib/cmisApp-customer.js"></script>
</head>
<body class="pageBackground">
<!-- Login dialog -->
<div id="loginWindow" class="loginWindow">
<table class="loginTable">
<!-- logo -->
<tr>
<td colspan="2" class="loginLogo"><img src="images/totally-fake-auto-logo.png">
</td>
</tr>
<!-- credentials -->
<tr>
<td> Server </td>
<td>
<input id="server" class="loginValue"></input>
</td>
</tr>
<tr>
<td> Username </td>
<td>
<input id="userName" class="loginValue"></input>
</td>
</tr>
<tr>
<td> Password </td>
<td>
<input id="password" class="loginValue" type="password"></input>
</td>
</tr>
</table>
<!-- button and error message -->
<div class="loginButtonContainer">
<div class="loginButtonItem">
<div id="loginButton" class="loginButton">Log in</div>
<div id="loginButtonDisabled" class="loginButtonDisabled">Wait...</div>
</div>
<div class="loginMessageItem">
<div id="loginMessageWindow" class="loginMessageWindow"><span id="loginMessage" class="loginMessage">message</span>
</div>
</div>
</div>
</div>
<!-- CMIS client app -->
<div id="cmisApp" class="cmisApp">
<!-- Header -->
<table>
<tr>
<td><img src="images/totally-fake-auto-logo.png">
</td>
<td>
</td>
<td>
<span class="formTitle">Update Insurance Claim</span>
</td>
</tr>
</table>
<!-- Comment -->
<table class="section">
<tr>
<td id="claimDeptComment" class="claimDeptComment"> </td>
</tr>
</table>
<!-- Personal Information -->
<table class="section">
<tr>
<td colspan="2">
<span class="sectionLabel">Personal Information</span>
</td>
</tr>
<tr>
<td>
<span class="fieldLabel">Last Name</span>
</td>
<td>
<span class="fieldLabel">First Name</span>
</td>
</tr>
<tr>
<td class="fieldCell">
<input id="lastName" class="fieldValue"></input>
</td>
<td>
<input id="firstName" class="fieldValue"></input>
</td>
</tr>
<tr>
<td colspan="2">
<span class="fieldLabel">Phone Number</span>
</td>
</tr>
<tr>
<td colspan="2">
<input id="phoneMain" class="fieldValue"></input>
</td>
</tr>
</table>
<!-- Policy Information -->
<table class="section">
<tr>
<td>
<span class="sectionLabel">Policy Information</span>
</td>
</tr>
<tr>
<td>
<span class="fieldLabel">Policy ID</span>
</td>
</tr>
<tr>
<td>
<input id="contractId" class="fieldValue"></input>
</td>
</tr>
</table>
<!-- Incident Information -->
<table class="section">
<tr>
<td colspan="2">
<span class="sectionLabel">Incident Information</span>
</td>
</tr>
<tr>
<td>
<span class="fieldLabel">Date</span>
</td>
<td>
<span class="fieldLabel">Type</span>
</td>
</tr>
<tr>
<td>
<input type="date" id="incidentDate" class="fieldValue"></input>
</td>
<td>
<input type="radio" name="incidentType" id="typeAccident" class="myCheckbox"><span class="fieldLabel">Accident</span>
</input>
<input type="radio" name="incidentType" id="typeBreakdown" class="myCheckbox"><span class="fieldLabel">Breakdown</span>
</input>
<input type="radio" name="incidentType" id="typeOther" class="myCheckbox"><span class="fieldLabel">Other</span>
</input>
</td>
</tr>
<tr>
<td colspan="2">
<span class="fieldLabel">Description</span>
</td>
</tr>
<tr>
<td colspan="2">
<textarea id="incidentDescription" class="fieldValue" rows="5"></textarea>
</td>
</tr>
</table>
<!-- Submit button -->
<div class="submitButtonContainer">
<div id="submitButton" class="submitButton">Submit</div>
<div id="submitButton_disabled" class="submitButtonDisabled" hidden="hidden">Please wait...</div>
<!-- This button is not actually visible*, it's just there to prevent the container from resizing when I hide submitButton_disabled. -->
<!-- * If you press 'select all' you'll see the text. -->
<div id="submitButton_done" class="submitButtonDone" hidden="hidden">All done!</div>
</div>
<!-- Result window; this is centered in the window. -->
<div id="resultWindow" class="resultWindow"><span id="submitMessage" class="submitMessage">message</span>
</div>
</div>
</body>
</html>