From ac4a2f300d0a0e63bf77e9bf835c8a179ff83e76 Mon Sep 17 00:00:00 2001 From: Raul Viveros Date: Sun, 7 Feb 2016 21:37:18 +0100 Subject: [PATCH] column status for Bulk Mail list --- frappe/email/doctype/bulk_email/bulk_email_list.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 frappe/email/doctype/bulk_email/bulk_email_list.js diff --git a/frappe/email/doctype/bulk_email/bulk_email_list.js b/frappe/email/doctype/bulk_email/bulk_email_list.js new file mode 100644 index 0000000000..f6abd19701 --- /dev/null +++ b/frappe/email/doctype/bulk_email/bulk_email_list.js @@ -0,0 +1,6 @@ +frappe.listview_settings['Bulk Email'] = { + get_indicator: function(doc) { + colour = {'Sent': 'green', 'Sending': 'blue', 'Not Sent': 'grey', 'Error': 'red', 'Expired': 'orange'}; + return [__(doc.status), colour[doc.status], "status,=," + doc.status]; + } +}