mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
Merge pull request #7730 from KanchanChauhan/minor-enhancement
[Minor] List of Contacts
This commit is contained in:
@@ -1,20 +1,23 @@
|
|||||||
<p><button class="btn btn-xs btn-default btn-contact">
|
<p><button class="btn btn-xs btn-default btn-contact">
|
||||||
{{ __("New Contact") }}</button></p>
|
{{ __("New Contact") }}</button></p>
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
|
<ol>
|
||||||
{% for(var i=0, l=contact_list.length; i<l; i++) { %}
|
{% for(var i=0, l=contact_list.length; i<l; i++) { %}
|
||||||
<p class="h6">
|
<p class="h6">
|
||||||
{%= i+1 %}. {%= contact_list[i].first_name %} {%= contact_list[i].last_name %}
|
<li>
|
||||||
{% if(contact_list[i].is_primary_contact) { %}
|
{%= contact_list[i].first_name %} {%= contact_list[i].last_name %}
|
||||||
<span class="text-muted">({%= __("Primary") %})</span>
|
{% 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>
|
{% if(contact_list[i].designation){ %}
|
||||||
{% } %}
|
<span class="text-muted">– {%= contact_list[i].designation %}</span>
|
||||||
<a href="#Form/Contact/{%= encodeURIComponent(contact_list[i].name) %}"
|
{% } %}
|
||||||
class="btn btn-xs btn-default pull-right">
|
<a href="#Form/Contact/{%= encodeURIComponent(contact_list[i].name) %}"
|
||||||
{%= __("Edit") %}</a>
|
class="btn btn-xs btn-default pull-right">
|
||||||
</p>
|
{%= __("Edit") %}</a>
|
||||||
|
</li>
|
||||||
|
</p>
|
||||||
|
|
||||||
<div style="padding-left: 15px;">
|
<div style="padding-left: 15px;">
|
||||||
<p style="padding-top: 5px; font-size: 12px;">
|
<p style="padding-top: 5px; font-size: 12px;">
|
||||||
{% if(contact_list[i].phone) { %}
|
{% if(contact_list[i].phone) { %}
|
||||||
@@ -29,6 +32,7 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{% } %}
|
{% } %}
|
||||||
|
</ol>
|
||||||
{% if(!contact_list.length) { %}
|
{% if(!contact_list.length) { %}
|
||||||
<p class="text-muted">{%= __("No contacts added yet.") %}</p>
|
<p class="text-muted">{%= __("No contacts added yet.") %}</p>
|
||||||
{% } %}
|
{% } %}
|
||||||
Reference in New Issue
Block a user