blob: 028414cfce1ccabe9386ebee3173d3ea7243e77e (
plain)
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
|
{% extends 'website/templates/base.html' %}
{% load widget_tweaks %}
{% block current %}
Contact Us
{% endblock %}
{% block content %}
{% if mailsent %}
<p>Thank you for contacting us ! We will be reaching you out soon.</p>
{% else %}
<p>Feel free to drop us a message regarding any of your queries.</p>
<div class="row">
<div class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
<form id="contact" action="{% url 'website:contact' %}" method="POST" role="form">{% csrf_token %}
<div class="form-group">
<label for="id_username">Name:</label>
{% render_field form.username class+='form-control' %}
{{ form.username.errors }}
</div>
<div class="form-group">
<label for="id_useremail">Email:</label>
{% render_field form.useremail class+='form-control' %}
{{ form.useremail.errors }}
</div>
<div class="form-group">
<label for="id_subject">Subject:</label>
{% render_field form.subject class+='form-control' %}
{{ form.subject.errors }}
</div>
<div class="form-group">
<label for="id_message">Message:</label>
{% render_field form.message class+='form-control' %}
{{ form.message.errors }}
</div>
<input class="btn btn-primary" type="submit" value="Send">
</form>
</div> <!-- /.col -->
</div> <!-- /.row -->
{% endif %}
{% endblock %}
|