-
Notifications
You must be signed in to change notification settings - Fork 5
/
fuelTransactionProvider.html
91 lines (82 loc) · 5.11 KB
/
fuelTransactionProvider.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
<!DOCTYPE html>
<html>
<head>
<title>Fuel Transaction Provider (by Geotab)</title>
<link href="https://cdn.jsdelivr.net/gh/Geotab/addin-fuel-transaction-provider@master/css/bootstrap.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/gh/Geotab/addin-fuel-transaction-provider@master/css/fuelTransactionProvider.css" rel="stylesheet">
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/Geotab/addin-fuel-transaction-provider@master/js/fuelTransactionProvider.js"></script>
</head>
<body>
<div id="fuelTransactionProviderId" class="app bootstrap" style="display: none">
<div class="container-fluid">
<section class="row">
<div class="col-sm-12">
<h1>Fuel Transaction Provider</h1>
<p>Save the customer id assigned by your fuel transaction provider to enable automated fuel transaction importing. Fuel transactions will be imported once per 24 hour period. <em>Fuel card provider account number should include leading zeros, no spaces or hyphens.</em></p>
</div>
</section>
<section class="row alerts">
<div class="col-sm-12">
<div id="dummy" style="visibility: hidden" class="alert alert-info"> </div>
<div id="alertInfo" style="display: none;" class="alert alert-info">
<div class="spinner">
<div class="rect1"></div>
<div class="rect2"></div>
<div class="rect3"></div>
<div class="rect4"></div>
<div class="rect5"></div>
</div>
<span></span>
</div>
<div id="alertSuccess" style="display: none" class="alert alert-success"><span></span></div>
<div id="alertError" style="display: none" class="alert alert-danger">Error: <span></span></div>
</div>
</section>
<section class="row" id="form">
<div class="col-sm-12 col-lg-8">
<div class="form-group">
<button type="submit" class="btn btn-primary" id="save" title="Save customer id">Save</button>
<button type="reset" class="btn" id="reset" title="Reset">Reset</button>
</div>
<table class="table">
<thead>
<tr>
<th>Customer Id</th>
<th>Provider</th>
<th>Last Imported</th>
<th> </th>
</tr>
</thead>
<tbody id="accountSettings">
</tbody>
</table>
</div>
</section>
</div>
</div>
<script type="text/html" id="accountSettingsTempl">
<tr class="accountSetting" id="<%=id%>">
<td><input type="text" class="form-control customerId" required="required" value="<%=customerId%>" placeholder="Customer Id" title="Fuel card provider account number (must include leading zeros, no spaces or hyphens)"></td>
<td>
<select class="form-control provider" title="The fuel card data provider" <%= '' %>>
<option value="Unknown" <%= fuelTransactionProvider === 'Unknown' ? 'selected="selected"' : '' %> >Unknown</option>
<option value="Comdata" <%= fuelTransactionProvider === 'Comdata' ? 'selected="selected"' : '' %> >Comdata</option>
<option value="Fuelman" <%= fuelTransactionProvider === 'Fuelman' ? 'selected="selected"' : '' %> >Fuelman</option>
<option value="Wex" <%= fuelTransactionProvider === 'Wex' ? 'selected="selected"' : '' %> >WEX</option>
<option value="WexCanada" <%= fuelTransactionProvider === 'WexCanada' ? 'selected="selected"' : '' %> >WEX Canada</option>
<option value="GFN" <%= fuelTransactionProvider === 'GFN' ? 'selected="selected"' : '' %> >GFN</option>
<option value="Allstar" <%= fuelTransactionProvider === 'Allstar' ? 'selected="selected"' : '' %> >All Star</option>
<option value="Keyfuels" <%= fuelTransactionProvider === 'Keyfuels' ? 'selected="selected"' : '' %> >Keyfuels</option>
<option value="TFC" <%= fuelTransactionProvider === 'TFC' ? 'selected="selected"' : '' %> >TFC</option>
<option value="Voyager" <%= fuelTransactionProvider === 'Voyager' ? 'selected="selected"' : '' %> >Voyager</option>
<option value="EFS" <%= fuelTransactionProvider === 'EFS' ? 'selected="selected"' : '' %> >EFS</option>
</select>
</td>
<td><input type="text" class="form-control lastRun" disabled="disabled" value="<%=lastRun%>" placeholder="Never" title="The last imported file date (UTC)"></td>
<td><%= button === 'remove' ? '<button type="button" class="btn btn-default remove" aria-label="Left Align">
<span class="icon icon-remove" aria-hidden="true"></span>
</button>' : ' ' %></td>
</tr>
</script>
</body>
</html>