diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index 2b0b68c4..e3ad8e81 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -347,15 +347,10 @@ class LeftAndMain extends Controller { public function Left() { return $this->renderWith($this->getTemplatesWithSuffix('_left')); } + public function Right() { return $this->renderWith($this->getTemplatesWithSuffix('_right')); } - public function RightBottom() { - if(SSViewer::hasTemplate($this->getTemplatesWithSuffix('_rightbottom'))) { - return $this->renderWith($this->getTemplatesWithSuffix('_rightbottom')); - } - } - public function getRecord($id, $className = null) { if(!$className) $className = $this->stat('tree_class'); diff --git a/code/SecurityAdmin.php b/code/SecurityAdmin.php index 8bf48369..5037a67f 100644 --- a/code/SecurityAdmin.php +++ b/code/SecurityAdmin.php @@ -20,8 +20,6 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider { 'addgroup', 'addmember', 'autocomplete', - 'getmember', - 'newmember', 'removememberfromgroup', 'savemember', 'AddRecordForm', @@ -101,15 +99,6 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider { } } - public function getmember() { - Session::set('currentMember', $_REQUEST['ID']); - SSViewer::setOption('rewriteHashlinks', false); - $result = $this->renderWith("LeftAndMain_rightbottom"); - $parts = split(']*>', $result); - echo $parts[1]; - } - - public function MemberForm() { $id = $_REQUEST['ID'] ? $_REQUEST['ID'] : Session::get('currentMember'); if($id) @@ -235,24 +224,6 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider { return $this->returnItemToUser($newGroup); } - public function newmember() { - Session::clear('currentMember'); - $newMemberForm = array( - "MemberForm" => $this->getMemberForm('new'), - ); - // This should be using FormResponse ;-) - if(Director::is_ajax()) { - SSViewer::setOption('rewriteHashlinks', false); - $customised = $this->customise($newMemberForm); - $result = $customised->renderWith($this->class . "_rightbottom"); - $parts = split(']*>', $result); - return $parts[1]; - - } else { - return $newMemberForm; - } - } - public function EditedMember() { if(Session::get('currentMember')) return DataObject::get_by_id("Member", Session::get('currentMember')); diff --git a/css/cms_right.css b/css/cms_right.css index 94c45e69..d55a9037 100644 --- a/css/cms_right.css +++ b/css/cms_right.css @@ -193,62 +193,6 @@ clear: left; } -/** - * Bottom-right - */ -#rightbottom { - border: none; - margin-top: 4px; - margin-left: 1px; - border: 1px solid #808080; -} - -#rightbottom form { - margin: 1em; -} - -#rightbottom form div { - margin-top: 3px; -} - -#rightbottom form div.field { - clear: both; - margin-left: 10em; - font-size: 12px; - border: none; -} - -#rightbottom form label.left { - float: left; - width: 10em; - margin-left: -10em; -} - -#rightbottom form input, -#rightbottom form select, -#rightbottom form textarea { - width: 90%; -} - -#rightbottom form input.checkbox, -#rightbottom form .optionset input, -#rightbottom form .htmleditor select, -#rightbottom form input.action { - width: auto; -} -#rightbottom form .optionset li { - list-style: none; -} - -#rightbottom form h2 { - clear: both; -} - -#rightbottom form .fieldgroup input, -#rightbottom form .fieldgroup select { - width: auto; -} - /** * RHS Action Parameters boxes */ diff --git a/css/layout.css b/css/layout.css index bd58c1e4..e9e7d281 100644 --- a/css/layout.css +++ b/css/layout.css @@ -119,7 +119,7 @@ body.stillLoading select { border: 1px solid #acbbcc; background: #fff; } -#right, #rightbottom { +#right { position: absolute; left: 208px; top: 45px; @@ -132,10 +132,6 @@ body.stillLoading select { margin-right: 3px; } -#rightbottom { - height: 30%; -} - #separator { position: absolute; top: 51px; @@ -161,17 +157,13 @@ body.stillLoading select { } -#left div.title, #right div.title, #rightbottom div.title { +#left div.title, #right div.title { border-top: 1px solid #77BBEE; height: 22px !important; background: #0075C9 url(../images/texture/obar.gif) repeat-x 0 0; } -#rightbottom div.light { - background-image: url(../images/textures/obar-light.png) !important; -} - -#left div.title div, #right div.title div, #rightbottom div.title div { +#left div.title div, #right div.title div { font-size: 14px; font-weight: bold; color: #fff; diff --git a/javascript/LeftAndMain.js b/javascript/LeftAndMain.js index a2da94d6..c88f30e0 100644 --- a/javascript/LeftAndMain.js +++ b/javascript/LeftAndMain.js @@ -33,8 +33,7 @@ DraggableSeparator.prototype = { } function fixRightWidth() { - if( !$('right') ) - return; + if(!$('right')) return; // Absolutely position all the elements var sep = getDimension($('left'),'width') + getDimension($('left'),'left'); @@ -53,14 +52,7 @@ function fixRightWidth() { $('contentPanel').style.left = leftWidth + sepWidth + rightWidth + sepWidth + 23 + 'px'; } - if( rightWidth >= 0 ) - $('right').style.width = rightWidth + 'px'; - - var rb; - if(rb = $('rightbottom')) { - rb.style.left = $('right').style.left; - rb.style.width = $('right').style.width; - } + if(rightWidth >= 0) $('right').style.width = rightWidth + 'px'; } Behaviour.register({ @@ -150,8 +142,6 @@ window.ontabschanged = function() { window.onresize = function(init) { var right = $('right'); - var rightbottom = $('rightbottom'); - if(rightbottom) rightbottom.style.display = 'none'; if(typeof fitToParent == 'function') { fitToParent('right', 12); @@ -171,14 +161,6 @@ window.onresize = function(init) { $('left').style.height = $('separator').style.height = rightH + 'px'; } - if(rightbottom) { - var newHeight = rightH / 3; - right.style.height = (newHeight*2) + 'px'; - rightbottom.style.height = newHeight + 'px'; - rightbottom.style.display = ''; - rightbottom.style.top = getDimension(right,'top') + (newHeight*2) + 'px'; - } - if(typeof fitToParent == 'function') { fitToParent('Form_EditForm'); if($('Form_EditorToolbarImageForm') && $('Form_EditorToolbarImageForm').style.display == "block") { diff --git a/javascript/LeftAndMain_right.js b/javascript/LeftAndMain_right.js index 4802636a..89a223e2 100755 --- a/javascript/LeftAndMain_right.js +++ b/javascript/LeftAndMain_right.js @@ -317,7 +317,7 @@ CMSRightForm.prototype = { }*/ } -CMSForm.applyTo('#Form_SubForm', 'rightbottom'); +CMSForm.applyTo('#Form_SubForm'); CMSRightForm.applyTo('#Form_EditForm', 'right'); function action_save_right() { diff --git a/templates/LeftAndMain.ss b/templates/LeftAndMain.ss index 495bfb33..ad2dea4b 100644 --- a/templates/LeftAndMain.ss +++ b/templates/LeftAndMain.ss @@ -27,13 +27,6 @@ $Right - <% if RightBottom %> -
- $RightBottom - -
- <% end_if %> -