From 0a7abc188ee892dfa72afb714f0892832ad11e30 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 24 Nov 2014 15:06:40 +0530 Subject: [PATCH] [minor] [ux] contact template --- erpnext/public/js/templates/contact_list.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/erpnext/public/js/templates/contact_list.html b/erpnext/public/js/templates/contact_list.html index ac192eaa0a..c4c058c117 100644 --- a/erpnext/public/js/templates/contact_list.html +++ b/erpnext/public/js/templates/contact_list.html @@ -10,7 +10,14 @@ {% if(contact_list[i].is_primary_contact) { %} {%= __("Primary") %}{% } %} -

{%= __("Phone") %}: {%= contact_list[i].phone %}

+

+ {% if(contact_list[i].phone) { %} + {%= __("Phone") %}: {%= contact_list[i].phone %}
+ {% } %} + {% if(contact_list[i].email_id) { %} + {%= __("Email Id") %}: {%= contact_list[i].email_id %} + {% } %} +

{% } %} {% if(!contact_list.length) { %}