Index: core/admin_templates/incs/style_template.css =================================================================== --- core/admin_templates/incs/style_template.css +++ core/admin_templates/incs/style_template.css @@ -450,7 +450,7 @@ padding: 0px; } -.subsectiontitle { +.subsectiontitle, td.subsectiontitle-cell { font-size: 10pt; font-weight: bold; background-color: #4A92CE; @@ -465,12 +465,26 @@ border-top-width: 0; } -.subsectiontitle td { +table.edit-form tr:nth-child(-n+2) td.subsectiontitle-cell, table.bordered tr:nth-child(-n+2) td.subsectiontitle-cell { + border-top-width: 0; +} + +.subsectiontitle td, td.subsectiontitle-cell { vertical-align: middle; /*padding: 3px 5px 3px 5px;*/ padding: 1px 5px; } +td.parent-cell { + width: 10px; + text-align: center; + background-color: #EBF0FA; +} + +td.subsectiontitle-cell.parent-cell { + background-color: #93BEE1; +} + .label-cell { background: #DEE7F6 url('@@base_url@@/core/admin_templates/img/bgr_input_name_line.gif') no-repeat right bottom; font: 12px arial, sans-serif; Index: core/admin_templates/incs/two_column_layout.tpl =================================================================== --- /dev/null +++ core/admin_templates/incs/two_column_layout.tpl @@ -0,0 +1,77 @@ + + +   + + + id=""> + + + + + + + + + + + + + + + + + + + + + +   + + + + + + + + + + + + + + + + + + +   + + + + + +
+ + +   +
+ +
+ + + + + + + + + + + + + + + + Index: core/admin_templates/js/forms.js =================================================================== --- core/admin_templates/js/forms.js +++ core/admin_templates/js/forms.js @@ -140,7 +140,7 @@ Form.Controls = new Array(); Form.Div = false; -Form.MinControlsHeight = 0; +Form.MinControlsHeight = {1: 0, 2: 0}; // {column number: height, ...} Form.Options = new Object(); Form.FlexibleCount = 0; @@ -154,9 +154,9 @@ return ; } - for (var i = 0; i < this.Controls.length; i++) { - dim = getDimensions( document.getElementById(this.Controls[i]) ); - options = this.Options[this.Controls[i]]; + this.IterateControls(function (control, options) { + var dim = getDimensions( document.getElementById(control) ), + column_number = options['column_number']; if (options.height) { // fixed height options.min_height = options.height; @@ -164,18 +164,18 @@ } if (!options.min_height) { - options.min_height = $( jq('#' + this.Controls[i]) ).outerHeight(); // dim.innerHeight + options.min_height = $( jq('#' + control) ).outerHeight(); // dim.innerHeight } -// if ( $( jq('#' + this.Controls[i]) ).parents('tr:first').is(':visible') ) { - this.MinControlsHeight += options.min_height; +// if ( $( jq('#' + control) ).parents('tr:first').is(':visible') ) { + this.MinControlsHeight[column_number] += options.min_height; // } if (dim.innerHeight < options.min_height) { - document.getElementById(this.Controls[i]).style.height = options.min_height+'px'; + document.getElementById(control).style.height = options.min_height+'px'; } -// alert('adding element '+this.Controls[i]+' height: '+options.min_height+' total: '+this.MinControlsHeight) - } +// alert('adding element '+control+' height: '+options.min_height+' total: '+this.MinControlsHeight[column_number]) + }); // all