This takes us the next step closer to providing bulk edit. We still

can't edit, but we are getting closer :-).
This change sets up a framework for modules to contribute edit panels
to the organize drawer. Currently implemented General (albums and
photos), Sort Order (albums only) and Manage Tags
This commit is contained in:
Tim Almdal
2009-05-18 19:34:03 +00:00
parent ad16488643
commit 762ca22544
10 changed files with 216 additions and 38 deletions
+9 -26
View File
@@ -1,27 +1,10 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="gOrganizeForm" class="yui-u">
<?= form::open(url::site("organize/update/__ITEM_ID__?csrf=__CSRF__&action=__ACTION__"), array("method" => "post")) ?>
<!-- div id="gOrganizeFormInfo" style="display:none"
ref="<?= url::site("organize/detail/__ITEM_ID__") ?>">
<ul>
<li>
Title: <span id="gOrganizeFormTitle"></span>
</li>
<li>
Owner: <span id="gOrganizeFormOwner"></span>
</li>
<li>
Date: <span id="gOrganizeFormDate"></span>
</li>
<li>
Description: <span id="gOrganizeFormDescription">&nbsp;</span>
</li>
</ul>
</div -->
<span id="gOrganizeFormButtons">
<?= form::submit(array("id" => "gOrganizeApplyButton", "name" => "apply", "disabled" => true, "class" => "submit"), t("Apply")) ?>
</span>
<?= form::close() ?>
</div>
<ul>
<? foreach ($panes as $idx => $pane): ?>
<li><a href="#pane-<?= $idx ?>"><?= $pane["label"] ?></a></li>
<? endforeach?>
</ul>
<? foreach ($panes as $idx => $pane): ?>
<div id="pane-<?= $idx ?>" class="gOrganizeEditPane"><?= $pane["content"] ?></div>
<? endforeach?>