{%= __("No address added yet.") %}
{% } %} -{% if(!addr_list.length) { %} -{%= __("No address added yet.") %}
-{% } %} - \ No newline at end of file + ++ +
diff --git a/frappe/public/js/frappe/form/templates/contact_list.html b/frappe/public/js/frappe/form/templates/contact_list.html index c4cc08a549..ef11831f3f 100644 --- a/frappe/public/js/frappe/form/templates/contact_list.html +++ b/frappe/public/js/frappe/form/templates/contact_list.html @@ -1,42 +1,74 @@ -{% for(const contact of contact_list) { %} +{% for (const contact of contact_list) { %}- {%= contact.first_name %} {%= contact.last_name %} - {% if(contact.is_primary_contact) { %} - ({%= __("Primary") %}) + + + +
+ {%= contact.first_name %} {%= contact.last_name %} + {% if (contact.is_primary_contact) { %} + · + {%= __("Primary Contact") %} {% } %} - {% if(contact.designation){ %} - – {%= contact.designation %} + {% if (contact.is_billing_contact) { %} + · + {%= __("Billing Contact") %} + {% } %} + {% if (contact.designation){ %} + · + {%= contact.designation %} {% } %} - - {%= __("Edit") %} -
{% if (contact.phone || contact.mobile_no || contact.phone_nos.length > 0) { %}
- {% if(contact.phone) { %}
- {%= frappe.utils.escape_html(contact.phone) %} · {%= __("Primary Phone") %}
+ {% if (contact.phone) { %}
+
+ {%= frappe.utils.escape_html(contact.phone) %}
+
+ ·
+ {%= __("Primary Phone") %}
+
{% endif %}
- {% if(contact.mobile_no) { %}
- {%= frappe.utils.escape_html(contact.mobile_no) %} · {%= __("Primary Mobile") %}
+ {% if (contact.mobile_no) { %}
+
+ {%= frappe.utils.escape_html(contact.mobile_no) %}
+
+ ·
+ {%= __("Primary Mobile") %}
+
{% endif %}
- {% if(contact.phone_nos) { %}
- {% for(const phone_no of contact.phone_nos) { %}
- {%= frappe.utils.escape_html(phone_no.phone) %}
+ {% if (contact.phone_nos) { %}
+ {% for (const phone_no of contact.phone_nos) { %}
+
+ {%= frappe.utils.escape_html(phone_no.phone) %}
+
+
{% } %}
{% endif %}
- {% if(contact.email_id) { %}
- {%= frappe.utils.escape_html(contact.email_id) %} · {%= __("Primary Email") %}
+ {% if (contact.email_id) { %}
+
+ {%= frappe.utils.escape_html(contact.email_id) %}
+
+ ·
+ {%= __("Primary Email") %}
+
{% endif %}
- {% if(contact.email_ids) { %}
- {% for(const email_id of contact.email_ids) { %}
- {%= frappe.utils.escape_html(email_id.email_id) %}
+ {% if (contact.email_ids) { %}
+ {% for (const email_id of contact.email_ids) { %}
+
+ {%= frappe.utils.escape_html(email_id.email_id) %}
+
+
{% } %}
{% endif %}
{%= __("No contacts added yet.") %}
+ +{% if (!contact_list.length) { %} +{%= __("No contacts added yet.") %}
{% } %} -+ +
+
diff --git a/frappe/public/js/frappe/form/toolbar.js b/frappe/public/js/frappe/form/toolbar.js index 5b52cdba4d..2d167e239b 100644 --- a/frappe/public/js/frappe/form/toolbar.js +++ b/frappe/public/js/frappe/form/toolbar.js @@ -378,7 +378,8 @@ frappe.ui.form.Toolbar = class Toolbar { function () { me.frm.copy_doc(); }, - true + true, + "Shift+D" ); } diff --git a/frappe/public/js/frappe/list/list_view.js b/frappe/public/js/frappe/list/list_view.js index d7386f3cd0..b354bb0465 100644 --- a/frappe/public/js/frappe/list/list_view.js +++ b/frappe/public/js/frappe/list/list_view.js @@ -634,7 +634,10 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList { - ${__(subject_field.label)} + + ${__(subject_field.label)} + `; const $columns = this.columns .map((col) => { @@ -645,15 +648,21 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList { frappe.model.is_numeric_field(col.df) ? "text-right" : "", ].join(" "); - return ` -