summaryrefslogtreecommitdiff
path: root/modules/tag
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-06 09:22:29 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-06 09:22:29 +0000
commitfa1ccbd86d4eee9f6c798e7342aa6f303cd00729 (patch)
tree3ba4dd91e82dcd8fb6ea20614fdb06047945ccde /modules/tag
parentdb4164520aa71b0990adb48b43dcf4668c06e810 (diff)
Fix up all the various little forms to have submit buttons, fieldset legends, etc etc.
Diffstat (limited to 'modules/tag')
-rw-r--r--modules/tag/helpers/tag.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/tag/helpers/tag.php b/modules/tag/helpers/tag.php
index 897d4d13..43697165 100644
--- a/modules/tag/helpers/tag.php
+++ b/modules/tag/helpers/tag.php
@@ -80,7 +80,7 @@ class tag_Core {
$group = $form->group("add_tag")->label(_("Add Tag"));
$group->input("name")->label(_("Add tag"));
$group->hidden("item_id")->value($item->id);
- $group->submit(_("Add"));
+ $group->submit(_("Add Tag"));
$form->add_rules_from(ORM::factory("tag"));
return $form;
}
@@ -90,15 +90,15 @@ class tag_Core {
$group = $form->group("rename_tag")->label(_("Rename Tag"));
$group->input("name")->label(_("Tag name"))->value($tag->name);
$group->inputs["name"]->error_messages("in_use", _("There is already a tag with that name"));
- $group->submit(_("Rename"));
+ $group->submit(_("Save"));
$form->add_rules_from(ORM::factory("tag"));
return $form;
}
public static function get_delete_form($tag) {
$form = new Forge("admin/tags/delete/$tag->id", "", "post", array("id" => "gDeleteTagForm"));
- $group = $form->group("delete_tag")->label(_("Delete Tag"));
- $group->submit(_("Delete"));
+ $group = $form->group("delete_tag")->label(sprintf(_("Really delete tag %s?"), $tag->name));
+ $group->submit(_("Delete Tag"));
$form->add_rules_from(ORM::factory("tag"));
return $form;
}