This commit is contained in:
Rushabh Mehta 2013-12-12 13:57:58 +05:30
parent 1b23208779
commit d2dd83c3a3
18 changed files with 27 additions and 50 deletions

View File

@ -1,4 +1,4 @@
{% extends "app/portal/templates/sale.html" %} {% extends "portal/templates/sale.html" %}
{% block status -%} {% block status -%}
{% if doc.status %}{{ doc.status }}{% endif %} {% if doc.status %}{{ doc.status }}{% endif %}

View File

@ -1 +1 @@
{% extends "app/portal/templates/sales_transactions.html" %} {% extends "portal/templates/sales_transactions.html" %}

View File

@ -1,3 +1,3 @@
{% extends "lib/website/templates/base.html" %} {% extends "website/templates/base.html" %}
{% block footer %}{% include "app/portal/templates/includes/footer.html" %}{% endblock %} {% block footer %}{% include "portal/templates/includes/footer.html" %}{% endblock %}

View File

@ -1,4 +1,4 @@
{% extends "lib/website/templates/includes/footer.html" %} {% extends "website/templates/includes/footer.html" %}
{% block powered %}<a href="http://erpnext.org" style="color: #aaa;">ERPNext Powered</a>{% endblock %} {% block powered %}<a href="http://erpnext.org" style="color: #aaa;">ERPNext Powered</a>{% endblock %}

View File

@ -1,7 +1,7 @@
{% extends base_template %} {% extends base_template %}
{% block javascript %} {% block javascript %}
<script>{% include "app/portal/templates/includes/cart.js" %}</script> <script>{% include "portal/templates/includes/cart.js" %}</script>
{% endblock %} {% endblock %}
{% set title="Shopping Cart" %} {% set title="Shopping Cart" %}

View File

@ -1,4 +1,4 @@
{% extends "app/portal/templates/includes/transactions.html" %} {% extends "portal/templates/includes/transactions.html" %}
{% block javascript -%} {% block javascript -%}
<script> <script>

View File

@ -1,4 +1,4 @@
{% extends "app/portal/templates/sale.html" %} {% extends "portal/templates/sale.html" %}
{% block status -%} {% block status -%}
{% if doc.status %}{{ doc.status }}{% endif %} {% if doc.status %}{{ doc.status }}{% endif %}

View File

@ -1 +1 @@
{% extends "app/portal/templates/sales_transactions.html" %} {% extends "portal/templates/sales_transactions.html" %}

View File

