summaryrefslogtreecommitdiff
path: root/core/views
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-12 08:26:38 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-12 08:26:38 +0000
commitbc421a615ab89cf5416af12173471235cdf5d297 (patch)
treea4318a7c649423e2a4a23327ba8aa1fa183397eb /core/views
parentce6d7b8d3799cf5996a7c4fd512bf4efb85d1c5b (diff)
Implement deleting dashboard blocks.
* Refactor blocks so that they have a separate id vs css_id. This way we can have a unique identifier for each visual block. * Store blocks with a random id as their unique identifier * Add Admin_Dashboard::remove_block() and modify themes/admin_default/views/block.html.php to call it when you click the remove box.
Diffstat (limited to 'core/views')
-rw-r--r--core/views/admin_dashboard_blocks.html.php25
1 files changed, 0 insertions, 25 deletions
diff --git a/core/views/admin_dashboard_blocks.html.php b/core/views/admin_dashboard_blocks.html.php
deleted file mode 100644
index 56a6ab07..00000000
--- a/core/views/admin_dashboard_blocks.html.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php defined("SYSPATH") or die("No direct script access.") ?>
-<div id="gAdminDashboardBlocks">
- <table border="1">
- <tr>
- <th> <?= t("Main") ?> </th>
- <th> <?= t("Sidebar") ?> </th>
- </tr>
-
- <? foreach ($available as $module_name => $block_list): ?>
- <? foreach ($block_list as $id => $title): ?>
- <tr>
- <td>
- <?= $title ?>
- </td>
- <td>
- <option>
- </option>
- </td>
- </tr>
- <? endforeach ?>
- <? endforeach ?>
- </table>
-</div>
-<? printf("<pre>%s</pre>",print_r($available,1));flush(); ?>
-<? printf("<pre>%s</pre>",print_r($displayed,1));flush(); ?>