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"> |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame^] | 10 | <h2 class="text-center">{{ homepage.tag_line or '' }}</h2> |
| 11 | <p class="lead text-center">{{ homepage.description or '' }}</p> |
| 12 | <p class="text-center"> |
| 13 | <a href="/login" class="btn btn-primary text-center">Login</a> |
| 14 | </p> |
Kanchan Chauhan | e0818f8 | 2016-04-22 14:39:02 +0530 | [diff] [blame] | 15 | |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame^] | 16 | {% if homepage.products %} |
| 17 | <!-- TODO: styling of this section --> |
| 18 | <div class='featured-products-section'> |
| 19 | <h5 class='text-uppercase'>{{ _("Featured Products") }}</h5> |
| 20 | <div class="featured-products"> |
| 21 | <div id="search-list" class="row" style="margin-top:40px;"> |
| 22 | {% for item in homepage.products %} |
| 23 | <a class="product-link" href="{{ item.route | abs_url }}"> |
| 24 | <div class="col-sm-4 product-image-wrapper"> |
| 25 | {{ product_image_square(item.thumbnail or item.image) }} |
| 26 | <div class="text-ellipsis inline-block small product-text"> |
| 27 | {{ item.item_name }} |
| 28 | </div> |
| 29 | </div> |
| 30 | </a> |
| 31 | {% endfor %} |
| 32 | </div> |
| 33 | </div> |
| 34 | <!-- TODO: remove hardcoding of /products --> |
| 35 | <p class="text-center"><a href="/products" class="btn btn-primary">More Products</a></p> |
Kanchan Chauhan | e0818f8 | 2016-04-22 14:39:02 +0530 | [diff] [blame] | 36 | </div> |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame^] | 37 | {% endif %} |
Kanchan Chauhan | e0818f8 | 2016-04-22 14:39:02 +0530 | [diff] [blame] | 38 | </div> |
| 39 | </div> |
| 40 | {% endblock %} |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame^] | 41 | |
| 42 | {% block style %} |
| 43 | <style> |
| 44 | .featured-products-section { |
| 45 | margin-top: 75px; |
| 46 | } |
| 47 | </style> |
| 48 | {% endblock %} |