@ -1,11 +1,11 @@
{% extends base_template %} {% extends base_template %}
{% block content %} {% block content %}
{% include 'app/stock/doctype/item/templates/includes/product_search_box.html' %} {% include 'stock/doctype/item/templates/includes/product_search_box.html' %}
{% include 'app/stock/doctype/item/templates/includes/product_breadcrumbs.html' %} {% include 'stock/doctype/item/templates/includes/product_breadcrumbs.html' %}
<div class="container content"> <div class="container content">
{% if slideshow %}<!-- slideshow --> {% if slideshow %}<!-- slideshow -->
{% include "lib/website/doctype/website_slideshow/templates/includes/slideshow.html" %} {% include "website/doctype/website_slideshow/templates/includes/slideshow.html" %}
{% endif %} {% endif %}
{% if description %}<!-- description --> {% if description %}<!-- description -->
<div itemprop="description">{{ description or ""}}</div> <div itemprop="description">{{ description or ""}}</div>
@ -42,7 +42,7 @@
$(function() { $(function() {
if(window.logged_in && getCookie("system_user")==="yes") { if(window.logged_in && getCookie("system_user")==="yes") {
wn.has_permission("Item Group", "{{ name }}", "write", function(r) { wn.has_permission("Item Group", "{{ name }}", "write", function(r) {
wn.require("lib/js/wn/website/editable.js"); wn.require("js/wn/website/editable.js");
wn.make_editable($('[itemprop="description"]'), "Item Group", "{{ name }}", "description"); wn.make_editable($('[itemprop="description"]'), "Item Group", "{{ name }}", "description");
}); });
} }

View File

@ -64,10 +64,6 @@ def check_if_expired():
webnotes.response['message'] = 'Account Expired' webnotes.response['message'] = 'Account Expired'
raise webnotes.AuthenticationError raise webnotes.AuthenticationError
def on_build():
from home.page.latest_updates import latest_updates
latest_updates.make()
def comment_added(doc): def comment_added(doc):
"""add comment to feed""" """add comment to feed"""
home.make_feed('Comment', doc.comment_doctype, doc.comment_docname, doc.comment_by, home.make_feed('Comment', doc.comment_doctype, doc.comment_docname, doc.comment_by,

View File

@ -1 +1 @@
{% extends "app/portal/templates/sale.html" %} {% extends "portal/templates/sale.html" %}

View File

@ -1 +1 @@
{% extends "app/portal/templates/sales_transactions.html" %} {% extends "portal/templates/sales_transactions.html" %}

View File

@ -2,12 +2,12 @@
{% block javascript %} {% block javascript %}
<script> <script>
{% include "app/stock/doctype/item/templates/includes/product_page.js" %} {% include "stock/doctype/item/templates/includes/product_page.js" %}
$(function() { $(function() {
if(window.logged_in && getCookie("system_user")==="yes") { if(window.logged_in && getCookie("system_user")==="yes") {
wn.has_permission("Item", "{{ name }}", "write", function(r) { wn.has_permission("Item", "{{ name }}", "write", function(r) {
wn.require("lib/js/wn/website/editable.js"); wn.require("js/wn/website/editable.js");
wn.make_editable($('[itemprop="description"]'), "Item", "{{ name }}", "web_long_description"); wn.make_editable($('[itemprop="description"]'), "Item", "{{ name }}", "web_long_description");
}); });
} }
@ -17,25 +17,25 @@
{% block css %} {% block css %}
<style> <style>
{% include "app/stock/doctype/item/templates/includes/product_page.css" %} {% include "stock/doctype/item/templates/includes/product_page.css" %}
</style> </style>
{% endblock %} {% endblock %}
{% block content %} {% block content %}
{% include 'app/stock/doctype/item/templates/includes/product_search_box.html' %} {% include 'stock/doctype/item/templates/includes/product_search_box.html' %}
{% include 'app/stock/doctype/item/templates/includes/product_breadcrumbs.html' %} {% include 'stock/doctype/item/templates/includes/product_breadcrumbs.html' %}
<div class="container content product-page-content" itemscope itemtype="http://schema.org/Product"> <div class="container content product-page-content" itemscope itemtype="http://schema.org/Product">
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
{% if slideshow %} {% if slideshow %}
{% include "lib/website/doctype/website_slideshow/templates/includes/slideshow.html" %} {% include "website/doctype/website_slideshow/templates/includes/slideshow.html" %}
{% else %} {% else %}
{% if website_image %} {% if website_image %}
<image itemprop="image" class="item-main-image" <image itemprop="image" class="item-main-image"
src="{{ website_image }}" /> src="{{ website_image }}" />
{% else %} {% else %}
<div class="img-area"> <div class="img-area">
{% include 'app/stock/doctype/item/templates/includes/product_missing_image.html' %} {% include 'stock/doctype/item/templates/includes/product_missing_image.html' %}
</div> </div>
{% endif %} {% endif %}
{% endif %} {% endif %}

View File

@ -4,7 +4,7 @@
{%- if website_image -%} {%- if website_image -%}
<img class="product-image" style="width: 80%; margin: auto;" src="{{ website_image }}"> <img class="product-image" style="width: 80%; margin: auto;" src="{{ website_image }}">
{%- else -%} {%- else -%}
{% include 'app/stock/doctype/item/templates/includes/product_missing_image.html' %} {% include 'stock/doctype/item/templates/includes/product_missing_image.html' %}
{%- endif -%} {%- endif -%}
</a> </a>
</div> </div>

View File

@ -5,7 +5,7 @@
{%- if website_image -%} {%- if website_image -%}
<img class="product-image" style="width: 80%; margin: auto;" src="{{ website_image }}"> <img class="product-image" style="width: 80%; margin: auto;" src="{{ website_image }}">
{%- else -%} {%- else -%}
{% include 'app/website/templates/html/product_missing_image.html' %} {% include 'website/templates/html/product_missing_image.html' %}
{%- endif -%} {%- endif -%}
</a> </a>
</div> </div>

View File

@ -3,7 +3,7 @@
{% set title="Product Search" %} {% set title="Product Search" %}
{% block javascript %} {% block javascript %}
<script>{% include "app/stock/doctype/item/templates/includes/product_list.js" %}</script> <script>{% include "stock/doctype/item/templates/includes/product_list.js" %}</script>
{% endblock %} {% endblock %}
{% block content %} {% block content %}
@ -17,7 +17,7 @@ $(document).ready(function() {
}); });
</script> </script>
{% include "app/stock/doctype/item/templates/includes/product_search_box.html" %} {% include "stock/doctype/item/templates/includes/product_search_box.html" %}
<div class="container content"> <div class="container content">
<h3 class="search-results">Search Results</h3> <h3 class="search-results">Search Results</h3>
<div id="search-list" class="row"> <div id="search-list" class="row">

View File

@ -1,4 +1,4 @@
{% extends "app/portal/templates/includes/transactions.html" %} {% extends "portal/templates/includes/transactions.html" %}
{% block javascript -%} {% block javascript -%}
{{ super() }} {{ super() }}

View File

@ -1,19 +0,0 @@
{
"中国(简体)": "zh-cn",
"中國(繁體)": "zh-tw",
"deutsch": "de",
"ελληνικά": "el",
"english": "en",
"español": "es",
"français": "fr",
"हिंदी": "hi",
"hrvatski": "hr",
"italiano": "it",
"nederlands": "nl",
"português brasileiro": "pt-BR",
"português": "pt",
"српски":"sr",
"தமிழ்": "ta",
"ไทย": "th",
"العربية":"ar"
}