This repository has been archived by the owner on May 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
197 lines (148 loc) · 6.78 KB
/
index.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
<html>
<head>
<title>About You and Your Pets: MORE TH>N Pet Insurance</title>
<link rel="shortcut icon" href="https://rsagroup.usablenet.net/h5/pet/images/favicon.w_pet_1470065886000hc.ico">
<!-- load in the MoreThan css -->
<link href="https://rsagroup.usablenet.net/h5/pet/module/styles.w_320-wk_Safari_-v1.546hc.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://rsagroup.usablenet.net/h5/pet/css/step-1.w_320-wk_Safari_-pet-1490263378000hc.css" />
<link rel="stylesheet" href="https://rsagroup.usablenet.net/h5/pet/css/steps.w_320-wk_Safari_-pet-1490263378000hc.css" />
<!-- bootstrap not part of morethan css so hardcode the form layout -->
<style type="text/css">
form {padding:10px;display:block; }
fieldset { width:calc(45% - 0.3em); display:inline-block; vertical-align:top; padding:2%;border-radius:20px; background:rgba(0,116,34,0.5);margin-left:2%;margin-right:2%; }
fieldset:nth-child(2n+2) { margin-left:4%; }
fieldset:last-of-type { width:96%; }
legend { display:inline-block; width:100%; padding-top:2.5em;}
div.submit { width:96%; margin:2em 2%;}
</style>
<!-- load the angular codebase -->
<script src="http://code.angularjs.org/1.2.6/angular.js"></script>
<!-- load our angular implementation js -->
<script src="app.js"></script>
</head>
<body>
<header class="main-header">
<section class="header-help-content">
<ul class="group-header">
<li>
<div class="header-button" >
<div>
<a target="_blank" href="r/www.morethan.com/customer-help/answers/pet"><div>Frequently Asked Questions:</div><p class="xx-small-text yellow">Visit our customer help centre</p></a>
</div>
</div>
</li>
<li>
<div class="header-button" >
<div>
<a href="#a">Phone: Call us on <span class="tel-number">0330 100 7824</span><p class="xx-small-text yellow">Mon-Fri 8am to 9pm, Sat-Sun 9am to 5pm</p></a>
</div>
</div>
</li>
<li>
<div class="header-button" id=lpButton-application-top>
<div>
<a href="#a">Online Chat:<p class="xx-small-text yellow">Speak to an online chat representative</p></a>
</div>
</div>
</li>
<li class="text-right"><button class="btn-help close s-col-2 m-col-3 l-col-2">Close</button></li>
</ul>
</section>
<section class="help-heading">
<div class="header-img"></div>
<div class="toggleHelpContent">
<ul class="group">
<li class="text-left">
<a href="/h5/pet/step-1"><img src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAkUAAEALAAAAAABAAEAAAICTAEAOw==" data-bundle="global/logo-morethan.png" class="header-logo" /></a>
</li>
<li class="text-right">
<button class="btn-help s-col-2 m-col-3 l-col-2">
<span class="d-hide">Help</span>
<span class="m-hide t-hide">Need Help?</span>
</button>
</li>
</ul>
</div>
</section>
</header>
<!-- set a container for the angular driven app (rather than using angular on the entire body) -->
<section ng-app="validationApp" ng-controller="mainController" >
<form name="userForm" ng-submit="submitForm(userForm.$valid)" novalidate>
<fieldset>
<legend>About your Pet</legend>
<div ng-class="{ 'has-error' : userForm.petname.$invalid && !userForm.petname.$pristine }">
<label for="petname">Pet's Name</label>
<input type="text" placeholder="Pet's name" name="petname" id="petname" value="" ng-model="petname" required class="textfield"/>
<p ng-show="userForm.petname.$invalid && !userForm.petname.$pristine" class="help-block">Pet's name is required.</p>
</div>
<div>
<label for="pettype">Type of your Pet</label>
<input type="text" placeholder="Type of pet (cat/dog/hamster)" name="pettype" id="pet.type" value="" ng-model="pettype" required class="textfield"/>
<p></p>
</div>
<div>
<label>Pet's Gender</label>
<ul>
<li><label ><input type="radio" name="petgender" value="male" id="petgender-male" ng-model="pet.gender" required> Male</label></li>
<li><label ><input type="radio" name="petgender" value="female" id="petgender-female" ng-model="petgender" required> Female</label></li>
</ul>
<p></p>
</div>
<div>
<label for="petdob">Pet's Date of Birth</label>
<input type="date" name="petdob" id="petdob" value="" ng-model="pet.dob" required class="textfield"/>
<p></p>
</div>
<div>
<label>Is Pet Chipped or Tagged</label>
<ul>
<li><label ><input type="radio" name="petchipped" value="yes" id="petchipped_yes" ng-model="pet.chipped" required>Yes</label></li>
<li><label ><input type="radio" name="petchipped" value="no" id="petchipped_no" ng-model="pet.chipped" required> No</label></li>
<li><label ><input type="radio" name="petchipped" value="unknown" id="petchipped_unknown" ng-model="pet.chipped" required> Don't know</label></li>
</ul>
<p></p>
</div>
</fieldset>
<fieldset>
<legend>About You</legend>
<div>
<label for="title">Title</label>
<input type="text" placeholder="Your title" name="title" id="title" value="" ng-model="user.title" required class="textfield"/>
<p></p>
</div>
<div>
<label for="name">Name</label>
<input type="text" placeholder="Your name" name="name" id="name" value="" ng-model="user.name" required class="textfield"/>
<p></p>
</div>
<div>
<label for="dob">Date of Birth</label>
<input type="date" name="dob" id="dob" value="" ng-model="user.dob" required class="textfield"/>
<p></p>
</div>
<div ng-class="{ 'has-error' : userForm.email.$invalid && !userForm.email.$pristine }>
<label for="email">Email</label>
<input type="email" placeholder="Your email address" name="email" id="email" value="" ng-model="user.email" required class="textfield"/>
<p ng-show="userForm.email.$invalid && !userForm.email.$pristine" class="help-block">Enter a valid email.</p>
</div>
<div>
<label for="tel">Telephone number</label>
<input type="text" placeholder="Your telephone number" name="tel" id="tel" value="" ng-model="user.tel" required class="textfield"/>
<p></p>
</div>
</fieldset>
<fieldset>
<legend>About the Policy</legend>
<div>
<label for="policystart">Pet's Date of Birth</label>
<input type="date" name="policystart" id="policystart" value="" ng-model="policy.start" required class="textfield"/>
<p></p>
</div>
</fieldset>
<div class="submit">
<button type="submit" class="btn btn-primary" ng-disabled="userForm.$invalid">Continue</Button>
</div>
</form>
</section>
</body>
</html>