Permalink
Browse files

MINOR AssetAdmin support for new cms layout changes

  • Loading branch information...
1 parent 2e2e312 commit 614fb06336adb2f8be06ef937406ef43ae8f6854 @chillu chillu committed Apr 17, 2011
@@ -291,6 +291,13 @@ function doUpload($data, $form) {
// 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.
*
@@ -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 &amp; 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>
@@ -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 &amp; 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>

0 comments on commit 614fb06

Please sign in to comment.