added for support

This commit is contained in:
Rushabh Mehta 2014-08-04 17:33:48 +05:30 committed by Anand Doshi
parent c9bd3f5d4a
commit a660464cec
7 changed files with 71 additions and 2 deletions

View File

@ -0,0 +1,24 @@
<div class="row" style="max-height: 30px;">
<div class="col-xs-12">
<div class="text-ellipsis">
{%= list.get_avatar_and_id(doc) %}
<span style="margin-right: 8px;" class="filterable"
data-filter="customer,=,{%= doc.customer %}">
{%= doc.customer %}</span>
<span class="label
label-{%= frappe.utils.guess_style(doc.status) %} filterable"
data-filter="status,=,{%= doc.status %}">
{%= doc.status %}
</span>
{% if(doc.item_code) { %}
<span class="label label-default filterable"
data-filter="item_code,=,{%= doc.item_code %}">
{%= doc.item_code %}
</span>
{% } %}
</div>
</div>
</div>

View File

@ -0,0 +1,4 @@
frappe.listview_settings['Customer Issue'] = {
add_fields: ["status", "customer", "item_code"],
filters:[["status","=", "Open"]]
};

View File

@ -1,6 +1,6 @@
{
"autoname": "naming_series:",
"creation": "2013-01-10 16:34:31.000000",
"creation": "2013-01-10 16:34:31",
"description": "Create and Send Newsletters",
"docstatus": 0,
"doctype": "DocType",
@ -132,7 +132,7 @@
],
"icon": "icon-envelope",
"idx": 1,
"modified": "2014-02-03 11:32:22.000000",
"modified": "2014-08-04 07:22:06.445634",
"modified_by": "Administrator",
"module": "Support",
"name": "Newsletter",

View File

@ -0,0 +1,16 @@
<div class="row" style="max-height: 30px;">
<div class="col-xs-10">
<div class="text-ellipsis">
{%= list.get_avatar_and_id(doc) %}
<span class="label
label-{%= cint(doc.email_sent) ? "success" : "warning" %} filterable"
data-filter="email_sent,=,{%= cint(doc.email_sent) ? __("Yes") : __("No") %}">
{%= cint(doc.email_sent) ? __("Sent") : __("Not Sent") %}
</span>
<span class="label label-info filterable"
data-filter="send_to_type,=,{%= doc.send_to_type %}">
{%= doc.send_to_type %}
</span>
</div>
</div>
</div>

View File

@ -0,0 +1,3 @@
frappe.listview_settings['Newsletter'] = {
add_fields: ["subject", "send_to_type", "email_sent"]
};

View File

@ -0,0 +1,18 @@
<div class="row" style="max-height: 30px;">
<div class="col-xs-10">
<div class="text-ellipsis">
{%= list.get_avatar_and_id(doc) %}
<span class="label label-{%= frappe.utils.guess_style(doc.status) %} filterable"
data-filter="status,=,{%= doc.status %}">
{%= doc.status %}
</span>
</div>
</div>
<div class="col-xs-2">
<div class="text-ellipsis">
<span class="filterable text-muted small" style="margin-right: 8px;"
data-filter="raised_by,=,{%= doc.raised_by %}">
{%= doc.raised_by %}</span>
</div>
</div>
</div>

View File

@ -0,0 +1,4 @@
frappe.listview_settings['Support Ticket'] = {
add_fields: ["subject", "status", "raised_by"],
filters:[["status","=", "Open"]]
};