Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
commit
4ccb2edbfd
8
patches/1311/p04_update_comments.py
Normal file
8
patches/1311/p04_update_comments.py
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
||||||
|
# License: GNU General Public License v3. See license.txt
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
import webnotes
|
||||||
|
for name in webnotes.conn.sql_list("""select name from tabComment"""):
|
||||||
|
webnotes.get_obj("Comment", name).update_comment_in_doc()
|
||||||
|
|
||||||
16
patches/1311/p05_website_brand_html.py
Normal file
16
patches/1311/p05_website_brand_html.py
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
||||||
|
# License: GNU General Public License v3. See license.txt
|
||||||
|
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
import webnotes
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
bean = webnotes.bean("Website Settings")
|
||||||
|
for company in webnotes.conn.sql_list("select name from `tabCompany`"):
|
||||||
|
if bean.doc.banner_html == ("""<h3 style='margin-bottom: 20px;'>""" + company + "</h3>"):
|
||||||
|
bean.doc.banner_html = None
|
||||||
|
if not bean.doc.brand_html:
|
||||||
|
bean.doc.brand_html = company
|
||||||
|
|
||||||
|
bean.save()
|
||||||
|
break
|
||||||
@ -245,9 +245,11 @@ patch_list = [
|
|||||||
"execute:webnotes.reload_doc('core', 'doctype', 'comment') #2013-11-15",
|
"execute:webnotes.reload_doc('core', 'doctype', 'comment') #2013-11-15",
|
||||||
"patches.1311.p02_index_singles",
|
"patches.1311.p02_index_singles",
|
||||||
"patches.1311.p01_make_gl_entries_for_si",
|
"patches.1311.p01_make_gl_entries_for_si",
|
||||||
"patches.1311.p03_update_reqd_report_fields",
|
"patches.1311.p03_update_reqd_report_fields",
|
||||||
"execute:webnotes.reload_doc('website', 'doctype', 'website_sitemap_config') #2013-11-20",
|
"execute:webnotes.reload_doc('website', 'doctype', 'website_sitemap_config') #2013-11-20",
|
||||||
"execute:webnotes.reload_doc('website', 'doctype', 'website_sitemap') #2013-11-20",
|
"execute:webnotes.reload_doc('website', 'doctype', 'website_sitemap') #2013-11-20",
|
||||||
"execute:webnotes.bean('Style Settings').save() #2013-11-20",
|
"execute:webnotes.bean('Style Settings').save() #2013-11-20",
|
||||||
"execute:webnotes.get_module('website.doctype.website_sitemap_config.website_sitemap_config').rebuild_website_sitemap_config()",
|
"execute:webnotes.get_module('website.doctype.website_sitemap_config.website_sitemap_config').rebuild_website_sitemap_config()",
|
||||||
|
"patches.1311.p04_update_comments",
|
||||||
|
"patches.1311.p05_website_brand_html",
|
||||||
]
|
]
|
||||||
@ -1,16 +1,18 @@
|
|||||||
{% extends "lib/website/templates/includes/footer.html" %}
|
{% extends "lib/website/templates/includes/footer.html" %}
|
||||||
|
|
||||||
{% block powered %}<a style="font-size: 90%; color: #aaa;" href="http://erpnext.org">ERPNext Powered</a>{% endblock %}
|
{% block powered %}<a href="http://erpnext.org" style="color: #aaa;">ERPNext Powered</a>{% endblock %}
|
||||||
|
|
||||||
{% block extension %}
|
{% block extension %}
|
||||||
<br>
|
<div class="container">
|
||||||
<div class="input-group col-md-6 col-md-offset-3">
|
<div class="row">
|
||||||
<input class="form-control" type="text" id="footer-subscribe-email" placeholder="Your email address...">
|
<div class="input-group col-sm-6 col-sm-offset-3" style="margin-top: 7px;">
|
||||||
<span class="input-group-btn">
|
<input class="form-control" type="text" id="footer-subscribe-email" placeholder="Your email address...">
|
||||||
<button class="btn btn-default" type="button" id="footer-subscribe-button">Stay Updated</button>
|
<span class="input-group-btn">
|
||||||
</span>
|
<button class="btn btn-default" type="button" id="footer-subscribe-button">Stay Updated</button>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
|
||||||
<script>
|
<script>
|
||||||
$("#footer-subscribe-button").click(function() {
|
$("#footer-subscribe-button").click(function() {
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{% extends base_template %}
|
{% extends base_template %}
|
||||||
|
|
||||||
{% block content -%}
|
{% block content -%}
|
||||||
<div class="col-md-12">
|
<div class="container content">
|
||||||
<ul class="breadcrumb">
|
<ul class="breadcrumb">
|
||||||
<li><a href="index">Home</a></li>
|
<li><a href="index">Home</a></li>
|
||||||
<li class="active"><i class="{{ icon }} icon-fixed-width"></i> {{ title }}</li>
|
<li class="active"><i class="{{ icon }} icon-fixed-width"></i> {{ title }}</li>
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
{% set title="Shopping Cart" %}
|
{% set title="Shopping Cart" %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="col-md-12">
|
<div class="container content">
|
||||||
<h2><i class="icon-shopping-cart"></i> {{ title }}</h2>
|
<h2><i class="icon-shopping-cart"></i> {{ title }}</h2>
|
||||||
<div class="progress progress-striped active">
|
<div class="progress progress-striped active">
|
||||||
<div class="progress-bar progress-bar-info" style="width: 100%;"></div>
|
<div class="progress-bar progress-bar-info" style="width: 100%;"></div>
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
{% set title="My Profile" %}
|
{% set title="My Profile" %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="col-md-12">
|
<div class="container content">
|
||||||
<ul class="breadcrumb">
|
<ul class="breadcrumb">
|
||||||
<li><a href="index">Home</a></li>
|
<li><a href="index">Home</a></li>
|
||||||
<li class="active"><i class="icon-user icon-fixed-width"></i> My Profile</li>
|
<li class="active"><i class="icon-user icon-fixed-width"></i> My Profile</li>
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
{% set title=doc.name %}
|
{% set title=doc.name %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="col-md-12">
|
<div class="container content">
|
||||||
<ul class="breadcrumb">
|
<ul class="breadcrumb">
|
||||||
<li><a href="index">Home</a></li>
|
<li><a href="index">Home</a></li>
|
||||||
<li><a href="{{ parent_link }}">{{ parent_title }}</a></li>
|
<li><a href="{{ parent_link }}">{{ parent_title }}</a></li>
|
||||||
|
|||||||
@ -80,7 +80,7 @@ class DocType:
|
|||||||
# update in home page in settings
|
# update in home page in settings
|
||||||
website_settings = webnotes.bean("Website Settings", "Website Settings")
|
website_settings = webnotes.bean("Website Settings", "Website Settings")
|
||||||
website_settings.doc.home_page = webpage.doc.name
|
website_settings.doc.home_page = webpage.doc.name
|
||||||
website_settings.doc.banner_html = """<h3 style='margin-bottom: 20px;'>""" + self.doc.name + "</h3>"
|
website_settings.doc.brand_html = self.doc.name
|
||||||
website_settings.doc.copyright = self.doc.name
|
website_settings.doc.copyright = self.doc.name
|
||||||
website_settings.doclist.append({
|
website_settings.doclist.append({
|
||||||
"doctype": "Top Bar Item",
|
"doctype": "Top Bar Item",
|
||||||
@ -336,4 +336,4 @@ def get_name_with_abbr(name, company):
|
|||||||
if parts[-1].lower() != company_abbr.lower():
|
if parts[-1].lower() != company_abbr.lower():
|
||||||
parts.append(company_abbr)
|
parts.append(company_abbr)
|
||||||
|
|
||||||
return " - ".join(parts)
|
return " - ".join(parts)
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
{
|
{
|
||||||
"creation": "2013-03-25 17:53:21",
|
"creation": "2013-03-25 17:53:21",
|
||||||
"docstatus": 0,
|
"docstatus": 0,
|
||||||
"modified": "2013-07-09 10:41:38",
|
"modified": "2013-11-22 12:30:07",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"owner": "Administrator"
|
"owner": "Administrator"
|
||||||
},
|
},
|
||||||
@ -86,7 +86,7 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"fieldname": "always_use_login_id_as_sender",
|
"fieldname": "always_use_login_id_as_sender",
|
||||||
"fieldtype": "Check",
|
"fieldtype": "Check",
|
||||||
"label": "Always use Login Id as sender"
|
"label": "Always use above Login Id as sender"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
{% include 'app/stock/doctype/item/templates/includes/product_search_box.html' %}
|
{% include 'app/stock/doctype/item/templates/includes/product_search_box.html' %}
|
||||||
{% include 'app/stock/doctype/item/templates/includes/product_breadcrumbs.html' %}
|
{% include 'app/stock/doctype/item/templates/includes/product_breadcrumbs.html' %}
|
||||||
<div class="col-md-12">
|
<div class="container content">
|
||||||
{% if slideshow %}<!-- slideshow -->
|
{% if slideshow %}<!-- slideshow -->
|
||||||
{% include "lib/website/doctype/website_slideshow/templates/includes/slideshow.html" %}
|
{% include "lib/website/doctype/website_slideshow/templates/includes/slideshow.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -13,7 +13,7 @@
|
|||||||
<h3>{{ name }}</h3>
|
<h3>{{ name }}</h3>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-12">
|
<div class="container content">
|
||||||
{% if sub_groups %}
|
{% if sub_groups %}
|
||||||
<hr />
|
<hr />
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{% extends base_template %}
|
{% extends base_template %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="col-md-12" itemscope itemtype="http://schema.org/Organization">
|
<div class="container content" itemscope itemtype="http://schema.org/Organization">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
{% if logo -%}
|
{% if logo -%}
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
{% set title="Partners" %}
|
{% set title="Partners" %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="col-md-12">
|
<div class="container content">
|
||||||
<h2 id="blog-title">{{ title }}</h2>
|
<h2 id="blog-title">{{ title }}</h2>
|
||||||
<hr>
|
<hr>
|
||||||
{% for partner_info in partners %}
|
{% for partner_info in partners %}
|
||||||
|
|||||||
@ -24,7 +24,7 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
{% include 'app/stock/doctype/item/templates/includes/product_search_box.html' %}
|
{% include 'app/stock/doctype/item/templates/includes/product_search_box.html' %}
|
||||||
{% include 'app/stock/doctype/item/templates/includes/product_breadcrumbs.html' %}
|
{% include 'app/stock/doctype/item/templates/includes/product_breadcrumbs.html' %}
|
||||||
<div class="col-md-12 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 %}
|
||||||
|
|||||||
@ -1,12 +1,10 @@
|
|||||||
{% if obj.parent_groups and (obj.parent_groups|length) > 1 %}
|
{% if obj.parent_groups and (obj.parent_groups|length) > 1 %}
|
||||||
<div class="col-md-12">
|
<div class="container">
|
||||||
<div class="clearfix">
|
<ul class="breadcrumb">
|
||||||
<ul class="breadcrumb">
|
{% for ig in obj.parent_groups[:-1] %}
|
||||||
{% for ig in obj.parent_groups[:-1] %}
|
<li><a href="{{ ig.page_name }}.html">{{ ig.name }}</a></li>
|
||||||
<li><a href="{{ ig.page_name }}.html">{{ ig.name }}</a></li>
|
{% endfor %}
|
||||||
{% endfor %}
|
<li class="active">{{ obj.parent_groups[-1].name }}</li>
|
||||||
<li class="active">{{ obj.parent_groups[-1].name }}</li>
|
</ul>
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -1,5 +1,5 @@
|
|||||||
<!-- TODO product listing -->
|
<!-- TODO product listing -->
|
||||||
<div class="col-md-12">
|
<div class="container content">
|
||||||
<div style="height: 120px; overflow: hidden;">
|
<div style="height: 120px; overflow: hidden;">
|
||||||
<a href="{{ page_name }}">
|
<a href="{{ page_name }}">
|
||||||
{%- if website_image -%}
|
{%- if website_image -%}
|
||||||
|
|||||||
@ -1,15 +1,13 @@
|
|||||||
<div class="row clearfix">
|
<div class="container" style="margin-bottom: 7px;">
|
||||||
<div class="pull-right" style="margin-top: 15px; margin-bottom: 15px;">
|
<form class="form-inline form-search row">
|
||||||
<form class="form-search">
|
<div class="input-group col-md-4 col-md-offset-8">
|
||||||
<div class="input-group col-md-4 col-md-offset-8">
|
<input class="form-control" type="text" id="product-search" placeholder="Product Search...">
|
||||||
<input class="form-control" type="text" id="product-search" placeholder="Product Search...">
|
<span class="input-group-btn">
|
||||||
<span class="input-group-btn">
|
<button class="btn btn-default" type="button" id="btn-product-search">
|
||||||
<button class="btn btn-default" type="button" id="btn-product-search">
|
<i class="icon-search"></i></button>
|
||||||
<i class="icon-search"></i></button>
|
</span>
|
||||||
</span>
|
</div>
|
||||||
</div>
|
</form>
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
<script>
|
<script>
|
||||||
// redirect to product search page
|
// redirect to product search page
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|||||||
@ -18,7 +18,7 @@ $(document).ready(function() {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
{% include "app/stock/doctype/item/templates/includes/product_search_box.html" %}
|
{% include "app/stock/doctype/item/templates/includes/product_search_box.html" %}
|
||||||
<div class="col-md-12">
|
<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">
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
} %}
|
} %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="col-md-12">
|
<div class="container content">
|
||||||
<ul class="breadcrumb">
|
<ul class="breadcrumb">
|
||||||
<li><a href="index">Home</a></li>
|
<li><a href="index">Home</a></li>
|
||||||
<li><a href="tickets">My Tickets</a></li>
|
<li><a href="tickets">My Tickets</a></li>
|
||||||
|
|||||||
@ -37,7 +37,7 @@
|
|||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="col-md-12">
|
<div class="container content">
|
||||||
<ul class="breadcrumb">
|
<ul class="breadcrumb">
|
||||||
<li><a href="index">Home</a></li>
|
<li><a href="index">Home</a></li>
|
||||||
<li><a href="addresses">My Addresses</a></li>
|
<li><a href="addresses">My Addresses</a></li>
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
{% set title="My Addresses" %}
|
{% set title="My Addresses" %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="col-md-12">
|
<div class="container content">
|
||||||
<ul class="breadcrumb">
|
<ul class="breadcrumb">
|
||||||
<li><a href="index">Home</a></li>
|
<li><a href="index">Home</a></li>
|
||||||
<li class="active"><i class="icon-map-marker icon-fixed-width"></i> My Addresses</li>
|
<li class="active"><i class="icon-map-marker icon-fixed-width"></i> My Addresses</li>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user