<% var groupList = data.models; var defaultPicURL = _staticContentURL+"styles/images/cloud/contacts/avatars/default_profile_pic.svg"; %>
Groups(<%=groupList.length%>)
Save
Cancel
<% for(var count= 0; count
<%= _.escape(groupList[count].attributes.name)%>
Right
<% var imgURL; if( groupList[count].get("items") === undefined || groupList[count].get("items").length === 0){ %>
No Groups
Add contact(s) to this group.
<%}else{ var contactList = groupList[count].attributes.items; var contactListLength = isMobileView === true && contactList.length > 4 ? 4 : contactList.length > 10 ? 10 : contactList.length; for(var contactcount = 0; contactcount< contactListLength;contactcount++){ if(contactList[contactcount] && contactList[contactcount].photo){ imgURL = "../contacts/image.action?cdRequest.contactId="+contactList[contactcount].contactId+"&version="+contactList[contactcount].modifiedTime+"&cdRequest.photoreference="+contactList[contactcount].photoreference + "&csrf_string=" + csrfToken; }else{ imgURL = defaultPicURL; } if(contactList[contactcount]){ %>
<%=_.escape(contactList[contactcount].displayName) %>
<%}}}%>
<%}%>