From 614fb06336adb2f8be06ef937406ef43ae8f6854 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 17 Apr 2011 20:01:54 +1200 Subject: [PATCH] MINOR AssetAdmin support for new cms layout changes --- code/controller/AssetAdmin.php | 7 ++++ templates/Includes/AssetAdmin_Content.ss | 44 ++++++++++++++++++++ templates/Includes/AssetAdmin_EditForm.ss | 1 + templates/Includes/AssetAdmin_left.ss | 49 ----------------------- 4 files changed, 52 insertions(+), 49 deletions(-) create mode 100644 templates/Includes/AssetAdmin_Content.ss create mode 100644 templates/Includes/AssetAdmin_EditForm.ss delete mode 100755 templates/Includes/AssetAdmin_left.ss diff --git a/code/controller/AssetAdmin.php b/code/controller/AssetAdmin.php index 1ab93749..5ca819c7 100755 --- a/code/controller/AssetAdmin.php +++ b/code/controller/AssetAdmin.php @@ -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. * diff --git a/templates/Includes/AssetAdmin_Content.ss b/templates/Includes/AssetAdmin_Content.ss new file mode 100644 index 00000000..f45b43ee --- /dev/null +++ b/templates/Includes/AssetAdmin_Content.ss @@ -0,0 +1,44 @@ +
+ + + + +
+
+ $AddForm +
+ +
+ $SiteTreeAsUL +
+
+ +
+
+ $EditForm +
+
+ ... +
+
+ ... +
+
+ +
\ No newline at end of file diff --git a/templates/Includes/AssetAdmin_EditForm.ss b/templates/Includes/AssetAdmin_EditForm.ss new file mode 100644 index 00000000..45fe1125 --- /dev/null +++ b/templates/Includes/AssetAdmin_EditForm.ss @@ -0,0 +1 @@ +<% include Form %> \ No newline at end of file diff --git a/templates/Includes/AssetAdmin_left.ss b/templates/Includes/AssetAdmin_left.ss deleted file mode 100755 index b6203e4d..00000000 --- a/templates/Includes/AssetAdmin_left.ss +++ /dev/null @@ -1,49 +0,0 @@ -
-

- <% _t('FOLDERS','Folders') %> -

- -
-
- - - -
- $AddForm -
- -
- $BatchActionsForm -
- -
- -
- - -
- -
- $SiteTreeAsUL -
- -
- $SyncForm -
- -
- -
\ No newline at end of file