Rushabh Mehta | d616413 | 2012-12-27 18:40:42 +0530 | [diff] [blame] | 1 | {% extends "html/page.html" %} |
| 2 | |
| 3 | {% block javascript %} |
| 4 | {% include "js/contact.js" %} |
| 5 | {% endblock %} |
| 6 | |
| 7 | {% block title %} |
| 8 | Contact Us |
| 9 | {% endblock %} |
| 10 | |
| 11 | {% block content %} |
| 12 | <div class="layout-wrapper"> |
Rushabh Mehta | 84adf1b | 2012-12-28 10:30:46 +0530 | [diff] [blame] | 13 | <div class="layout-main row"> |
Rushabh Mehta | d616413 | 2012-12-27 18:40:42 +0530 | [diff] [blame] | 14 | <div class="web-form span5 pull-left"> |
| 15 | {{ obj.doc.introduction or "<h3>Contact Us</h3>"}} |
Rushabh Mehta | 84adf1b | 2012-12-28 10:30:46 +0530 | [diff] [blame] | 16 | <div class="row"> |
| 17 | <div class="span4"> |
Rushabh Mehta | d616413 | 2012-12-27 18:40:42 +0530 | [diff] [blame] | 18 | <p id="contact-alert" class="alert" |
| 19 | style="display: none;"> </p> |
| 20 | </div> |
Rushabh Mehta | 84adf1b | 2012-12-28 10:30:46 +0530 | [diff] [blame] | 21 | </div> |
Rushabh Mehta | d616413 | 2012-12-27 18:40:42 +0530 | [diff] [blame] | 22 | <div class="clearfix"></div> |
| 23 | <p><select class="span4" name="subject"> |
| 24 | {% for option in obj.doc.query_options %} |
| 25 | <option value="{{ option }}">{{ option }}</option> |
| 26 | {% endfor %} |
| 27 | </select></p> |
| 28 | <p><input class="span4" name="email" type="text" placeholder="Your Email Address" /></p> |
| 29 | <p><textarea class="span4" rows="10" name="message"></textarea></p> |
| 30 | <p><button class="btn btn-primary btn-send">Send</button></p> |
| 31 | </div> |
| 32 | {% if obj.doc.address %} |
Rushabh Mehta | 84adf1b | 2012-12-28 10:30:46 +0530 | [diff] [blame] | 33 | <div class="pull-right span3 alert" itemscope itemtype="http://schema.org/PostalAddress"> |
| 34 | <h4><i class="icon-map-marker"></i> {{ obj.address.address_title }}</h4> |
Rushabh Mehta | d616413 | 2012-12-27 18:40:42 +0530 | [diff] [blame] | 35 | {% if obj.address.address_line1 %} |
Rushabh Mehta | 84adf1b | 2012-12-28 10:30:46 +0530 | [diff] [blame] | 36 | <span itemprop="streetAddress">{{ obj.address.address_line1 }}</span><br> |
Rushabh Mehta | d616413 | 2012-12-27 18:40:42 +0530 | [diff] [blame] | 37 | {% endif %} |
| 38 | {% if obj.address.address_line2 %} |
Rushabh Mehta | 84adf1b | 2012-12-28 10:30:46 +0530 | [diff] [blame] | 39 | <span itemprop="streetAddress">{{ obj.address.address_line2 }}</span><br> |
Rushabh Mehta | d616413 | 2012-12-27 18:40:42 +0530 | [diff] [blame] | 40 | {% endif %} |
| 41 | {% if obj.address.city %} |
Rushabh Mehta | 84adf1b | 2012-12-28 10:30:46 +0530 | [diff] [blame] | 42 | <span itemprop="addressLocality">{{ obj.address.city }}</span><br> |
Rushabh Mehta | d616413 | 2012-12-27 18:40:42 +0530 | [diff] [blame] | 43 | {% endif %} |
| 44 | {% if obj.address.state %} |
Rushabh Mehta | 84adf1b | 2012-12-28 10:30:46 +0530 | [diff] [blame] | 45 | <span itemprop="addressRegion">{{ obj.address.state }}</span><br> |
Rushabh Mehta | d616413 | 2012-12-27 18:40:42 +0530 | [diff] [blame] | 46 | {% endif %} |
| 47 | {% if obj.address.pincode %} |
Rushabh Mehta | 84adf1b | 2012-12-28 10:30:46 +0530 | [diff] [blame] | 48 | <span itemprop="postalCode">{{ obj.address.pincode }}</span><br> |
Rushabh Mehta | d616413 | 2012-12-27 18:40:42 +0530 | [diff] [blame] | 49 | {% endif %} |
| 50 | {% if obj.address.country %} |
Rushabh Mehta | 84adf1b | 2012-12-28 10:30:46 +0530 | [diff] [blame] | 51 | <span itemprop="addressCountry">{{ obj.address.country }}</span><br> |
Rushabh Mehta | d616413 | 2012-12-27 18:40:42 +0530 | [diff] [blame] | 52 | {% endif %} |
| 53 | </div> |
| 54 | {% endif %} |
| 55 | <div class="clearfix"></div> |
| 56 | </div> |
| 57 | </div> |
| 58 | {% endblock %} |