-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd-no_prompt.html
152 lines (118 loc) · 5.79 KB
/
add-no_prompt.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
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<base href="../../">
<meta charset="utf-8">
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
More info: h5bp.com/i/378 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1">
<link rel="stylesheet" href="css/application.css">
<link rel="stylesheet" href="css/brand.css">
<link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml" />
<!-- All JavaScript at the bottom, except this Modernizr build. -->
<script src="js/vendor/modernizr.custom.82447.js"></script>
<script src="js/WEX.js"></script>
</head>
<body>
<div class="container" data-page="auth">
<div class="ui-panel">
<header>
<h2>Add Card - No-Prompt Card</h2>
</header>
<div class="padding-all">
<div class="row">
<div class="span8 well">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras dolor velit, varius a mattis a, dictum in diam. Duis nibh sapien, sodales ac fermentum id, tempor nec augue. Sed tristique elit et sapien eleifend sodales. Nulla facilisi.</p>
</div>
</div>
</div>
<form action="#" class="form-horizontal">
<div class="padding-sides">
<fieldset>
<legend class="margin-no-bottom">Available Products</legend>
<div class="control-group">
<p>Please select products that are available for purchase:</p>
<div class="controls">
<label class="radio">
<input type="radio" name="available_products" value="all" checked>
Fuel, Service and Other miscellaneous items
</label>
<label class="radio">
<input type="radio" name="available_products" value="both">
Fuel and Service
</label>
<label class="radio">
<input type="radio" name="available_products" value="fuel">
Fuel Only
</label>
</div>
<div id="fuel_only" class="controls margin-top margin-left">
<label class="checkbox">
<input type="checkbox" name="diesel_only">
For fuel, allow Diesel fueld purchase only.
</label>
</div>
</div>
</fieldset>
<fieldset>
<legend class="margin-no-bottom">Cardholder Information</legend>
<div class="control-group">
<label class="control-label required" for="">First Name:</label>
<div class="controls"><input type="text" required></div>
</div>
<div class="control-group">
<label class="control-label" for="">Middle Name:</label>
<div class="controls"><input type="text"></div>
</div>
<div class="control-group">
<label class="control-label required" for="">Last Name:</label>
<div class="controls"><input type="text" required></div>
</div>
<div class="control-group">
<label class="control-label required" for="">Embossing on Card:</label>
<div class="controls">
<input type="text" placeholder="18 character max" required>
<p class="help-block">Note: It is suggested that you use the cardholder name.</p>
</div>
</div>
</fieldset>
</div>
<div class="form-actions padding-sides">
<a href="#" class="pull-left">Cancel</a>
<button class="btn btn-primary btn-large pull-right">Next</button>
</div>
</form>
</div>
</div>
<script>
(function() {
var $fuel_only;
function init() {
$fuel_only = $('#fuel_only');
bindFuelOnlyLisener();
}
function bindFuelOnlyLisener() {
$fuel_only.addClass('invisible');
$(document.body)
.on(':radio','change', handleFuelyOnlyValue)
.find(':radio:checked').each(function() {
handleFuelyOnlyValue.call(this);
});
}
function handleFuelyOnlyValue() {
var is_on = $(this).val() == 'fuel';
$fuel_only[is_on ? 'fadeIn' : 'fadeOut']('fast');
if (!is_on) $fuel_only.attr('checked', false);
}
WEX(init);
})();
</script>
</body>
</html>