mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
ENHANCEMENT: Use Folder's Form Tabs to provide the top 3 tabs in the CMS.
This commit is contained in:
parent
b82531cbee
commit
b260c63bab
@ -419,14 +419,21 @@ class Folder extends File {
|
||||
$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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user