diff --git a/frappe/public/js/frappe/form/layout.js b/frappe/public/js/frappe/form/layout.js index 472fd57ea5..ad3077bca6 100644 --- a/frappe/public/js/frappe/form/layout.js +++ b/frappe/public/js/frappe/form/layout.js @@ -122,12 +122,20 @@ frappe.ui.form.Layout = Class.extend({ if(df && df.idx===1) head.css({"margin-top": "0px"}) - if(this.sections.length > 1) - this.section.css({ - "margin-top": "15px", - "border-top": "1px solid #eee" - }); } + + if(df.label || df.show_section_border) { + if(this.sections.length > 1) { + this.section.css("border-top", "1px solid #eee"); + + if (df.label) { + this.section.css("margin-top", "15px"); + } else { + this.section.css("padding-top", "15px"); + } + } + } + if(df.description) { $('
Some Introduction about your company that you would - like your website visitor to know. - More people than you think will read your About page. - People always like to know who the are doing business with. - Be authentic and avoid using jargon like 'value added services' etc. - Be sure to update your company history and + {{ doc.company_introduction or """
Some Introduction about your company that you would + like your website visitor to know. + More people than you think will read your About page. + People always like to know who the are doing business with. + Be authentic and avoid using jargon like 'value added services' etc. + Be sure to update your company history and list of key team members in Website > About Us Settings
""" }} - - {% if obj.get({"doctype":"Company History"}) %} + + {% if doc.get({"doctype":"Company History"}) %}{{ d.highlight }}