-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWidget.html
106 lines (105 loc) · 4.48 KB
/
Widget.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
<div>
<div class="well">
<h1>Step 1: Enter locations</h1>
<div id='find'>
<div id='CRCSearch'>
<br>
<input type="text" id="searchText" value="CRC" />
<br>
<br>
<button class="btn btn-primary" data-dojo-attach-event="onclick:search">Find via consent No</button>
<br>
<br>
<div class="alert alert-info" id='info' style="display:none">
</div>
<div id='addLoc' style="display:none">
<button id='addButton' class="btn btn-primary" data-dojo-attach-event="onclick:consentDisplay" disabled="true">Add location</button>
</div>
<br>
</div>
<br>
<h2>or via address</h2>
<br>
<div id='consentSearch'></div>
<br>
<button id='addSearchLoc' class="btn btn-primary" data-dojo-attach-event="onclick:location">Add location</button>
<br>
<br>
</div>
<div class="alert alert-success">
<h4>Current locations:</h4>
<div id='current' style='display:none'>
</div>
</div>
<div id='currentloading' style="width: 50%;margin: 0 auto; display:none"><img src="images\loading.gif"></div>
</div>
<div class="well">
<div id='locations'>
<h1>Step 2: Enter start location</h1>
<div id='start'>
<h3>Use depot location or</h3>
<select id="startSelect" onchange="configureDropDownLists(this,document.getElementById('endSelect'))">
<option value=""></option>
<option value="Timaru">Timaru</option>
<option value="Christchurch">Christchurch</option>
<option value="Amberley">Amberley</option>
<option value="Kaikoura">Kaikoura</option>
</select>
<br>
<h3>Search for location</h3>
<p>
<div id='startSearch'></div>
<div id='startError' style='display:none'>Location not valid</div>
</p>
</div>
<br>
<div id="toggleEndLoc" class="checkbox">
<label>
<input type="checkbox" onclick="toggleEndLoc();" /> My end location is different
</label>
</div>
<div id="endloc" style="display:none">
<br>
<h2>End Location: </h2>
<div id='end'>
<h3>Use depot location or</h3>
<select id="endSelect">
<option value=""></option>
<option value="Timaru">Timaru</option>
<option value="Christchurch">Christchurch</option>
<option value="Amberley">Amberley</option>
<option value="Kaikoura">Kaikoura</option>
</select>
<h3>Search for location</h3>
<p>
<div id='endSearch'></div>
<div id='endError' style='display:none'>Location not valid</div>
</p>
<br>
</div>
</div>
</div>
</div>
<div class="well">
<h1>Step 3: Calculate distances & charges</h1>
<br>
<button id='route' class="btn btn-primary" data-dojo-attach-event="onclick:route">Calculate</button>
<button id='clear' class="btn btn-primary" data-dojo-attach-event="onclick:clear">Clear</button>
<br>
<br>
<div id='results' style="display:none" class="alert alert-info"></div>
<div id="routeResult" class="alert alert-info" style="display:none"></div>
<div id='calcloading' style="width: 50%;margin: 0 auto; display:none"><img src="images\loading.gif"></div>
<div id="chargeable" class="alert alert-success" role="alert" style="display:none;"></div>
</div>
<!--<div class="well">
<h1>Step 4: Calculate charges</h1>
<br>
<button id='apportion' class="btn btn-primary hidden" data-dojo-attach-event="onclick:ratio" disabled="true">Calculate</button>
<br>
<br>
</div>-->
<div id='returnButton'>
<button id='return' class="btn btn-primary" data-dojo-attach-event="onclick:return" >Return to trip splitter</button>
</div>
</div>