forked from raviriley/agency-jekyll-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.html
125 lines (125 loc) · 7.01 KB
/
contact.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
<!-- Contact -->
{% if site.locale and site.locale != "" and site.locale != nil %}
<section class="page-section" id="{{ site.data.sitetext[site.locale].contact.section | default: "contact" }}">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2 class="section-heading text-uppercase">
{{ site.data.sitetext[site.locale].contact.title | markdownify | default: Contact Us }}</h2>
<h3 class="section-subheading text-muted">{{ site.data.sitetext[site.locale].contact.text | default: "" }}</h3>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<form id="contactForm"
action="https://formspree.io/{% if site.formspree_form_path %}{{ site.formspree_form_path }}{% else %}{{ site.email }}{% endif %}"
novalidate="novalidate" method="POST">
<!--name="sentMessage"-->
<div class="row">
<div class="col-md-6">
<div class="form-group">
<input name="name" class="form-control" id="name" type="text"
placeholder="{{ site.data.sitetext[site.locale].contact.name | default: "Name*" }}"
required="required" data-validation-required-message="{{ site.data.sitetext[site.locale].contact.name-validation | default: "Please enter your name." }}">
<p class="help-block text-danger"></p>
</div>
<div class="form-group">
<input name="_replyto" class="form-control" id="email" type="email"
placeholder="{{ site.data.sitetext[site.locale].contact.email | default: "Email*" }}"
required="required" data-validation-required-message="{{ site.data.sitetext[site.locale].contact.email-validation | default: "Please enter your email address." }}">
<p class="help-block text-danger"></p>
</div>
<div class="form-group">
<input name="phone" class="form-control" id="phone" type="tel"
placeholder="{{ site.data.sitetext[site.locale].contact.phone | default: "Phone Number*" }}"
required="required" data-validation-required-message="{{ site.data.sitetext[site.locale].contact.phone-validation | default: "Please enter your phone number." }}">
<p class="help-block text-danger"></p>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<textarea name="message" class="form-control" id="message"
placeholder="{{ site.data.sitetext[site.locale].contact.message | default: "Message*" }}"
required="required" data-validation-required-message="{{ site.data.sitetext[site.locale].contact.message-validation | default: "Please enter a message." }}"></textarea>
<p class="help-block text-danger"></p>
</div>
</div>
<input type="hidden" name="_subject" id="email-subject"
value="{{ site.data.sitetext[site.locale].contact.subject | default: "Contact Form Submission" }}">
<div class="clearfix"></div>
<div class="col-lg-12 text-center">
<div id="success"></div>
<button id="sendMessageButton" class="btn btn-primary btn-xl text-uppercase"
type="submit">{{ site.data.sitetext[site.locale].contact.submit | default: "Send Message" }}</button>
</div>
<input type="text" name="_gotcha" style="display:none">
<input type="hidden" name="_next" value="#" />
</div>
</form>
</div>
</div>
</div>
</section>
{% else %}
<section class="page-section" id="{{ site.data.sitetext.contact.section | default: "contact" }}">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2 class="section-heading text-uppercase">
{{ site.data.sitetext.contact.title | markdownify | default: Contact Us }}</h2>
<h3 class="section-subheading text-muted">{{ site.data.sitetext.contact.text | default: "" }}</h3>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<form id="contactForm"
action="https://formspree.io/{% if site.formspree_form_path %}{{ site.formspree_form_path }}{% else %}{{ site.email }}{% endif %}"
novalidate="novalidate" method="POST">
<!--name="sentMessage"-->
<div class="row">
<div class="col-md-6">
<div class="form-group">
<input name="name" class="form-control" id="name" type="text"
placeholder="{{ site.data.sitetext.contact.name | default: "Name*" }}"
required="required" data-validation-required-message="{{ site.data.sitetext.contact.name-validation | default: "Please enter your name." }}">
<p class="help-block text-danger"></p>
</div>
<div class="form-group">
<input name="_replyto" class="form-control" id="email" type="email"
placeholder="{{ site.data.sitetext.contact.email | default: "Email*" }}"
required="required" data-validation-required-message="{{ site.data.sitetext.contact.email-validation | default: "Please enter your email address." }}">
<p class="help-block text-danger"></p>
</div>
<div class="form-group">
<input name="phone" class="form-control" id="phone" type="tel"
placeholder="{{ site.data.sitetext.contact.phone | default: "Phone Number*" }}"
required="required" data-validation-required-message="{{ site.data.sitetext.contact.phone-validation | default: "Please enter your phone number." }}">
<p class="help-block text-danger"></p>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<textarea name="message" class="form-control" id="message"
placeholder="{{ site.data.sitetext.contact.message | default: "Message*" }}"
required="required" data-validation-required-message="{{ site.data.sitetext.contact.message-validation | default: "Please enter a message." }}"></textarea>
<p class="help-block text-danger"></p>
</div>
</div>
<input type="hidden" name="_subject" id="email-subject"
value="{{ site.data.sitetext.contact.subject | default: "Contact Form Submission" }}">
<div class="clearfix"></div>
<div class="col-lg-12 text-center">
<div id="success"></div>
<button id="sendMessageButton" class="btn btn-primary btn-xl text-uppercase"
type="submit">{{ site.data.sitetext.contact.submit | default: "Send Message" }}</button>
</div>
<input type="text" name="_gotcha" style="display:none">
<input type="hidden" name="_next" value="#" />
</div>
</form>
</div>
</div>
</div>
</section>
{% endif %}
<!-- End Contact -->