From cf9cde89282a6d32a748a1285b2d2374d3c802c5 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Mon, 5 Nov 2007 21:03:19 +0000 Subject: [PATCH] Wrap comments in tab git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44280 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CommentAdmin.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/code/CommentAdmin.php b/code/CommentAdmin.php index 42913f42..54535a47 100644 --- a/code/CommentAdmin.php +++ b/code/CommentAdmin.php @@ -63,7 +63,15 @@ class CommentAdmin extends LeftAndMain { $table = new CommentTableField($this, "Comments", "PageComment", $section, $tableFields, $popupFields, array($filter)); $table->setParentClass(false); - $fields = new FieldSet(new LiteralField("Title", $title), $idField, $table); + $fields = new FieldSet( + new TabSet( 'Root', + new Tab('Comments', + new LiteralField("Title", $title), + $idField, + $table + ) + ) + ); $actions = new FieldSet(); @@ -237,4 +245,4 @@ JS; } } -?> \ No newline at end of file +?>