[fix] [minor] [website]

This commit is contained in:
Anand Doshi 2013-09-17 13:46:50 +05:30
parent ad0b05060a
commit 619ed5e949
6 changed files with 11 additions and 10 deletions

View File

@ -68,4 +68,5 @@ def send_message(subject="Website Query", message="", sender="", status="Open"):
# make lead / communication
from selling.doctype.lead.get_leads import add_sales_communication
add_sales_communication(subject or "Website Query", message, sender, sender,
mail=None, status=status)
mail=None, status=status)

View File

@ -5,7 +5,7 @@
{% include 'app/stock/doctype/item/templates/includes/product_breadcrumbs.html' %}
<div class="col-md-12">
{% if slideshow %}<!-- slideshow -->
{% include "lib/website/templates/includes/slideshow.html" %}
{% include "lib/website/doctype/website_slideshow/templates/includes/slideshow.html" %}
{% endif %}
{% if description %}<!-- description -->
<div>{{ description or ""}}</div>
@ -32,10 +32,10 @@
{% endfor %}
</div>
{% if (items|length)==100 %}
<div class="alert info">Showing top 100 items.</div>
<div class="alert alert-info info">Showing top 100 items.</div>
{% endif %}
{% else %}
<div class="alert">No items listed.</div>
<div class="alert alert-warning">No items listed.</div>
{% endif %}
</div>

View File

@ -19,7 +19,7 @@
<div class="row">
<div class="col-md-6">
{% if slideshow %}
{% include "lib/website/templates/includes/html/slideshow.html" %}
{% include "lib/website/doctype/website_slideshow/templates/includes/slideshow.html" %}
{% else %}
{% if website_image %}
<image itemprop="image" class="item-main-image"

View File

@ -2,7 +2,7 @@
// License: GNU General Public License v3. See license.txt
$(document).ready(function() {
var item_code = $('[itemscope] [itemprop="name"]').text().trim();
var item_code = $('[itemscope] [itemprop="productID"]').text().trim();
var qty = 0;
wn.call({

View File

@ -1,13 +1,13 @@
def on_login(self):
from webnotes.utils import validate_email_add
import conf
if hasattr(conf, "demo_notify_url"):
import conf
if hasattr(conf, "demo_notify_url"):
if webnotes.form_dict.lead_email and validate_email_add(webnotes.form_dict.lead_email):
import requests
response = requests.post(conf.demo_notify_url, data={
"cmd":"selling.utils.contact.send_message",
"cmd":"portal.utils.send_message",
"subject":"Logged into Demo",
"sender": webnotes.form_dict.lead_email,
"message": "via demo.erpnext.com"
})
})