Skip to content

Commit

Permalink
ENHANCEMENT: Use Folder's Form Tabs to provide the top 3 tabs in the …
Browse files Browse the repository at this point in the history
…CMS.
  • Loading branch information
Sam Minnee authored and chillu committed Feb 15, 2012
1 parent b82531c commit b260c63
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions filesystem/Folder.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,14 +419,21 @@ function getCMSFields() {
$titleField = ($this->ID && $this->ID != "root") ? new TextField("Title", _t('Folder.TITLE')) : new HiddenField("Title");

$fields = new FieldList(
// The tabs of Root are used to generate the top tabs
new TabSet('Root',
new Tab('Main',
new Tab('listview', _t('AssetAdmin.ListView', 'List View'),
$titleField,
$gridField,
new HiddenField("ID"),
new HiddenField("DestFolderID")
),
new Tab('galleryview', _t('AssetAdmin.GalleryView', 'Gallery View'),
new LiteralField("", "<em>Not implemented yet</em>")
),
new Tab('treeview', _t('AssetAdmin.TreeView', 'Tree View'),
new LiteralField("", "<em>Not implemented yet</em>")
)
)
)
);

if(!$this->canEdit()) {
Expand Down

0 comments on commit b260c63

Please sign in to comment.