-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeedback_form.html
203 lines (180 loc) · 7.25 KB
/
feedback_form.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
198
199
200
201
202
203
<!DOCTYPE html>
<html lang="en">
<head>
<!-- SITE TITTLE -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Consortium for Community Development</title>
<!-- PLUGINS CSS STYLE -->
<!-- Bootstrap -->
<link href="plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Themefisher Font -->
<link href="plugins/themefisher-font/style.css" rel="stylesheet">
<!-- Slick Carousel -->
<link href="plugins/slick/slick.css" rel="stylesheet">
<!-- Slick Carousel Theme -->
<link href="plugins/slick/slick-theme.css" rel="stylesheet">
<link href="lib/ionicons/css/ionicons.min.css" rel="stylesheet">
<!-- CUSTOM CSS -->
<link href="css/style.css" rel="stylesheet">
<!-- FAVICON -->
<link href="images/logo.png" rel="shortcut icon">
</head>
<body class="body-wrapper">
<nav class="navbar main-nav fixed-top navbar-expand-lg">
<div class="container">
<a class="navbar-brand" href="homepage.html"></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="tf-ion-android-menu"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link scrollTo" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link scrollTo" href="index.html">About</a>
</li>
<li class="nav-item">
<a class="nav-link scrollTo" href="index.html">What we do</a>
</li>
<li class="nav-item">
<a class="nav-link scrollTo" href="index.html">Projects</a>
</li>
<li class="nav-item">
<a class="nav-link scrollTo" href="index.html">Support Us</a>
</li>
<li class="nav-item">
<a class="nav-link scrollTo" href="index.html">Team</a>
</li>
<li class="nav-item">
<a class="nav-link scrollTo" href="feedback_form.html">Contact</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<!-- Section: Contact v.1 -->
<section class="my-5">
<!-- Section heading -->
<h2 class="h1-responsive font-weight-bold text-center my-5">Contact us</h2>
<!-- Section description
<p class="text-center w-responsive mx-auto pb-5"></p>-->
<!-- Grid row -->
<div class="row">
<!-- Grid column -->
<div class="col-lg-4">
<!-- Form with header -->
<div class="card">
<div class="card-body">
<!-- Header -->
<div class="form-header blue accent-1">
<h3 class="mt-2"><i class="fas fa-envelope"></i> Write to us:</h3>
</div>
<p class="dark-grey-text">We are committed to responding to your feedback to us.</p>
<!-- Body -->
<form action="send_mail.php" method="post">
<div class="md-form">
<i class="fas fa-user prefix grey-text"></i>
<label for="form-name">Your name</label>
<input type="text" id="form-name" name="first_name" class="form-control">
</div>
<div class="md-form">
<i class="fas fa-envelope prefix grey-text"></i>
<label for="form-email">Your email</label>
<input type="text" id="form-email" name="email_address" class="form-control">
</div>
<div class="md-form">
<i class="fas fa-tag prefix grey-text"></i>
<label for="form-Subject">Subject</label>
<input type="text" id="form-Subject" class="form-control">
</div>
<div class="md-form">
<i class="fas fa-pencil-alt prefix grey-text"></i>
<label for="form-text">Send message</label>
<textarea id="form-text" name="comments"class="form-control md-textarea" rows="3"></textarea>
</div><br>
<div class="text-center" style="float:left" >
<button id="status" style="cursor: pointer" class="btn btn-primary">Submit</button>
</div>
</form>
</div>
</div>
<!-- Form with header -->
</div>
<!-- Grid column -->
<!-- Grid column -->
<div class="col-lg-8">
<!--Google map-->
<div id="map-container-section" class="z-depth-1-half map-container-section mb-4" style="height: 400px">
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1497.7626680619803!2d33.0268334817888!3d0.34407879993710655!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x177dd9072c8773a9%3A0xed4bd45976ee4795!2sUnnamed+Road!5e1!3m2!1sen!2sug!4v1565613968365!5m2!1sen!2sug" width="650" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>
</div><br>
<!-- Buttons-->
<div class="row text-center">
<div class="col-md-4">
<a class="btn-floating blue accent-1">
<i class="fas fa-map-marker-alt"></i>
</a>
<p style="float:left; font-size: 15px">Lweru A Village</p>
<p style="float:left;font-size: 15px" > Lweru ward </p>
<p style="float:left;font-size: 15px"> Buikwe- Kiyindi Road Buikwe</p>
<p style="float:left;font-size: 15px">Buikwe Town council Uganda</p>
</div>
<div class="col-md-4">
<a class="btn-floating blue accent-1">
<i class="fas fa-phone"></i>
</a>
<p style="float:left; font-size: 15px">+256 757584910</p>
<p style="float:left; font-size: 15px">+256 705632178</p>
<p style="float:left; font-size: 15px">Mon - Fri, 8:00-17:00</p>
</div>
<div class="col-md-4">
<a class="btn-floating blue accent-1">
<i class="fas fa-envelope"></i>
</a>
<p style="float:left; font-size: 15px">info@forestcoffeefarmersltd.com</p>
</div>
</div>
</div>
<!-- Grid column -->
</div>
<!-- Grid row -->
</section>
<!-- Section: Contact v.1 -->
</div>
<script>
function validateForm() {
var name = document.getElementById('form-name').value;
if (name == "") {
document.getElementById('status').innerHTML = "Name cannot be empty";
return false;
}
var email = document.getElementById('form-email').value;
if (email == "") {
document.getElementById('status').innerHTML = "Email cannot be empty";
return false;
} else {
var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
if(!re.test(email)){
document.getElementById('status').innerHTML = "Email format invalid";
return false;
}
}
var subject = document.getElementById('subject').value;
if (subject == "") {
document.getElementById('status').innerHTML = "Subject cannot be empty";
return false;
}
var message = document.getElementById('form-text').value;
if (message == "") {
document.getElementById('status').innerHTML = "Message cannot be empty";
return false;
}
document.getElementById('status').innerHTML = "Sending...";
document.getElementById('contact-form').submit();
}
</script>
</body>
</html>