-
Notifications
You must be signed in to change notification settings - Fork 2
/
registerp.html
65 lines (58 loc) · 2.61 KB
/
registerp.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
<!DOCTYPE html>
<html>
<head>
<title>Register</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link href="css/custom.css" rel="stylesheet">
<script>
function getStuff() {
var name = document.getElementById("nName").value;
var email = document.getElementById("eEmail").value;
var phone = document.getElementById("pPhone").value;
var data = {name:name, password:"pass1234", mobile_number:phone, email:email, user_type:"public"}
var text = "api:" + JSON.stringify({url:"http://162.243.64.148:80/registration/", data: data, type: "P"})
return text;
}
</script>
</head>
<body>
<div class="container">
<form class="form-signin">
<img class="img-responsive" src="img/logo.png" style="margin-top: 4px;">
<h2 class="form-signin-heading text-center">PARENT SIGN UP</h2>
<p>Enter your names *</p>
<div class="input-group margin-bottom-sm">
<span class="input-group-addon"><i class="fa fa-user"></i></span>
<input id="nName" class="form-control" type="text" placeholder="John Doe">
</div>
<p>Enter your mobile number *</p>
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-phone"></i></span>
<input id="pPhone" onfocus="Android.showNumberPad();" class="form-control" type="text" placeholder="+123418384922">
</div>
<p>Enter your email</p>
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-envelope"></i></span>
<input id="eEmail" class="form-control" type="email" placeholder="[email protected]">
</div>
<p>What is the pupil's name? *</p>
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-users"></i></span>
<input class="form-control" type="text" placeholder="Type your child's name">
</div>
<label class="checkbox">
<input type="checkbox" value="remember-me"> I have read and agreed with the <a href="javascript: void(0)">Terms and Conditions</a> and the <a href="javascript: void(0)">Privacy Policy</a>? *
</label>
<a href="#" onclick='window.Android.register(getStuff());' class="btn btn-lg btn-primary btn-block" type="submit">Sign Up <i class="fa fa-arrow-circle-o-right"></i></a>
</form>
</div> <!-- /container -->
<br>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>