mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-12 17:51:20 +00:00
[website] [minor] moving to framework
This commit is contained in:
0
setup/doctype/item_group/templates/__init__.py
Normal file
0
setup/doctype/item_group/templates/__init__.py
Normal file
@@ -1,11 +1,11 @@
|
||||
{% extends "app/website/templates/html/page.html" %}
|
||||
{% extends base_template %}
|
||||
|
||||
{% block content %}
|
||||
{% include 'app/website/templates/html/product_search_box.html' %}
|
||||
{% include 'app/website/templates/html/product_breadcrumbs.html' %}
|
||||
{% include 'app/stock/doctype/item/templates/includes/product_search_box.html' %}
|
||||
{% include 'app/stock/doctype/item/templates/includes/product_breadcrumbs.html' %}
|
||||
<div class="col-md-12">
|
||||
{% if slideshow %}<!-- slideshow -->
|
||||
{% include "app/website/templates/html/slideshow.html" %}
|
||||
{% include "lib/website/templates/includes/slideshow.html" %}
|
||||
{% endif %}
|
||||
{% if description %}<!-- description -->
|
||||
<div>{{ description or ""}}</div>
|
||||
@@ -31,7 +31,7 @@
|
||||
{{ item }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% if len(items)==100 %}
|
||||
{% if (items|length)==100 %}
|
||||
<div class="alert info">Showing top 100 items.</div>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
@@ -0,0 +1,2 @@
|
||||
doctype = "Item Group"
|
||||
condition_field = "show_in_website"
|
||||
@@ -42,10 +42,4 @@ class DocType:
|
||||
"email": address.email_id,
|
||||
"partner_address": filter_strip_join(address_rows, "\n<br>"),
|
||||
"phone": filter_strip_join(cstr(address.phone).split(","), "\n<br>")
|
||||
})
|
||||
|
||||
def get_partner_args():
|
||||
return {
|
||||
"partners": webnotes.conn.sql("""select * from `tabSales Partner`
|
||||
where show_in_website=1 order by name asc""", as_dict=True),
|
||||
}
|
||||
})
|
||||
0
setup/doctype/sales_partner/templates/__init__.py
Normal file
0
setup/doctype/sales_partner/templates/__init__.py
Normal file
@@ -1,4 +1,4 @@
|
||||
{% extends "app/website/templates/html/page.html" %}
|
||||
{% extends base_template %}
|
||||
|
||||
{% block content %}
|
||||
<div class="col-md-12" itemscope itemtype="http://schema.org/Organization">
|
||||
@@ -0,0 +1,2 @@
|
||||
doctype = "Sales Partner"
|
||||
condition_field = "show_in_website"
|
||||
@@ -1,4 +1,4 @@
|
||||
{% extends "app/website/templates/html/page.html" %}
|
||||
{% extends base_template %}
|
||||
|
||||
{% set title="Partners" %}
|
||||
|
||||
7
setup/doctype/sales_partner/templates/pages/partners.py
Normal file
7
setup/doctype/sales_partner/templates/pages/partners.py
Normal file
@@ -0,0 +1,7 @@
|
||||
import webnotes
|
||||
|
||||
def get_context():
|
||||
return {
|
||||
"partners": webnotes.conn.sql("""select * from `tabSales Partner`
|
||||
where show_in_website=1 order by name asc""", as_dict=True),
|
||||
}
|
||||
Reference in New Issue
Block a user