-
Notifications
You must be signed in to change notification settings - Fork 1
/
CrimeWatchForm.html
173 lines (140 loc) · 5.59 KB
/
CrimeWatchForm.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Crime Watch Form</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/CrimeWatchForm.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<link href="https://fonts.googleapis.com/css?family=Fjalla+One" rel="stylesheet">
</head>
<script>
function ValidateForm()
{
var form = document.getElementById("CWForm");
console.log(form.elements[4].value);
if(form.elements[4].value === "")
{
form.elements[4].value = "Anonymous";
form.elements[5].value = "";
}
}
</script>
<body>
<form class="form-horizontal" action = "#" onsubmit = "return ValidateForm();" id = "CWForm">
<fieldset>
<!-- Form Name -->
<legend><img src="images/watchdogbanner.png" alt="HackLogo" style="width:400px;height:170px;" id="bannerLogo"><h1 class="title">Crimewatch Form</h1></legend>
<!--This is the NAVIGATION BAR -->
<nav class="navsection">
<ul class="navbar">
<li class="slide" onclick="window.location.href='LandingPage.html'" >Home</li>
<li class="slide" onclick="window.location.href='CommunityForum.html'" >Community Forum </li>
<li class="slide" onclick="window.location.href='crimeMap.html'" >Map</li>
<li class="slide" onclick="window.location.href='CrimeWatchForm.html'" >Crime Watch </li>
</ul>
</nav>
<!--END NAV BAR-->
<br>
<!-- Select Basic -->
<div class="form-group">
<label class="col-md-4 control-label" for="EmergencyType">Type of incident</label>
<div class="col-md-4">
<select id="EmergencyType" name="EmergencyType" class="form-control">
<option value="1">General Crime</option>
<option value="2">Hate Crime</option>
<option value="3">Cyber Crime</option>
</select>
</div>
</div>
<!-- Select Basic -->
<div class="form-group">
<label class="col-md-4 control-label" for="Title">Title</label>
<div class="col-md-4">
<select id="Title" name="Title" class="form-control">
<option value="1">Mr</option>
<option value="2">Miss</option>
<option value="3">Mrs</option>
<option value="4">Other</option>
</select>
</div>
</div>
<!-- Text input-->
<div class="form-group">
<label class="col-md-4 control-label" for="textinput">Forename</label>
<div class="col-md-4">
<input id="textinput" name="Forename" type="text" placeholder="Forename" class="form-control input-md">
</div>
</div>
<!-- Text input-->
<div class="form-group">
<label class="col-md-4 control-label" for="Surname">Surname</label>
<div class="col-md-4">
<input id="Surname" name="Surname" type="text" placeholder="Surname" class="form-control input-md">
</div>
</div>
<!-- Text input-->
<div class="form-group required">
<label class="col-md-4 control-label" for="Location">Location</label>
<div class="col-md-4">
<input id="Location" name="Location" type="text" placeholder="Location of Incident" class="form-control input-md" required="">
</div>
</div>
<!-- Text input-->
<div class="form-group required">
<label class="col-md-4 control-label" for="Date">Date</label>
<div class="col-md-4">
<input id="Date" name="Date" type="text" placeholder="Date of Incident" class="form-control input-md" required="">
</div>
</div>
<!-- Textarea -->
<div class="form-group">
<label class="col-md-4 control-label" for="OtherInfo">Details of Incident</label>
<div class="col-md-4">
<textarea class="form-control" id="OtherInfo" name="OtherInfo">Any extra information you can give on the incident</textarea>
</div>
</div>
<!-- File Button -->
<div class="form-group">
<label class="col-md-4 control-label" for="PhotoButton">Any photos of incident</label>
<div class="col-md-4">
<input id="PhotoButton" name="PhotoButton" class="input-file" type="file">
</div>
</div>
<!-- Button (Double) -->
<div class="form-group">
<label class="col-md-4 control-label" for="Clear Form"></label>
<div class="col-md-8">
<button id="Clear Form" name="Clear Form" class="btn btn-info">Clear Form</button>
<button id="Submit Form" name="Submit Form" class="btn btn-success">Submit Form</button>
</div>
</div>
<!-- Button -->
<div class="form-group">
<label class="col-md-4 control-label" for="BackButton"></label>
<div class="col-md-4">
<button id="BackButton" name="BackButton" class="btn btn-primary" onclick="window.location.href='LandingPage.html'">Back</button>
</div>
</div>
</fieldset>
</form>
<!--This is the FOOTER -->
<div class="footer">
<p>© Copyright <script>new Date().getFullYear()>2010&&document.write(+new Date().getFullYear());</script>, Watch Dog by Charlies Angels @ HackTheHubNI </p>
</ul>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>