53 lines
1.5 KiB
HTML
53 lines
1.5 KiB
HTML
{% extends "templates/web.html" %}
|
|
{% from "erpnext/templates/includes/macros.html" import product_image_square %}
|
|
|
|
{% block title %}{{ brand_html }}{% endblock %}
|
|
|
|
{% block page_content %}
|
|
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="homepage-tagline h1 text-center">{{ homepage.tag_line or '' }}</div>
|
|
<p class="text-center">{{ homepage.description or '' }}</p>
|
|
{% if homepage.products %}
|
|
<div class='featured-products-section' itemscope itemtype="http://schema.org/Product">
|
|
<h5 class='featured-product-heading'>{{ _("Featured Products") }}</h5>
|
|
<div class="featured-products">
|
|
<div id="search-list" class="row" style="margin-top:40px;">
|
|
{% for item in homepage.products %}
|
|
<a class="product-link" href="{{ item.route|abs_url }}">
|
|
<div class="col-sm-4 col-xs-4 product-image-wrapper">
|
|
<div class="product-image-img">
|
|
{{ product_image_square(item.thumbnail or item.image) }}
|
|
<div class="product-text" itemprop="name">{{ item.item_name }}</div>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
<!-- TODO: remove hardcoding of /products -->
|
|
<div class="text-center"><a href="/products" class="btn btn-primary all-products"> {{ _("View All Products") }}</a></div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block style %}
|
|
<style>
|
|
.featured-products-section {
|
|
margin-top: 95px;
|
|
}
|
|
|
|
.home-login {
|
|
margin-top: 30px;
|
|
}
|
|
.btn-login {
|
|
width: 80px;
|
|
}
|
|
|
|
|
|
</style>
|
|
{% endblock %}
|