diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-01-04 08:44:06 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-04 08:44:06 +0000 |
| commit | 92ceef27dafbc0e217a8ec7f5e2ee9694d4118a3 (patch) | |
| tree | 24ce7c4aef358651f92b3361fded9d30cbac7434 /modules/tag/views | |
| parent | 625d0785572af319b22a523550145b4dacbd6100 (diff) | |
Allow renaming of tags using a modal dialog. Put up a confirmation
dialog for deleting tags. Remove the 4 character restriction on tags
(it was getting ignored by the add form anyway since it was mistakenly
referred to as tag_name there).
Diffstat (limited to 'modules/tag/views')
| -rw-r--r-- | modules/tag/views/admin_tags.html.php | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/modules/tag/views/admin_tags.html.php b/modules/tag/views/admin_tags.html.php index 9f2aa099..4315917b 100644 --- a/modules/tag/views/admin_tags.html.php +++ b/modules/tag/views/admin_tags.html.php @@ -22,9 +22,20 @@ <td> <?= $tag->name ?> </td> <td> <?= $tag->count ?> </td> <td> - <a href="<?= url::site("admin/tags/delete/$tag->id?csrf=" . access::csrf_token()) ?>"> - <?= _("delete") ?> - </a> + <ul> + <li> + <a href="<?= url::site("admin/tags/form_delete/$tag->id") ?>" class="gDialogLink" + title="<?= sprintf(_("Delete tag %s"), $tag->name) ?>"> + <?= _("delete") ?> + </a> + </li> + <li> + <a href="<?= url::site("admin/tags/form_rename/$tag->id") ?>" class="gDialogLink" + title="<?= sprintf(_("Rename tag %s"), $tag->name) ?>"> + <?= _("rename") ?> + </a> + </li> + </ul> </td> </tr> <? endforeach ?> |
