From 2389d66da849798f8d4ec5f10e3b07c11da49185 Mon Sep 17 00:00:00 2001 From: Michael Francis Date: Sat, 28 May 2011 13:28:16 -0400 Subject: Initial Commit --- views/Photos/add.html.php | 5 +++++ views/Photos/index.html.php | 7 +++++++ views/Photos/view.html.php | 1 + 3 files changed, 13 insertions(+) create mode 100644 views/Photos/add.html.php create mode 100644 views/Photos/index.html.php create mode 100644 views/Photos/view.html.php (limited to 'views/Photos') diff --git a/views/Photos/add.html.php b/views/Photos/add.html.php new file mode 100644 index 0000000..cd6e508 --- /dev/null +++ b/views/Photos/add.html.php @@ -0,0 +1,5 @@ +

Upload a photo

+form->create($photo, array('type' => 'file')); ?> + form->field('file', array('type' => 'file')); ?> + form->submit("Upload"); ?> +form->end(); ?> \ No newline at end of file diff --git a/views/Photos/index.html.php b/views/Photos/index.html.php new file mode 100644 index 0000000..5d10867 --- /dev/null +++ b/views/Photos/index.html.php @@ -0,0 +1,7 @@ + +html->link("Add a photo","photos::add"); ?> + + + html->image("/photos/view/{$photo->_id}.jpg"); ?> + + \ No newline at end of file diff --git a/views/Photos/view.html.php b/views/Photos/view.html.php new file mode 100644 index 0000000..c492b6e --- /dev/null +++ b/views/Photos/view.html.php @@ -0,0 +1 @@ + \ No newline at end of file -- cgit v1.2.3