-
Notifications
You must be signed in to change notification settings - Fork 0
/
group_signup.html
165 lines (114 loc) · 5.47 KB
/
group_signup.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
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.6/handlebars.min.js"></script>
<script type="text/javascript" src="vendor/swag/lib/swag.js"></script>
<script type="text/javascript" src="js/data.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="css/user.css" rel="stylesheet">
<script>
$(document).ready(function(){
var template = Handlebars.compile($("#groups-signup-template").html());
$("#content").append(template(data));
$("#nearby_groups").hide();
var input = document.getElementById('searchTextField');
var options = {
types: ['(cities)'],
componentRestrictions: {country: "us"}
};
autocomplete = new google.maps.places.Autocomplete(input,options);
google.maps.event.addListener(autocomplete, 'place_changed', function () {
var place = autocomplete.getPlace();
document.getElementById('state').value = place.address_components[2].short_name;
document.getElementById('city').value = place.name;
document.getElementById('latitude').value = place.geometry.location.lat();
document.getElementById('longitude').value = place.geometry.location.lng();
$("#nearby_groups").show();
});
});
</script>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCjDTJc7RFsQQAf7D3z_FhJ51HjdiR77y0&libraries=places"></script>
<script type="text/javascript" src="js/public.js"></script>
</head>
<body>
<div class="container">
<a href="./"><h2> <img src="img/logo.png" height="50">Affinity</h2></a>
<hr>
<div id="content"></div>
<script id="groups-signup-template" type="text/x-handlebars-template">
<div class="group_page">
<h2>Sign Up to be an group leader</h2>
<p>This is some exciting text about why you should be a group leader</p>
<div class="well ">
<div class="row">
<div class="col-md-6">
<h4><i class="fa fa-user"></i> Your Contact Information</h4>
<div class="row">
<div class="col-md-6">
<div class="form-group ">
<label for="">First Name</label>
<input type="text" class="form-control" id="" placeholder="">
</div>
</div>
<div class="col-md-6">
<div class="form-group ">
<label for="">Last Name</label>
<input type="text" class="form-control" id="" placeholder="">
</div>
</div>
</div>
<div class="form-group">
<label for="">Email</label>
<input type="email" class="form-control" id="" placeholder="">
</div>
<div class="form-group">
<label for="">Phone</label>
<input type="phone" class="form-control" id="" placeholder="">
</div>
</div>
<div class="col-md-6">
<h4><i class="fa fa-map-marker"></i> Group Location</h4>
<div class="form-group col-md-8">
<label for="">City</label>
<input type="text" class="form-control" id="searchTextField" value="" placeholder="Enter a city..">
</div>
<input id="latitude" name="latitude" type="hidden">
<input id="longitude" name="longitude" type="hidden">
<input id="city" name="city" type="hidden">
<input id="state" name="state" type="hidden">
<div class="form-group col-md-12" id="nearby_groups">
<h4>Nearby Groups</h4>
<small>Check out the groups near you and see if you might want to join one before starting a new group</small><br>
{{#each group.nearby_groups}}
<a href="{{url}}" target="_blank">{{name}}</a>, <small>{{distance}} miles away</small><br>
{{/each}}
<br>
</div>
<div class="form-group col-md-6" >
<label for="">Suggested group range</label>
<select class="form-control">
<option>5 miles</option>
<option >10 miles</option>
<option selected>25 miles</option>
<option>50 miles</option>
<option>1000 miles</option>
</select>
</div>
</div>
</div>
<div class="row">
<div class="form-group col-md-10">
<label for=""><i class="fa fa-bullhorn"></i> Why would you be a great local leader?</label>
<textarea class="form-control" id="" placeholder="Tell us a bit about yourself and why you are passionate to orgazine in your community" rows=6></textarea>
</div>
</div>
<button class="btn btn-lg btn-primary ">Signup to be a leader</button>
</div>
</div>
</script>
</div>
</body>
</html>