summaryrefslogtreecommitdiff
path: root/modules/tag/views
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-05-18 19:34:03 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-05-18 19:34:03 +0000
commit762ca225443626b69c94f6d6c833f66de69b2ce1 (patch)
treef2c77401b6b6f018728fc37f0b6fdbb012d75654 /modules/tag/views
parentad16488643017f293dda6b226024751d15cb4426 (diff)
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
Diffstat (limited to 'modules/tag/views')
-rw-r--r--modules/tag/views/tag_organize.html.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/modules/tag/views/tag_organize.html.php b/modules/tag/views/tag_organize.html.php
new file mode 100644
index 00000000..bb46b861
--- /dev/null
+++ b/modules/tag/views/tag_organize.html.php
@@ -0,0 +1,25 @@
+<?php defined("SYSPATH") or die("No direct script access.") ?>
+<span id="gTagCount"><?= t2("There is one tag", "There are %count tags", $tag_count) ?></span>
+<span id="gAddTag">
+ <a id="gAddTagButton" href="#" class="gButtonLink"><?= t("Click to Add Tag") ?></a>
+</span>
+<? foreach ($tags as $firstLetter => $tagGroup): ?>
+<div class="gTagGroup">
+ <strong><?= $firstLetter ?></strong><span class="understate">&nbsp;(<?= $tagGroup["count"] ?>)</span>
+ <ul>
+ <? foreach ($tagGroup["taglist"] as $taglist): ?>
+ <li>
+ <span id="gTag-<?= $taglist['id'] ?>" class="gEditable tag-name"><?= $taglist["tag"] ?></span>
+ <span class="understate">(<?= $taglist["count"] ?>)</span>
+
+ <!-- a href="<?= url::site("admin/tags/form_delete/{$taglist['id']}") ?>"
+ class="gDialogLink delete-link gButtonLink" -->
+ <a href="#"
+ class="gDialogLink delete-link gButtonLink">
+ <span class="ui-icon ui-icon-trash"><?= t("Delete tag") ?></span>
+ </a>
+ </li>
+ <? endforeach ?>
+ </ul>
+</div>
+<? endforeach ?> \ No newline at end of file