diff options
Diffstat (limited to 'core/helpers')
-rw-r--r-- | core/helpers/album.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/helpers/album.php b/core/helpers/album.php index dd62d693..3e77d521 100644 --- a/core/helpers/album.php +++ b/core/helpers/album.php @@ -58,4 +58,17 @@ class album_Core { return $album; } + + static function get_add_form($parent) { + $form = new Forge("albums/{$parent->id}", "", "post", array("id" => "gAddAlbumForm")); + $group = $form->group(_("Add Album to {$parent->title}")); + $group->input("name"); + $group->input("title"); + $group->input("description"); + $group->hidden("type")->value("album"); + $group->submit(_("Create")); + $form->add_rules_from(ORM::factory("item")); + return $form; + + } } |