Kanchan Chauhan | e0818f8 | 2016-04-22 14:39:02 +0530 | [diff] [blame] | 1 | {% extends "templates/web.html" %} |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 2 | {% from "erpnext/templates/includes/macros.html" import product_image_square %} |
Kanchan Chauhan | e0818f8 | 2016-04-22 14:39:02 +0530 | [diff] [blame] | 3 | |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 4 | {% block title %}{{ brand_html }}{% endblock %} |
Kanchan Chauhan | e0818f8 | 2016-04-22 14:39:02 +0530 | [diff] [blame] | 5 | |
| 6 | {% block page_content %} |
Kanchan Chauhan | e0818f8 | 2016-04-22 14:39:02 +0530 | [diff] [blame] | 7 | |
| 8 | <div class="row"> |
| 9 | <div class="col-sm-12"> |
Kanchan Chauhan | 239b351 | 2016-05-02 11:43:44 +0530 | [diff] [blame] | 10 | <div class="homepage-tagline h1 text-center">{{ homepage.tag_line or '' }}</div> |
| 11 | <p class="text-center">{{ homepage.description or '' }}</p> |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 12 | {% if homepage.products %} |
Kanchan Chauhan | 239b351 | 2016-05-02 11:43:44 +0530 | [diff] [blame] | 13 | <div class='featured-products-section' itemscope itemtype="http://schema.org/Product"> |
| 14 | <h5 class='featured-product-heading'>{{ _("Featured Products") }}</h5> |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 15 | <div class="featured-products"> |
| 16 | <div id="search-list" class="row" style="margin-top:40px;"> |
| 17 | {% for item in homepage.products %} |
Kanchan Chauhan | 239b351 | 2016-05-02 11:43:44 +0530 | [diff] [blame] | 18 | <a class="product-link" href="{{ item.route|abs_url }}"> |
| 19 | <div class="col-sm-4 col-xs-4 product-image-wrapper"> |
| 20 | <div class="product-image-img"> |
| 21 | {{ product_image_square(item.thumbnail or item.image) }} |
| 22 | <div class="product-text" itemprop="name">{{ item.item_name }}</div> |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 23 | </div> |
Kanchan Chauhan | 239b351 | 2016-05-02 11:43:44 +0530 | [diff] [blame] | 24 | </div> |
| 25 | </a> |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 26 | {% endfor %} |
| 27 | </div> |
| 28 | </div> |
| 29 | <!-- TODO: remove hardcoding of /products --> |
Kanchan Chauhan | 239b351 | 2016-05-02 11:43:44 +0530 | [diff] [blame] | 30 | <div class=" text-center text-uppercase"><a href="/products" class="btn btn-primary all-products"> {{ _("View All Products") }}</a></div> |
Kanchan Chauhan | e0818f8 | 2016-04-22 14:39:02 +0530 | [diff] [blame] | 31 | </div> |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 32 | {% endif %} |
Kanchan Chauhan | e0818f8 | 2016-04-22 14:39:02 +0530 | [diff] [blame] | 33 | </div> |
| 34 | </div> |
| 35 | {% endblock %} |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 36 | |
| 37 | {% block style %} |
| 38 | <style> |
| 39 | .featured-products-section { |
Kanchan Chauhan | 239b351 | 2016-05-02 11:43:44 +0530 | [diff] [blame] | 40 | margin-top: 95px; |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 41 | } |
Kanchan Chauhan | 239b351 | 2016-05-02 11:43:44 +0530 | [diff] [blame] | 42 | |
| 43 | .home-login { |
| 44 | margin-top: 30px; |
| 45 | } |
| 46 | .btn-login { |
| 47 | width: 80px; |
| 48 | } |
| 49 | |
| 50 | |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 51 | </style> |
| 52 | {% endblock %} |