From 779c581a92e97f4220b0475dd88c2b6158b83458 Mon Sep 17 00:00:00 2001
From: Kanchan Chauhan
Date: Mon, 13 Feb 2017 16:01:52 +0530
Subject: [PATCH] [Minor] List of Contacts
---
erpnext/public/js/templates/contact_list.html | 30 +++++++++++--------
1 file changed, 17 insertions(+), 13 deletions(-)
diff --git a/erpnext/public/js/templates/contact_list.html b/erpnext/public/js/templates/contact_list.html
index 765ddf802d..abaadff0c1 100644
--- a/erpnext/public/js/templates/contact_list.html
+++ b/erpnext/public/js/templates/contact_list.html
@@ -1,20 +1,23 @@
-
+
{% for(var i=0, l=contact_list.length; i
- {%= i+1 %}. {%= contact_list[i].first_name %} {%= contact_list[i].last_name %}
- {% if(contact_list[i].is_primary_contact) { %}
- ({%= __("Primary") %})
- {% } %}
- {% if(contact_list[i].designation){ %}
- – {%= contact_list[i].designation %}
- {% } %}
-
- {%= __("Edit") %}
-
+
+ {%= contact_list[i].first_name %} {%= contact_list[i].last_name %}
+ {% if(contact_list[i].is_primary_contact) { %}
+ ({%= __("Primary") %})
+ {% } %}
+ {% if(contact_list[i].designation){ %}
+ – {%= contact_list[i].designation %}
+ {% } %}
+
+ {%= __("Edit") %}
+
+
+
{% if(contact_list[i].phone) { %}
@@ -29,6 +32,7 @@
{% } %}
+
{% if(!contact_list.length) { %}
{%= __("No contacts added yet.") %}
-{% } %}
+{% } %}
\ No newline at end of file