2017-06-21 11:52:38 +00:00
|
|
|
<div class="clearfix"></div>
|
2014-11-24 08:46:51 +00:00
|
|
|
{% for(var i=0, l=contact_list.length; i<l; i++) { %}
|
2017-06-21 11:52:38 +00:00
|
|
|
<div class="address-box">
|
|
|
|
<p class="h6">
|
|
|
|
{%= contact_list[i].first_name %} {%= contact_list[i].last_name %}
|
|
|
|
{% if(contact_list[i].is_primary_contact) { %}
|
|
|
|
<span class="text-muted">({%= __("Primary") %})</span>
|
|
|
|
{% } %}
|
|
|
|
{% if(contact_list[i].designation){ %}
|
|
|
|
<span class="text-muted">– {%= contact_list[i].designation %}</span>
|
|
|
|
{% } %}
|
|
|
|
<a href="#Form/Contact/{%= encodeURIComponent(contact_list[i].name) %}"
|
2019-04-23 02:27:15 +00:00
|
|
|
class="btn btn-xs btn-default pull-right"
|
2017-06-21 11:52:38 +00:00
|
|
|
style="margin-top:-3px; margin-right: -5px;">
|
|
|
|
{%= __("Edit") %}</a>
|
|
|
|
</p>
|
2019-09-02 10:27:45 +00:00
|
|
|
{% if (contact_list[i].phones || contact_list[i].email_ids) { %}
|
2017-06-21 11:52:38 +00:00
|
|
|
<p>
|
2019-09-02 10:27:45 +00:00
|
|
|
{% if(contact_list[i].phone) { %}
|
|
|
|
{%= __("Phone") %}: {%= contact_list[i].phone %}<span class="text-muted"> ({%= __("Primary") %})</span><br>
|
2019-09-30 09:04:56 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if(contact_list[i].mobile_no) { %}
|
|
|
|
{%= __("Mobile No") %}: {%= contact_list[i].mobile_no %}<span class="text-muted"> ({%= __("Primary") %})</span><br>
|
2019-09-02 10:27:45 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if(contact_list[i].phone_nos) { %}
|
|
|
|
{% for(var j=0, k=contact_list[i].phone_nos.length; j<k; j++) { %}
|
|
|
|
{%= __("Phone") %}: {%= contact_list[i].phone_nos[j].phone %}<br>
|
|
|
|
{% } %}
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
{% if(contact_list[i].email_id) { %}
|
|
|
|
{%= __("Email") %}: {%= contact_list[i].email_id %}<span class="text-muted"> ({%= __("Primary") %})</span><br>
|
|
|
|
{% endif %}
|
|
|
|
{% if(contact_list[i].email_ids) { %}
|
|
|
|
{% for(var j=0, k=contact_list[i].email_ids.length; j<k; j++) { %}
|
|
|
|
{%= __("Email") %}: {%= contact_list[i].email_ids[j].email_id %}<br>
|
|
|
|
{% } %}
|
|
|
|
{% endif %}
|
2017-06-21 11:52:38 +00:00
|
|
|
</p>
|
|
|
|
{% endif %}
|
2019-09-02 10:27:45 +00:00
|
|
|
<p>
|
|
|
|
{% if (contact_list[i].address) { %}
|
|
|
|
{%= __("Address") %}: {%= contact_list[i].address %}<br>
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
2017-06-21 11:52:38 +00:00
|
|
|
</div>
|
2014-11-24 08:46:51 +00:00
|
|
|
{% } %}
|
|
|
|
{% if(!contact_list.length) { %}
|
2017-06-21 11:52:38 +00:00
|
|
|
<p class="text-muted small">{%= __("No contacts added yet.") %}</p>
|
|
|
|
{% } %}
|
2019-04-23 02:27:15 +00:00
|
|
|
<p><button class="btn btn-xs btn-default btn-contact">
|
2017-06-21 11:52:38 +00:00
|
|
|
{{ __("New Contact") }}</button>
|
|
|
|
</p>
|