mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR AssetAdmin support for new cms layout changes
This commit is contained in:
parent
2e2e312da9
commit
614fb06336
@ -291,6 +291,13 @@ JS
|
||||
// HTML;
|
||||
}
|
||||
|
||||
function AddForm() {
|
||||
$form = parent::AddForm();
|
||||
$form->Actions()->fieldByName('action_doAdd')->setTitle(_t('AssetAdmin.ActionAdd', 'Add folder'));
|
||||
|
||||
return $form;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a new group and return its details suitable for ajax.
|
||||
*
|
||||
|
44
templates/Includes/AssetAdmin_Content.ss
Normal file
44
templates/Includes/AssetAdmin_Content.ss
Normal file
@ -0,0 +1,44 @@
|
||||
<div class="cms-content center ss-tabset" data-layout="{type: 'border'}">
|
||||
|
||||
<div class="cms-content-header north">
|
||||
<h2><% _t('AssetAdmin.Title', 'Find & Organize') %></h2>
|
||||
<div class="cms-content-header-tabs">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#cms-content-listview"><% _t('AssetAdmin.ListView', 'List View') %></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#cms-content-galleryview"><% _t('AssetAdmin.GalleryView', 'Gallery View') %></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#cms-content-treeview"><% _t('AssetAdmin.TreeView', 'Tree View') %></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="cms-content-tools west">
|
||||
<div class="cms-content-tools-actions ui-widget-content">
|
||||
$AddForm
|
||||
</div>
|
||||
|
||||
<div class="cms-tree" data-url-tree="$Link(getsubtree)" data-url-savetreenode="$Link(savetreenode)">
|
||||
$SiteTreeAsUL
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="cms-content-form center">
|
||||
<div id="cms-content-listview">
|
||||
$EditForm
|
||||
</div>
|
||||
<div id="cms-content-treeview">
|
||||
...
|
||||
</div>
|
||||
<div id="cms-content-galleryview">
|
||||
...
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
1
templates/Includes/AssetAdmin_EditForm.ss
Normal file
1
templates/Includes/AssetAdmin_EditForm.ss
Normal file
@ -0,0 +1 @@
|
||||
<% include Form %>
|
@ -1,49 +0,0 @@
|
||||
<div id="treepanes">
|
||||
<h3>
|
||||
<a href="#"><% _t('FOLDERS','Folders') %></a>
|
||||
</h3>
|
||||
|
||||
<div>
|
||||
<div id="TreeActions">
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#TreeActions-create" id="TreeActions-create-btn">
|
||||
<% _t('CREATE','Create',PR_HIGH) %>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#TreeActions-batchactions" id="batchactions">
|
||||
<% _t('BATCHACTIONS','Batch Actions',PR_HIGH) %>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div id="TreeActions-create">
|
||||
$AddForm
|
||||
</div>
|
||||
|
||||
<div id="TreeActions-batchactions">
|
||||
$BatchActionsForm
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="checkboxAboveTree">
|
||||
<input type="checkbox" id="sortitems" />
|
||||
<label for="sortitems">
|
||||
<% _t('ENABLEDRAGGING','Allow drag & drop reordering', PR_HIGH) %>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div id="sitetree" data-url-tree="$Link(getsubtree)" data-url-savetreenode="$Link(savetreenode)" class="jstree jstree-apple">
|
||||
$SiteTreeAsUL
|
||||
</div>
|
||||
|
||||
<div id="TreeActions-sync">
|
||||
$SyncForm
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user