diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-05 08:05:50 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-05 08:05:50 +0000 |
commit | 7482b6683eb0cabb9841f839a474d25b4257fc91 (patch) | |
tree | 94471660020e8d307affc1a6e1eaaa10f1fda1bd /core/controllers | |
parent | 0b473327c58df6d6261270cd007421e42eda3d29 (diff) |
Add "quick edit" which lets you edit a photo's details from the albums
page.
Diffstat (limited to 'core/controllers')
-rw-r--r-- | core/controllers/quick.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/core/controllers/quick.php b/core/controllers/quick.php index 7267283c..3f3c1f0c 100644 --- a/core/controllers/quick.php +++ b/core/controllers/quick.php @@ -18,14 +18,14 @@ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ class Quick_Controller extends Controller { - public function edit($id) { + public function pane($id) { $item = ORM::factory("item", $id); if (!$item->loaded) { return ""; } if ($item->type == "photo") { - $view = new View("quick_edit.html"); + $view = new View("quick_pane.html"); $view->item = $item; print $view; } @@ -73,4 +73,11 @@ class Quick_Controller extends Controller { "width" => $item->thumb_width, "height" => $item->thumb_height)); } + + public function form_edit($id) { + $item = ORM::factory("item", $id); + access::required("edit", $item); + $form = photo::get_edit_form($item); + print $form; + } } |