diff --git a/frappe/public/css/appframe.css b/frappe/public/css/appframe.css index f0b76add15..fad58450f9 100644 --- a/frappe/public/css/appframe.css +++ b/frappe/public/css/appframe.css @@ -117,7 +117,7 @@ h2.titlebar-left-item { } .appframe-form { - padding: 5px 0px; + padding: 2px 0px 5px 0px; } .appframe-form input, .appframe-form select, .appframe-form label { @@ -132,9 +132,9 @@ h2.titlebar-left-item { .appframe-form .form-control { height: 28px; + margin-top: 0px; } - .iconbar { display: inline-block; padding: 9px 0px; @@ -181,3 +181,19 @@ h2.titlebar-left-item { .workflow-button-area { margin-bottom: 15px; } + +.appframe-control-label { + font-size: 75% !important; + margin: 0px auto !important; + padding: 0px 4px !important; +} + +.appframe-only-label { + margin-top: 21px !important; + text-align: center; +} + +.appframe-form .checkbox { + margin-top: 15px !important; + margin-bottom: -7px !important; +} diff --git a/frappe/public/js/frappe/ui/appframe.js b/frappe/public/js/frappe/ui/appframe.js index 629d5b74c6..4241520de0 100644 --- a/frappe/public/js/frappe/ui/appframe.js +++ b/frappe/public/js/frappe/ui/appframe.js @@ -256,7 +256,7 @@ frappe.ui.AppFrame = Class.extend({ // appframe::form add_label: function(label) { this.show_form(); - return $("") + return $("") .appendTo(this.parent.find(".appframe-form .container")); }, add_select: function(label, options) { @@ -302,6 +302,9 @@ frappe.ui.AppFrame = Class.extend({ if(df.fieldtype==="Check") { $(f.wrapper).find(":first-child") .removeClass("col-md-offset-4 col-md-8"); + } else { + $(f.wrapper) + .prepend(''); } if(df["default"]) diff --git a/frappe/public/js/frappe/views/grid_report.js b/frappe/public/js/frappe/views/grid_report.js index 9f684f9150..5c85a8f5f4 100644 --- a/frappe/public/js/frappe/views/grid_report.js +++ b/frappe/public/js/frappe/views/grid_report.js @@ -367,7 +367,7 @@ frappe.views.GridReport = Class.extend({ var me = this; // plot wrapper - this.plot_area = $('
').appendTo(this.wrapper); this.appframe.add_primary_action(__("Export"), function() { return me.export(); }, "icon-download");