% var contColl = collection, grpColl = groupCollection, selectContactCont = contColl.selectedCount; addNewEnable = (grpColl.length >= 30 || parseInt(selectContactCont)>GROUP_CONTACT_COUNT) ? "disabled" : ""; curGroupStr = (model) ? model.mobileGroupId() : ""; %>
NOTE: groups have a max capacity of <%= GROUP_CONTACT_COUNT %>