From df3b4e48fe32a96f0e7e710b87f0c42306c894ea Mon Sep 17 00:00:00 2001 From: DeeMysterio Date: Tue, 24 Dec 2019 18:10:18 +0530 Subject: [PATCH] fix(adress): get the address title at the top and mandatory in display (#20074) --- erpnext/public/js/templates/address_list.html | 31 +++++++++---------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/erpnext/public/js/templates/address_list.html b/erpnext/public/js/templates/address_list.html index 2379ef6b48..0f967b67a0 100644 --- a/erpnext/public/js/templates/address_list.html +++ b/erpnext/public/js/templates/address_list.html @@ -1,23 +1,22 @@
{% for(var i=0, l=addr_list.length; i -

- {%= i+1 %}. {%= addr_list[i].address_type!="Other" ? __(addr_list[i].address_type) : addr_list[i].address_title %} - {% if(addr_list[i].is_primary_address) { %} - ({%= __("Primary") %}){% } %} - {% if(addr_list[i].is_shipping_address) { %} - ({%= __("Shipping") %}){% } %} +

+

+ {%= i+1 %}. {%= addr_list[i].address_title %}{% if(addr_list[i].address_type!="Other") { %} + ({%= __(addr_list[i].address_type) %}){% } %} + {% if(addr_list[i].is_primary_address) { %} + ({%= __("Primary") %}){% } %} + {% if(addr_list[i].is_shipping_address) { %} + ({%= __("Shipping") %}){% } %} - - {%= __("Edit") %} -

-

{%= addr_list[i].display %}

-
+ + {%= __("Edit") %} +

+

{%= addr_list[i].display %}

+ {% } %} {% if(!addr_list.length) { %}

{%= __("No address added yet.") %}

{% } %} -

- +

\ No newline at end of file