summaryrefslogtreecommitdiff
path: root/modules/tag
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-12 07:50:04 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-12 07:50:04 +0000
commitae73ef3d5743b2afba65db7d89e78b135d8c9090 (patch)
tree52faf725a5756933a0547b2ea908a6d05051b1e4 /modules/tag
parentb19729435cd918e03e1bd6fbb91f7281bf3e5873 (diff)
Updated for new Form_Submit API.
OLD: $form->submit("Foo") --> <input type="submit" value="Foo"> New: $form->submit("foo_button")->("Foo") --> <input type="submit" name="foo_button" value="Foo"> Mostly we don't care what the button is so we leave the name blank.
Diffstat (limited to 'modules/tag')
-rw-r--r--modules/tag/helpers/tag.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/tag/helpers/tag.php b/modules/tag/helpers/tag.php
index f552c669..b1160db2 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(t("Add Tag"));
$group->input("name")->label(t("Add tag"));
$group->hidden("item_id")->value($item->id);
- $group->submit(t("Add Tag"));
+ $group->submit("")->value(t("Add Tag"));
$form->add_rules_from(ORM::factory("tag"));
return $form;
}
@@ -90,7 +90,7 @@ class tag_Core {
$group = $form->group("rename_tag")->label(t("Rename Tag"));
$group->input("name")->label(t("Tag name"))->value($tag->name);
$group->inputs["name"]->error_messages("in_use", t("There is already a tag with that name"));
- $group->submit(t("Save"));
+ $group->submit("")->value(t("Save"));
$form->add_rules_from(ORM::factory("tag"));
return $form;
}
@@ -98,7 +98,7 @@ class tag_Core {
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(t("Really delete tag {{tag_name}}?", array("tag_name" => $tag->name)));
- $group->submit(t("Delete Tag"));
+ $group->submit("")->value(t("Delete Tag"));
$form->add_rules_from(ORM::factory("tag"));
return $form;
}